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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Removing values from a matrix if there are 0s or blanks

Hi there, 

 

I have a matrix with a number of attributes down the left and a number of columns checking how many nulls, too long and too short there are:Matrix.PNG

 

I need the matrix to not show the attributes in blue (they are all diffrent attributes) due to there being no values (0s or blank values) in column 2,3,4,6,7,8 (column 1 and 5 are irrelevant) and to only show the values under the red squares (there are values in one of 2,3,4,6,7,8)

 

In essence its looks to me like i need a nested IF( function like: 

IF( All records null = blank or 0 then IF( all records too long  blank or 0 then IF( all records too short = blank or 0 then IF( migrating records null = blank or 0 then IF(migrating records too short = blank or 0 then IF( migratin grecords too long = blank or 0  then dont show the attribute) IF ELSE( show the attribute,)

 

Something along those lines.

 

Any help would be much appreciate. 

 

TIA

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , if all records are null, power bi should not show that, unless a measure is created to show that.

 

Also if there are multiple measures used then power bi can not remove the measure if all values are blank. You can try calculation groups for that

 

Calculation Groups- Measure Slicer, Measure Header Grouping, Measure to dimension conversion. Complex Table display : https://youtu.be/qMNv67P8Go0

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Thank you @amitchandak 

 

So there will alwasy be atleast one populated column (either colum 1 ('All records'), column 5 ('migrating records') or both. Therefore poweri will alwasy show all the attributes. I would like to be able to create a measure that ignors those columns and if any of the other columns are blank or 0 then reome them from the table. 

 

i.e. only show those with a values in column 2,3,4,6,7,8 

 

thanks

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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 community update carousel

Fabric Community Update - June 2025

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