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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
zervino
Helper I
Helper I

Matrix visual, don't show rows with empty name

I have created a matrix visual and currently looks like this:

 

zervino_1-1718898013198.png

The source data has 3 columns: Team, Block, Person and then values for years.

My issue is that not all rows in the source data have a Team, Block or Person values.

Some have team; team and block; team, block and person; and others have none.

 

Is there a way to explode the matrix to show rows containing non-empty names in the column?

 

So something like this:

 

zervino_2-1718898206871.png

 

(Also removing the blank row at the top).

 

Right now I need to explode/collapse row by row to make it look nice, but that's not functional to publish for other users.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @zervino ,

 

Thanks for the reply from @ajohnso2 , please allow me to provide another insight: 

 

According to your description, I created these data.

vkaiyuemsft_0-1718957763191.png

 

1. Create a measure to determine whether the three-level names are all empty. If they are all empty, return 999, otherwise return the value to be displayed before.

MEASURE = 
IF (
    MAX ( 'Table'[Team] ) = BLANK ()
        && MAX ( 'Table'[Block] ) = BLANK ()
        && MAX ( 'Table'[Person] ) = BLANK (),
    999,
    SUM ( 'Table'[value] )
)

 

2. Filter the results where the measure is not 999 in the filter, and put the measure into the matrix values ​​position.

vkaiyuemsft_1-1718957811912.png

 

If your Current Period does not refer to this, please clarify in a follow-up reply.

 

Best Regards,

Clara Gong

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

3 REPLIES 3
Anonymous
Not applicable

Hi @zervino ,

 

Thanks for the reply from @ajohnso2 , please allow me to provide another insight: 

 

According to your description, I created these data.

vkaiyuemsft_0-1718957763191.png

 

1. Create a measure to determine whether the three-level names are all empty. If they are all empty, return 999, otherwise return the value to be displayed before.

MEASURE = 
IF (
    MAX ( 'Table'[Team] ) = BLANK ()
        && MAX ( 'Table'[Block] ) = BLANK ()
        && MAX ( 'Table'[Person] ) = BLANK (),
    999,
    SUM ( 'Table'[value] )
)

 

2. Filter the results where the measure is not 999 in the filter, and put the measure into the matrix values ​​position.

vkaiyuemsft_1-1718957811912.png

 

If your Current Period does not refer to this, please clarify in a follow-up reply.

 

Best Regards,

Clara Gong

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

ajohnso2
Super User
Super User

you can add a filter to the visual in the filter pane on LOB is not blank?

The matrix visual has 3 levels: Team, Block, Person.

 

Applying that filter works for the rows that have no name in any of the levels.

But I cannot use that kind of filter for cases for rows that have Team name but no Block.

In my example, Team C has no Block, so if I apply the filter by Block as well, all Team C would disappear from the visual.

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.