Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi Community,
I have a set of files (same file type just pulled over different dates) where they all have the same format, with one data set (search queries with results) two blank rows, and another data set (search queries without results)- see screenshot for example.
Each file has a varying amount of rows for each data set, so the location of the two blank rows that separates each data set varies across these files.
Is there a way I can separate these datasets into different columns using PowerQuery (either via the UI or with M)? I want to automate separating these data sets so I can have the data in separate tables.
For now I plan to manually make these separate CSV files but I would prefer to automate this process.
Any advice would be much appreciated!
Thank you
Having thought this through a bit further I hope my sample result data would allow me to see the data visualized in two ways:
1. as a line chart for searches with results and without results over time for basic trend performance.
2. As a pivot table to review individual queries to understand if they had counts as either with results, without results, or both depending on the time period.
I am not sure if the separated columns approach I mentioned for queries with results vs those without results (option on the right in the screenshot below) or if having the queries in the same column with a single column to distinguish queries that do have results from those with no results will be possible.
Any insight into this would be much appreciated!
Thank you.
Sound achievable, but I don't know how you except your result to look like. Please share a sample/pic.
Imke Feldmann (The BIccountant)
If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!
How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries
This seems like an @ImkeF kind of question...
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 37 | |
| 34 | |
| 31 | |
| 27 |
| User | Count |
|---|---|
| 136 | |
| 99 | |
| 73 | |
| 66 | |
| 65 |