Fix Date Errors
I was teaching a course on Power Query yesterday in which we imported a text file. Almost immediately, some of my users pointed out that their dates weren’t importing correctly, and we had to cover...
View ArticleImportant Power Query Update Available
At last, the Power Query update I’ve been waiting for has finally landed in the download site. This is version 2.24, and sets my parameter tables technique back to a working state! You can download...
View ArticleRolling 12 Months in Power Query
Last week, in a blog comment, a reader asked how to filter their data to only show the most recent rolling 12 month period. This post looks at how I made that work in Power Query. Background Assume we...
View ArticleRefer to other steps in Power Query
Last week I posted a technique to show how to calculate a rolling 12 months in Power Query. One of the techniques used was to refer to other steps during the construction of that query. Shortly after...
View ArticleMultiplying NULL values in Power Query
I was working through a scenario today and came up against something unexpected when multiplying NULL values in Power Query. Background I have a fairly simple table of transactions that looks like...
View ArticleRemove All Rows Up To A Specific Value
A couple of weeks ago, Rudi asked how you would go about setting up a query to remove all rows up to a specific value. Specifically, his question was this: The other day I was asked if Power Query...
View ArticleUpdate: Refresh Power Queries With VBA
Some time back I posted a routine to refresh Power Queries with VBA, allowing you to refresh all Power Queries in a workbook. Things Changing… The challenge with that specific macro is that it refers...
View ArticlePower Query’s Extract Text Feature
This will be a short post, as today we are leading our second sold out Power Query workshop at http://powerquery.training/course. I wanted to make sure I still got something out for my readers today...
View ArticleGet Your Name in M is for Data Monkey
I’m pleased to say that our new book “M is for Data Monkey” is now complete, through the technical edit, and into the copy edit stage. While there is still more work to go, the book is on schedule for...
View ArticlePerforming OR logic tests
When working with Power Query, it’s actually pretty simple to restrict records in a table using an AND criteria. As filters on different columns are applied in a cumulative fashion, we just keep...
View ArticleSplit Power Queries
There was a really cool new feature added in the latest Power Query update: The ability to split Power Queries. This is something that has always been possible by editing the M code manually, but...
View ArticleAllocate Units Based on Dates Using Power Query
I ran into an interesting wrinkle in a model I’m building, where I need to allocate units based on dates. The idea here is to allow a user to the number of units to allocate, the start date and the...
View ArticleClean WhiteSpace in PowerQuery
The other day as I was working through a model, I once again tripped upon the fact that Power Query’s Text.Trim function doesn’t clean whitespace inside the text string, only at the ends. For those...
View ArticleSplit by line breaks in Power Query
Some more savvy Excel users know that you can break text onto multiple lines in a cell by pressing Alt+Enter mid entry. Today’s post explores how we can split by line breaks in order to break these...
View ArticleBreaking Power Query via Power Pivot is a thing of the past
I’m pleased to let people know that breaking Power Query via Power Pivot is a thing of the past … at least for users of Excel 2013 or higher. (Sorry, if you’re on 2010, you still need to be careful.)...
View ArticleMerge Data Based on Two Columns
This past weekend I attended SQL Saturday in Portland, OR. While I was there, I attended Reza Rad’s session on Advanced Data Transformations with Power Query. During that session, Reza showed a cool...
View ArticleSeparate Values and Text in Power Query
I recently received a comment on one of my blog posts asking how to separate values and text, especially when there is no common delimiter such as a space separating them. This is a bit of an...
View ArticleLast PowerQuery.Training Class of 2015!
There will be a regular blog post coming later this week, but we wanted to just throw out a quick heads up that we are currently accepting registrations for the last PowerQuery.Training class of 2015....
View ArticleKeep Only Numbers in Power Query
My last blog post was interesting in that I got a few emails about it. Both Imke Feldman and Bill Szysz sent me better methods, and a blog commenter asked for a slightly different version. For this...
View ArticleSeparate Values and Text – Part 2
In this week’s post we’re going to circle back to the original post on how to Separate Values and Text in Power Query from November 4, 2015. That post attracted a couple of suggestions from Imke...
View Article