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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
AvPowerBI
Post Patron
Post Patron

Matrix Visualization - Suppress Zero and Missing Rows

Hi,

 

I am currently using a Matrix Visualization, I want Suppress Zero and Missing Rows?

Currently all the Rows are showing because of the way the DAX Measure is being calculated and cannot think of an alternative way to deal with this.

 

Basically I want those Rows to be grouped as blank or Null and appear on the Visuzalization, is this possible?

 

Thanks

 

 

 

5 REPLIES 5
v-easonf-msft
Community Support
Community Support

Hi, @AvPowerBI 

Could you please tell me whether your problem has been solved?

For now, there is no content of description in the thread.

 

Best Regards,
Community Support Team _ Eason

Greg_Deckler
Super User
Super User

@AvPowerBI - Perhaps something like:

Measure =
  VAR __Calc = <some calculation>
RETURN
  IF(__Calc = 0,BLANK(),__Calc)

Make sure that "Show items with no data" is not turned on anywhere. 

 

Otherwise, Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882

Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...
v-easonf-msft
Community Support
Community Support

Hi, @AvPowerBI 

Could you  please  share relevant screenshots to further elaborate on your question?

 

Best Regards,
Community Support Team _ Eason

amitchandak
Super User
Super User

@AvPowerBI , not very clear. Try measure like

 

if([measure] =0 , blank(), [measure])

 

if(calculate([measure]) ,allexcept(Table,Table[row])) =0, blank(), [measure]) // row is column on row.

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
pranit828
Community Champion
Community Champion

HI @AvPowerBI 

Can you please provide more info with screenshots, input and required output in table format for the community so that you ask can be better understood and resolved quickly.

from what I understand, I would use

Visual Control = 
var _result = 
CALCULATE(
    SUM('Table'[Value]),
    ALLEXCEPT('Table','Table'[Category])
)
return
IF(
    _result>0,
    1,0
)

Then,

pranit828_0-1599040494393.png

 





PBI_SuperUser_Rank@1x.png


Hope it resolves your issue? 
Did I answer your question? Mark my post as a solution!

Appreciate your Kudos, Press the thumbs up button!!
Linkedin Profile

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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