A Partly Successful Attempt To Create Life With Data Explorer (Power Query)
NOTE: This post was written before Data Explorer was renamed as Power Query. All of the content is still relevant to Power Query. I’ll apologise for the title right away: this post isn’t about a...
View ArticleAccumulating Data In An Excel Table Using Data Explorer (Power Query) and...
NOTE: This post was written before Data Explorer was renamed as Power Query. All of the content is still relevant to Power Query. One of the first questions I get asked after showing someone PowerPivot...
View ArticleFlattening A Parent/Child Relationship In Data Explorer (Power Query)
NOTE: This post was written before Data Explorer was renamed as Power Query. All of the content is still relevant to Power Query. I was teaching my SSAS cube design and performance tuning course this...
View ArticleSome Power Query/M Examples
The more I use Power Query and the M language that underpins it, the more I see how useful it is – quite apart from its abilities to import data from other data sources – as a third option (after...
View ArticleReturning The Contents Of Any Table In Any Excel Workbook In Sharepoint With...
Yet another Power Query post this week (with more to come) – today I’m going to show you how you can use Power Pivot and Power Query to build a dynamic solution that allows a user to browse through all...
View ArticleSharing Functions In Power Query
The Power BI Preview includes the ability to share Power Query queries with other people in your organisation; I was thinking about writing a blog post on this topic, but to be honest the documentation...
View ArticleImplementing Common Calculations In Power Query
When I first saw Data Explorer (as Power Query used to be called), I immediately started thinking of it as a self-service ETL tool; indeed, it’s how Microsoft itself is positioning it. However I...
View ArticleReusing A Power Query Connection
One of the things I like least about Power Query at the moment is the lack of control over where the results of your queries end up in Excel. For example, if you create a new query and load it onto a...
View ArticleGenerating A Date Dimension Table In Power Query
There are hundreds of different methods for generating a Date dimension table for use in Power Pivot: you can use TSQL, Excel formulas, import from the DateStream table in the Windows Azure...
View ArticlePivoting Data In Power Query
One of the features I’ve loved right from the start in Power Query is the ability to UnPivot data right from the UI (I’m not alone – Ken Puls has written a good blog post summing up this functionality...
View ArticleUpdating Data In SQL Server With Power Query
As of the November update of Power Query, it’s now possible to write your own SQL query when you’re moving data out of SQL Server into Excel using Power Query. So I got thinking… if you can write your...
View ArticleAggregating By Local Groups In Power Query
When looking through the Power Query library reference I noticed that the Table.Group() function has a very useful option to aggregate data using what it calls local groups. Rather than explain what...
View ArticleComparing Tables In Power Query
An interesting Power Query nugget for you: you can compare two tables using the Value.Equals() function. For example, take the following worksheet with five Excel tables on it: The following Power...
View ArticleComparing Columns In Power Query
A few weeks ago I wrote a post about comparing the contents of entire tables in Power Query, and a question came up in the comments about how you might go about comparing values in columns rather than...
View ArticleLoading Power Query M Code From Text Files
One of the things that has intrigued me in the Power Query docs for a while now is the Expression.Evaluate() function, which takes some text and evaluates it as a Power Query expression (rather like...
View ArticlePower Query Session From 24HOP Now Available To Watch
The recording of my session, “Power Query: Beyond The Basics”, from yesterday’s 24 Hours of PASS event is already available to watch here: http://bit.ly/1fUGzAr It’s a brief introduction to the M...
View ArticleAllocation in Power Query
Now that the brave new world of self-service BI is upon us, old-school corporate BI types like me need to sharpen our Excel skills – and anyone learning Excel will, sooner or later, end up on Bill...
View ArticleConditional logic in Power Query
Writing a simple if statement in Power Query’s M expression language is straightforward. Using an Excel table called Input that contains a single value as the starting point: The following query shows...
View ArticleUser-Defined Conditional Logic In M
Here’s a short follow-up to my last post on conditional logic in M. After that post went live, Ehren Vox of the Power Query team made a good suggestion on Twitter: rather than hard-code the list of...
View ArticlePretty Patterns With Power Query And Power Map
Here’s something with no practical use whatsoever. Today, after I finished writing the first draft of the chapter on M of my upcoming Power Query book, I got thinking about how Power View and Power Map...
View Article