Working with Web Services in Power Query
One of many cool things about Power Query is the way that it allows you to retrieve data from web services and load it into Excel. While this is a subject that lots of people (including me) have...
View ArticleWeb Services And POST Requests In Power Query
In my recent post on web services in Power Query I mentioned that while the Power Query Web.Contents() function generates a GET request by default, you can make it generate a POST request by specifying...
View ArticleDisplaying Help For A Power Query Function
Matt Masson and Theresa Palmer gave an excellent presentation on Power Query and M for the PASS DW/BI Virtual Chapter a few days ago (hopefully it will be on their YouTube channel soon). One thing that...
View ArticleExpanding All Columns In A Table In Power Query
When I’m working with XML files, or web pages, or any data with columns containing nested tables in Power Query, I often end up having to expand every expandable column in the table and then expanding...
View ArticleImplementing A Basic LIKE/Wildcard Search Function In Power Query
Last week someone asked me whether it was possible to do the equivalent of a SQL LIKE filter in Power Query. Unfortunately there isn’t a function to do this in the standard library but, as always, it...
View ArticleJoin Conditions In Power Query, Part 1
In last week’s post I showed how to create a simple LIKE function in Power Query which could be used in a calculated column. This week I’m going to show you how you can use this function in a condition...
View ArticleJoin Conditions in Power Query, Part 2: Events-In-Progress, Performance and...
In my last post you saw how to join two tables together using conditions other than the built-in inner, outer and anti join conditions. However, as I mentioned, you need to be aware of some of the...
View ArticleUsing List.Generate() To Make Multiple Replacements Of Words In Text In Power...
Recently I had a request for help from someone who wanted to do the following in Power Query: take a piece of text and then, using a table, search for all of the occurrences of the words in one column...
View ArticlePower Query Book Published!
Looking for some summer holiday (or winter holiday, depending on which hemisphere you live in) reading? If so, may I suggest my new Power Query book? “Power Query for Power BI and Excel” is available...
View ArticleWorking With Excel Named Ranges In Power Query
One of the more recent additions to Power Query is the ability to access data from named ranges in the Excel worksheet rather than an Excel table. I’ve got used to formatting data as tables in Excel...
View ArticleComparers, Combiners, Replacers and Splitters in Power Query
At the end of the Power Query Formula Library Specification (which can be downloaded here) are sections on Comparer, Combiner, Replacer and Splitter functions. These functions are most often used in...
View ArticleRemoving Punctuation From Text In Power Query
In one of my first posts on Power Query (and still my favourite) I found the top 100 words in the complete works of Shakespeare. As always when you’re learning a new tool, though, I look back at what I...
View ArticleCreate Your Own Relationships Between Tables In The Excel Data Model With...
You probably know that, when you are importing data from multiple tables in SQL Server into the Excel Data Model in Excel 2013 using Power Query, Power Query will automatically create relationships...
View ArticlePower Pivot / Power Query Read-Only Connection Problems In Excel 2013 – And...
Anyone who has tried to do any serious work with Power Pivot and Power Query will know about this problem: you use Power Query to load some tables into the Data Model in Excel 2013; you make some...
View ArticleHandling Data Source Errors In Power Query
Recently I was asked an interesting question by Ondra Plánička in the comments of a blog post: how can you handle errors caused by unavailable or missing data sources in Power Query? Let’s imagine you...
View ArticleAdvanced Options For Loading Data From SQL Server With Power Query
Loading data from SQL Server using Power Query is fairly straightforward, and the basics are well-documented (see here for example). However there are a few advanced options, not all of which are...
View ArticleCreating Histograms With Power Query
A few months ago someone at a conference asked me what the Power Query Table.Partition() function could be used for, and I had to admit I had no idea. However, when I thought about it, I realised one...
View ArticleSentiment Analysis In Excel With Azure Machine Learning And Power Query
You may have seen Joseph Sirosh’s blog post last week about the ability to publish Azure Machine Learning models to the Azure Marketplace, and that MS have published a number of APIs there already....
View ArticleWaiting Between Web Service Requests In Power Query
Often when you’re working with web services in Power Query you’ll be making a large number of requests to the web service in a small amount of time – and you’ll notice that your query seems to be a lot...
View ArticleTiming Power Query Queries
If you’re interested in performance-tuning a Power Query query, you’re going to need a reliable way of telling how long your query takes to run. It’s not as easy as it seems to adapt your query to do...
View Article