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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
orlando9427
Frequent Visitor

Do not show hierarchy level on a case-by-case basis in matrix

Hi,

 

I am currently working with a matrix that shows the sales information by tiers (Level 1, Level 2, Level 3, Level 4), but only in one situation do I need Level 3 to be skipped.

How it is currently displayed is

Level 1 - A15
Level 2 - A15
Level 3 - A10
Level 4 - A5
Level 4 - B3
Level 4 - C2
Level 3 - B5
Level 4 - A5
Level 2 - B10
Level 3 - A10

 

What I'm looking for is only when Level 2 equals A not show Level 3 looking like this

Level 1 - A15
Level 2 - A15
Level 4 - A10
Level 4 - B3
Level 4 - C2
Level 2 - B10
Level 3 - A10

 

The data contains the level information in the same row.

Level 1Level 2Level 3Level 4Quantity
AAAA10

 

Is there a way to accomplish this?

 

Thanks in advantage.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @orlando9427 

 

Unfortunately, Power BI's default settings might not directly support conditional hierarchy level display.

 

Maybe you can try creating a calculated column in your data model that conditionally returns the value for Level 3 based on the value of Level 2. The DAX formula for this calculated column could look something like this:

Level 3 Custom = IF('Table'[Level 2] = "A", BLANK(), 'Table'[Level 3])


This formula checks if Level 2 equals "A", and if so, it returns a blank value for Level 3; otherwise, it returns the original Level 3 value.


Instead of using the original Level 3 column in your matrix, use the newly created calculated column . This way, when Level 2 equals "A", Level 3 will effectively be skipped (displayed as blank), aligning with your requirement.

 

 

 

Best Regards,

Jayleny

 

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
Anonymous
Not applicable

Hi @orlando9427 

 

Unfortunately, Power BI's default settings might not directly support conditional hierarchy level display.

 

Maybe you can try creating a calculated column in your data model that conditionally returns the value for Level 3 based on the value of Level 2. The DAX formula for this calculated column could look something like this:

Level 3 Custom = IF('Table'[Level 2] = "A", BLANK(), 'Table'[Level 3])


This formula checks if Level 2 equals "A", and if so, it returns a blank value for Level 3; otherwise, it returns the original Level 3 value.


Instead of using the original Level 3 column in your matrix, use the newly created calculated column . This way, when Level 2 equals "A", Level 3 will effectively be skipped (displayed as blank), aligning with your requirement.

 

 

 

Best Regards,

Jayleny

 

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

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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