Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
mmarcantonio1
Regular Visitor

Move different data set from

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.

search-data-set-example.PNG

 

 

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

 

 

3 REPLIES 3
mmarcantonio1
Regular Visitor

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.

query-trend-over-time.PNG

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.

pivot-table-queries-type.PNG

 

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.

options-for-data-construction.PNG

 

Any insight into this would be much appreciated!

 

Thank you.

ImkeF
Community Champion
Community Champion

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

Greg_Deckler
Community Champion
Community Champion

This seems like an @ImkeF kind of question...



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.