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…
Parsing a string with Power BI (M language) | Ambiguity vs Information - Linkis.com
A few days ago, I read an interesting blog post of Lukas Lötters [b|t] where he is explaining how to use regular expressions in Power BI (M language) by running an R script. It’s...
Finding text strings of table inside text strings of other table
Select Table 2, click the Query tab, and click Reference. This will create a new query that references Table 2 and will allow us to add a lookup column without enabling Fast Combine.Add a custom column with the following formula: List.First(List.Select(Table1[Product],(productName) = Text.Contains(productName, [Product])))Viola!
How Many Working Days Has An Employee Been Off Work? - PowerPivotPro
I answered some forum questions recently that were similar in nature and I thought they would make a good blog article. The scenario is this: there is a ta
Transform Column using custom function in Power Query (part 2)
Year ago I wrote a post Transform table column using own function in Power Query. According to stats, it is quite popular topic, and I’m not surprised. However, I think that old post is quite…
Clean WhiteSpace in Power QueryThe Ken Puls (Excelguru) Blog
Power Query’s Text.Trim function doesn’t clean whitespace inside the text string, only at the ends. This article shows a custom function that does.
Automatically remove empty columns and rows from a table in Excel using Power Query - DataChant
Follow Me In today’s tutorial we will solve a very common challenge in Excel. You start with an Excel table and you wish to condense it by removing all the columns and/or rows which are entirely empty, and usually you don’t have prior knowledge which columns and rows are empty. For example, In the screenshot …
let fxContain = (txt as text, idx as number) = let Result = if Text.Contains(txt,ListB{idx}) then ListB{idx} else if idx = ListCountB then null else @fxContain(txt,idx+1) in Result, ListA = {"help me rhonda", "in my room", "good vibrations", "god only knows"}, ListB = {"room", "me", "only", "help"}, ListCountB = List.Count(ListB)-1, ListC = List.Transform(ListA, each fxContain(_,0))in ListC