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
MCornish
Responsive Resident
Responsive Resident

Show zero instead of blank, but maintain filters

I have seen this asked a lot and the accepeted response is always Measure + 0, or an IF statement, or something along those lines.

 

However this give me an issue

 

If I start with this table, you can see that the 3 employees in IT have taken no sick days.

1.PNG

 

If I add the measure to add in the scoring system I would get a blank. Do what is suggested and I get a zero but the filter gets ignored.

 

2.PNG

 

What I need it to do is show a zero but not overide the filter placed on it

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@MCornish , Try something like this.  an new measure

if(max(table[Dept-Employee]) in values(table[Dept-Employee]) , [Measure]+0, blank())

 

[measure] is your existing measure

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@MCornish , Try something like this.  an new measure

if(max(table[Dept-Employee]) in values(table[Dept-Employee]) , [Measure]+0, blank())

 

[measure] is your existing measure

Really helpful

Dude you are a genius

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.