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
anshpalash
Helper II
Helper II

Conditional Table Split

anshpalash_0-1630253618719.png

Hi all,

 

This is one of the many files in my local folder from which Power BI is getting files. Each file has different number of IDs. So, the location of 'Parameters' row is different for every file. I want to separate this table into two. I want it to split at the 'Parameters' row for every file. Refreshing Power BI should update the two files with new information from each file. I am having a hard time figuring out a code that says something like, "If row contains 'Parameters', then split table into two. 

 

I would really appreciate if someone could help me out in this case. Thanks!

3 REPLIES 3
mahoneypat
Microsoft Employee
Microsoft Employee

Here is one way to do it dynamically.  Add a custom column with a formula like

 

= if [Column1] = "Parameters" then "Parameters" else null

 

Then do a Fill Down step in that new column, so all the rows below will have Parameters in that column.  You can now filter to include/exclude those rows as needed.

 

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Hi @mahoneypat , I do not want "Parameters" in every row. I want to have a separate table which would have only that data which is below the row containing Parameters. Does that make sense?

I did not expect you would want that intermediate columns with "parameters".  It is simply a way to filter to just those rows to create the table you want.  Once filtered (and perhaps after filtering a 2nd column to get rid of nulls, etc., you can delete that temporary column.

 

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Kudoed Authors