Extract Data Based on the Previous Row - The Ken Puls (Excelguru) Blog
This is a cool example of how to Extract Data Based on the Previous Row, which came up as a viewer's question inside our Power Query Academy. Let's look at how we solved it… What Kind of Data Needs This … Continue reading →
Writing documentation for custom M-functions, Part2 | THE SELF-SERVICE-BI BLOG
The good documentation of custom M functions is a key factor for efficiency in Power Query and Power BI Desktop. In my first post on this topic, I explained why documentation is important and how to add those to custom functions by changing metadata. If you haven’t read the previous article, you should do so […]
How many times did you have to work with tables that had headers like these? Client_ID, Transaction_ID, Product_Name, My_DBA_is_in_Love_with_Underscored_Headers No need to manually rename the column names any more, if you work with Excel Get Data / Power Query, or Power BI. You can just apply the following formula in Query Editor: [crayon-5a85df266ff17603321547/] Let’s explain. …
Book Excerpt: Basic Text Analytics using Power BI and Power Query in Excel - DataChant
Today I am excited to share a second excerpt from the draft manuscript of my book. Today’s excerpt is the first part of chapter 11, which discusses basic text analytics, and a cool technique to detect multiple keywords in textual feeds using Cartesian Product. To read more excerpts, as they will be published on the …
Running M Queries In Visual Studio With The Power Query SDK
Writing M in the Advanced Editor in Excel or Power BI can be a frustrating experience unless you’re the kind of masochist who loves writing code in Notepad. There are some options for writing M cod…
Power Query (M)agic: Right-Click Your Way To Data Cleaning Happiness - PowerPivotPro
From the Water Cooler As a 'water cooler' of sorts for this community, we meet some amazing people. Doug Burke shares with us how easy Power Query makes it
A generic SWITCH-function for the query editor in Power BI and Power Query – The BIccountant
Although it's not much code, it's so convenient to have a generic equivalent to the DAX-SWITCH-function in M for the query editor in Power BI or Power Query
Crazy Table Gymnastics - Part 1 - Dynamic Column Categories - Power BI Tips and Tricks
Create a fully dynamic Power BI table. This allows a user to select the Top N items from any number of column data fields. This table technique allows for wide flexibility in what your users are able to investigate within one table.
Power Query (M)agic: Dynamically remove leading rows AND columns - PowerPivotPro
The scenario – source data sheets that are structured differently! Does Power Query sometimes seem too rigid? It’s great for defining a sequence of transfo
Recurring dates with offset in Power Query - Powered Solutions
Imagine this scenario, you are a Doctor who has multiple appointments with patients on a daily basis. Sometimes, you need to schedule follow up appointments with your patients just to make sure that everything is going according to plan and basically do a check up. You record these appointments in a simple spreadsheet like the …
When you’re working with M code in Power BI or Power Query/Get&Transform you may want to include special characters such as carriage returns, line feeds or tabs inside a text value. To do this …
Calculate Days between dates using Power Query - Powered Solutions
Have you ever wanted to find out how many days you have between 2 dates? perhaps how many Mondays? how many Sundays? perhaps Saturdays and Sundays? Well, in this blog post I’ll show you how you can do that with Power Query inside of Excel and/or Power BI and how you can extend this to …
Extraction of number (or text) from a column with both text and number – #PowerQuery #PowerBI
When you are working with data in Excel or PowerBI the data often contains columns that is a combination of text and numbers. One example could be like this If you have this challenge you shouldn&…
Return a Specific Day of the Next Month - The Ken Puls (Excelguru) Blog
In a comment on a previous post, a reader asked how you return a specific day of the next month from any given date. In other words, I've got a date of March 5 and I want to use Power Query to return April 10 in Excel (or Power BI). How do you do it?
Writing documentation for custom M-functions, Part3 | THE SELF-SERVICE-BI BLOG
Adding allowed values to your custom M function adds high value to the user experience. This post shows you how to do that in the M language for Power Query and Power BI Desktop
CSV files are one of the most commonly used data sources in Power BI and Power Query/Get&Transform, and yet the documentation for the Csv.Document M function is very limited and in some cases i…
I worked through a brain-teaser on a consulting project today that I thought I’d share in case it was useful for someone else in the community. We needed to convert application user names into an …
Improving The Performance Of Aggregation After A Merge In Power BI And Excel Power Query/Get&Transform
A long time ago someone – probably from the Power Query dev team – told me that adding primary keys to M tables could improve the performance of certain transformations in Power BI and Excel Power …
Conditionally expanding table’s columns with Power Query M language
In one of my projects, I have to deal with XML files. The structure of the XML is usually flat and I don’t need to expand columns to get access to the values I’m looking for. Loading th…
Improving the performance when merging two tables with the Power Query M language
In a previous post, I explained how to parse a semi-structured flat file with the help of a range-join. When you just have a few thousand lines in your semi-structured flat files, this is working r…
Parsing semi-structured text files with the Power Query M language
My daughters participated to the provincial championships of gymnastics during this winter, both qualified for the regional championships. Between the two events, I analyzed the results of the diff…
I’ve downloaded a few M language based calendars, for use in Power BI recently and have been frustrated as they don’t quite meet my needs. So I’ve created my own. The main differe…
Do You Really Need/Want All That Detailed Data In Your Power BI DataSets?
Huh ? I remember some years ago standing next to an IT guy at the biggest Brewing company in Canada of the time. He proudly showed me a new product he had created that allowed the President (down the …