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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
aditya_141228
Helper I
Helper I

Matrix Visual

aditya_141228_0-1717336042691.png

This is a matrix visual with some columns however what I need in this is that I want to display records of only those which have values in any one of the columns and I don't want to display records that has values 0 or null in every column.

What's the best way to achieve this?

 

Any help or suggestions will be appreciated.

Thank You

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @aditya_141228 ,

 

You can try this.

MEASURE = 
IF(NOT('Table'[Measure 2] = 0 || 'Table'[Measure 2] = BLANK()) ||
NOT('Table'[Measure 3] = 0 || 'Table'[Measure 3] = BLANK()) ||
NOT('Table'[Measure 4] = 0 || 'Table'[Measure 4] = BLANK()) ||
NOT('Table'[Measure 5] = 0 || 'Table'[Measure 5] = BLANK()),1,0)

 

vkaiyuemsft_0-1717658440300.png

 

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

7 REPLIES 7
Anonymous
Not applicable

Hi @aditya_141228

 

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

 

You can use filters to achieve this.


For example, my original data is like this.

vkaiyuemsft_0-1717468420220.png

 

Use filters to filter out results where the rate column is not blank and not 0.

 

vkaiyuemsft_2-1717468477797.png

 

For more details about filters, refer to the document: Add a filter to a report in Power BI - Power BI | Microsoft Learn.

 

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.

Hi @Anonymous 
Thank You for replying and giving your attention to the issue, the insight that you provided is correct however my requirement is a bit different here. Suppose I've added 10 fields in my matrix in the values section, my requirement would be that if all the values in these 10 fields are zero or blank then I don't want that entry to reflect in the Matrix or Table visual but if any of the 10 fields has any non zero value then that entry should be visible. 

 

Please do reply if you have further doubts over my confusion.

 

Any help or suggestions will be appreciated.

Anonymous
Not applicable

Hi @aditya_141228 ,

 

1. Create a measure that adds the values ​​of all columns and returns the distinct value.

MEASURE =
IF (
SUM ( 'Table'[%] ) + SUM ( 'Table'[num1] )
+ SUM ( 'Table'[num2] )
+ SUM ( 'Table'[rate] ) > 0,
1,
0
)

 

2. Filter out the values ​​with a value of 1 in the filter.

vkaiyuemsft_0-1717566075588.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.

Hi @Anonymous ,

I'm using some measures in the field too and it's taking only columns that existed in the table or the calculated columns that I've added. What will be the way to do the same for measures too?

Anonymous
Not applicable

Hi @aditya_141228 ,

 

You can try this.

MEASURE = 
IF(NOT('Table'[Measure 2] = 0 || 'Table'[Measure 2] = BLANK()) ||
NOT('Table'[Measure 3] = 0 || 'Table'[Measure 3] = BLANK()) ||
NOT('Table'[Measure 4] = 0 || 'Table'[Measure 4] = BLANK()) ||
NOT('Table'[Measure 5] = 0 || 'Table'[Measure 5] = BLANK()),1,0)

 

vkaiyuemsft_0-1717658440300.png

 

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.

@Anonymous 
Thank You for the insight it is working fine, though I need to add this new measure in my table otherwise it is not getting placed in the filter for this visual pane but I've managed to add the measure. This is the solution so far. Do let me know if there is any other way around which works even if I do not add the measure in the matrix or table visual.

DataNinja777
Super User
Super User

Hi @aditya_141228 ,

 

I suppose there are multiple ways to produce your required output, and one of them is to wrap your measures in  formulas like below to supress zeros in visual.

DataNinja777_0-1717337585509.png

However, if you have many measures, doing this one by one may take long time, in which case calculation group may be useful (even though I never used that myself.)  

Best regards,

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.