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

The Fabric community is upgrading! Read all of the details including the timeline and what you can expect. Learn more

Reply

Remove Blank Rows in Matrix

Hi All,

 

I have a 5 level matrix (for example), which includes rows that are empty, due to some values having 5 applicable levels, and others less.

 

The matrix simply shows the hierarchy as rows, with an ID below each applicable row:


Donerandparmo1_0-1783952980949.png

 

Donerandparmo1_1-1783953035520.png

 

 

How can I remove the blank row in WBS Level 4 above "Barred Tee" for example.

 

I've looked at solutions online, and none of them seem to work in this instance, as I don't believe I have a measure.

 

Cheers!

2 ACCEPTED SOLUTIONS
v-sathmakuri
Community Support
Community Support

Hi @Donerandparmo1 ,

 

Thanks for reaching out to fabric community.

 

I have created a power bi file based on my understanding. I have unpivoted the columns and calculated columns to represent the data.

 

If the file doesnot meet your requirements please let us know you query in details so that we will try to reproduce what you want.

 

Thanks!!

View solution in original post

danextian
Super User
Super User

Please try this  similar post https://community.fabric.microsoft.com/t5/Desktop/Avoid-blanks-on-a-hierarchy-without-modifying-cont...

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

8 REPLIES 8
v-sathmakuri
Community Support
Community Support

Hi @Donerandparmo1 ,

 

Have the provided solution helped in resolved your issue? If you still have any additional questions, please let us know.

 

Thanks!!

v-sathmakuri
Community Support
Community Support

Hi @Donerandparmo1 ,

 

Could you please review the solution provided above and let us know if you have any further questions.

 

Thanks!!

danextian
Super User
Super User

Please try this  similar post https://community.fabric.microsoft.com/t5/Desktop/Avoid-blanks-on-a-hierarchy-without-modifying-cont...

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
v-sathmakuri
Community Support
Community Support

Hi @Donerandparmo1 ,

 

Thanks for reaching out to fabric community.

 

I have created a power bi file based on my understanding. I have unpivoted the columns and calculated columns to represent the data.

 

If the file doesnot meet your requirements please let us know you query in details so that we will try to reproduce what you want.

 

Thanks!!

oussamahaimoud
Memorable Member
Memorable Member

Hi,

 

Are WBS Level 2-5 calculated columns built from a Path/PATHITEM function on a Parent-Child structure, or are they already separate flat columns coming from your source table from Power Query or the database ?


  Did my response help you? Clicking Kudos is a small gesture that goes a long way, it encourages contributors and helps the community thrive!


Did I answer your question? Please mark my post as a Solution, it helps others find the answer faster.


Senior Data & BI Consultant · Microsoft Fabric & Power BI Specialist


Connect with me on LinkedIn

Hi,

 

Separate columns:


Donerandparmo1_0-1784011105467.png

 

Use Power Query to unpivot Level 2 through Level 5 and remove the blank values, then build a clean parent→child structure, the Matrix will then show the hierarchy correctly without empty spaces https://community.fabric.microsoft.com/t5/Desktop/Having-issue-with-Ragged-hierarchy-in-matrix-visua....

 

Practically: create one column that concatenates only the non-blank levels into a single path/label per row (e.g., "PIPING" for the parent's own line, "PIPING > Barred Tee" for the child), and drive the matrix from that instead of 5 separate Level columns.


  Did my response help you? Clicking Kudos is a small gesture that goes a long way, it encourages contributors and helps the community thrive!


Did I answer your question? Please mark my post as a Solution, it helps others find the answer faster.


Senior Data & BI Consultant · Microsoft Fabric & Power BI Specialist


Connect with me on LinkedIn

Hi,

 

Thanks for the response.

 

Not sure if I fully understand, but I have unpivoted all the WBS columns, and then simply placed into a matrix as such:

Donerandparmo1_0-1784101363093.png

 

 

The issue with this is that I cannot identify which WBS Level 3s come from which WBS Level 2s, does this make sense?

 

Cheers

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.