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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
sruthi_g
New Member

How can I reduce blank rows in a hierarchical setup in my dashboard?

I have a hierarchy like setup in my dashaboard. The data for these levels is split level wise in PowerQuery. I'm using a SQL Server Source which gives an output like this- A-Level1|B-UnderA|C-UnderB and so on. I use recursion to achieve this path dynamically for each row. The number of levels is different for all rows. So for a row with 3 levels- the 4th level on would be blank. But a row with 4 levels would have data there too. Problem is that when I convert this on to a dashboard, it shows a lot of blanks along with the data which isn't ideal for the user experience. Any suggestion how to handle this?

sruthi_g_0-1710864074585.png

Here, facilities doesn't have data for more than a level. But since the other rows have a data with maximum of 8 levels, all these levels show up blank. I don't want this to be visible in the dashboard. Only levels that have data should be visible.

1 ACCEPTED SOLUTION
v-tangjie-msft
Community Support
Community Support

Hi @sruthi_g ,

 

According to your description, here are my steps you can follow as a solution.

(1) This is my test data.  

vtangjiemsft_0-1710902127445.png

(2) We can create a measure. 

Flag = SWITCH(TRUE(),
ISINSCOPE('Table'[Column3]) &&MAX('Table'[Column3])=BLANK() ,0,
ISINSCOPE('Table'[Column2]) && MAX('Table'[Column2])=BLANK(),0,1)

(3) Place [Flag=1] on visual object screening and then the result is as follows.

vtangjiemsft_1-1710902280681.png

This post also describes another solution that you can refer to.

Parent-child hierarchies – DAX Patterns

 

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

View solution in original post

1 REPLY 1
v-tangjie-msft
Community Support
Community Support

Hi @sruthi_g ,

 

According to your description, here are my steps you can follow as a solution.

(1) This is my test data.  

vtangjiemsft_0-1710902127445.png

(2) We can create a measure. 

Flag = SWITCH(TRUE(),
ISINSCOPE('Table'[Column3]) &&MAX('Table'[Column3])=BLANK() ,0,
ISINSCOPE('Table'[Column2]) && MAX('Table'[Column2])=BLANK(),0,1)

(3) Place [Flag=1] on visual object screening and then the result is as follows.

vtangjiemsft_1-1710902280681.png

This post also describes another solution that you can refer to.

Parent-child hierarchies – DAX Patterns

 

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.