powerquery - Trouble Using a Function - Stack Overflow
I'm trying to invoke a function that sorts a column in the calling query's table. I'm basically trying to turn this... ...into this... I made this simple function: = () = let Source = ...
How do I create a custom index column in PowerQuery? - Stack Overflow
I have the following data in PowerQuery: | ParentX | A | | ParentY | A | | ParentZ | A | | ParentY | B | | ParentZ | B | | ParentX | C | | ParentY | C | | ParentZ | C | I want to add an index col...
Nested Loop with List.Generate in Power Query - DataChant
Recently I shared a Matrix Multiplication Power Query technique here, and explained how to use List.Generate as the core step of the multiplication. It was fun to experiment with List.Generate and use it to implement a kind of a For-Loop. So I thought it would be cool to use List.Generate to iterate over a nested loop. Below …
Stacking non-nested groups of repeating columns in Power Query | Excel Inside
There are plenty examples on how to unpivot nested tables. But what if a table we need to make flat has no nested headers for repeating groups of columns?
Advanced Mathematical Formulas using the M Language
Learn about the mathematical formulas available in the Power BI Desktop and Power Query as well as how to load and convert data for your reporting needs.
Whenever I’m faced with a data mashup problem in Power BI, I try to check if it can be resolved with a standard M functions exposed by the intrinsic variable #shared. Navigating this data str…
Keep Only Numbers in Power QueryThe Ken Puls (Excelguru) Blog
For this post, I’m show how we can Keep Only Numbers from a string of text (removing all other characters), as well as keep only text (removing all numbers)
Using Text.BetweenDelimiters() To Extract URLs From A Web Page In Power BI/Power Query M – Chris Webb's BI Blog
The Add Column By Example functionality that appeared in the April 2017 release of Power BI Desktop is, I have to say, very cool: I’ve used it quite a bit in the last few weeks and it really does w…
Power Query – Adding Parameters within a piece of text
Below is where I had a situation where I wanted to put in a parameter within a piece of text. This was so that I could then dynamically change the Month Version for my budget and when I refreshed m…
Developing queries for Power BI and Power Query I had to look into documentation or check my previous solutions from time to time in order to get answers to same questions again and again. So, I en…
Web Scraping in Power BI and Excel Power Query - DataChant
There are abundant public data sources on the Web, and it is so tempting to import and mash them up with your existing data sets in Power BI and Excel Power Query to gain new correlations and insights. While it’s easy to import static tables from many websites in Power BI and Excel Power Query, you’ve probably …
Machine Learning with M in PowerBI and Excel – The BIccountant
Very often I have thought about trying M instead of R for machine learning problems in PowerBI. Not only because I’m such a big fan of M, but also because (…) Read more
Power BI – Power Query/Query Editor Automated Source Control
I saw a blog post recently where Jay Killeen was talking about how he handles his Source Control for the Query Editor or Power Query. And this got me thinking of how I could automate this in a quic…
Convert Month-To-Date Data into Daily Data - PowerPivotPro
Sometimes (dare I say often, or even usually) the data you have available is not in the ideal shape for analysis in Power BI. These problems can manifest i
Conditions in FirstN, LastN and other xN-functions in M, PowerBI and Power Query – The BIccountant
Today I discovered that we can use conditions in many of the N-selecting functions where one/I would normally expect just a number-expression for the N: Table.RemoveFirstN( table as table, optional countOrCondition as any) (…) Read more
Specifying Allowed Values, Sample Values and Descriptions For Function Parameters In Power Query–Part 1 – Chris Webb's BI Blog
The other day when I was thinking about Power Query functions (as you do) it occurred to me that they would be a lot more usable if, when you invoked them, you could show your users a dropdown box …
Follow Me Order is a crucial force in life, especially if you are a data analyst. But as we will see today, the misuse of order might cause an unexpected chaos. In today’s post, we will discuss the chaotic nature of column ordering in the Query Editor of Power BI and Power Query / Get & …
Projections with Power BI (M language) | Ambiguity vs Information
In a previous blog post, I explained how to list all the Data Platform MVP by parsing a single web page. In a second blog post, I parsed the individual pages of each MVP to get information about he…
Do … While loop with Power BI (M language). | Ambiguity vs Information
In a first blog post, I explained how to list all the Data Platform MVP by parsing a single web page. In a second blog post, I parsed the individual pages of each MVP to get information about her a…