Using Power BI DirectLake in Microsoft Fabric
I am super excited to release this blog post and I cannot wait to start using Microsoft Fabric and all the different components. The goal of my blog post is to look at how I could use Microsoft Fabric from a Power BI developers point of view. Microsoft Fabric is a new all in one platform which includes Power BI….
Power Query – How to run a query only if data is returned
I had a requirement where I wanted to only have the underlying query run if there was data in the table. As shown in the image below a query would run, scan 20GB and then return zero rows. After making the changes what then happens is an initial query runs which will count the number of rows and if there…
Updating your Query syntax in Power Query to show the entire query in M
Welcome to 2023, I am looking forward to an amazing year! I have seen this come up a few times in Twitter where there is an option to put in your own TSQL Query or DAX Query and the input box is very small and often you cannot see the entire query as shown below. I will show you how…
Power Query – Appending text to end of column name
Power query can be so powerful and once again it came to my rescue. I had a requirement where I wanted to append some text to the end of each of the column names in my table. To do this I did the following below. This is what the columns looked like before the change. Next, I put in the…
Getting the lineage from a Power BI dataset to table to data source to original query
As often happens blog posts originate from a customer requesting something I have not figured out before. In this example the requirement was to be able to determine which data sources were being used by which tables, which were then associated to one or many Power BI datsets. While I was working through this I figured out I could take…
Using an IN Condition for multiple values in Power Query (Power BI)
In the example I did not want to specify all the country names one row at a time. This not only takes a long time, but if I had to then make updates it could be painful too. The requirement was for certain countries to have their names and the rest be grouped into “Other Countries” I found this useful…
Known Issues Power BI Report with Alerting
I was actually working on my own version of the Known Issues Power BI report, when the Power BI team released their blog post New Power BI Known Issue page | Microsoft Power BI Blog | Microsoft Power BI In the steps below I am going to show you the report I created, and then how I configured it to…
Power Query – Remove all characters before delimiter & after delimiter
Below is the Power Query Syntax where I wanted to move the characters before the delimiter. I must give credit to the Power BI Community who got me going with how to solve this. For reference: Solved: Rename all column headers removing part before to … – Microsoft Power BI Community This is an example of what my column name…
How to refresh Excel files faster in Power BI
I was recently getting an error when refreshing an Excel file that was stored in SharePoint online. This got me thinking what the issue is and is there a way to improve it and YES there is as detailed below. When I investigated this further, I found that my 17kb Excel file was using at least 616kb of data when…
Power Query (M) – Passing Parameters dynamically to a SQL Server Query
I had a requirement where the client wanted the capability to decide how much data to load from a SQL Server Query (TSQL). This was so that they could limit the dataset returned, as at times they did not need all the data. So below I demonstrate how to achieve this. NOTE: This will be slightly advanced because I had to…