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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Matrix visual with several measures: how to not show lines with no data / zero's

I have created a matrix with several measures.

When all measures are '0' I do not want the line the appear in the matrix.

Is this possible and if so how?

 

matrix1.PNG

1 ACCEPTED SOLUTION
AlB
Super User
Super User

Hi @Anonymous

 

One option (albeit perhaps a bit cumbersome) would be to create a measure like this:

 

 

ShowMeasure = IF ( [Measure_1] =0  &&
                   [Measure_2] =0  && 
                   [Measure_3] =0  &&
                   // All the other measures here, same pattern
                   [Measure_N] =0,
                   1)                                  

 and then place the measure in the visual level filters of your visual and select 'Show items when value:' is not 1                       

View solution in original post

2 REPLIES 2
AlB
Super User
Super User

Hi @Anonymous

 

One option (albeit perhaps a bit cumbersome) would be to create a measure like this:

 

 

ShowMeasure = IF ( [Measure_1] =0  &&
                   [Measure_2] =0  && 
                   [Measure_3] =0  &&
                   // All the other measures here, same pattern
                   [Measure_N] =0,
                   1)                                  

 and then place the measure in the visual level filters of your visual and select 'Show items when value:' is not 1                       

Anonymous
Not applicable

HI @AlB thanks indeed that should work. So probably no easy setting for this is possible in the visual itself but solve it via measures.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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