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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
ssuzjzuss
Frequent Visitor

NEED HELP! Show zero with measure in line chart is not apply date filter

I tried using +0, and it displayed the value 0, but when I used +0, it caused my visualization not to filter data using the date filter. I also tried filtering with the min-max date obtained from the date slicer, but it didn't work either.

 

Filter:

date-filter.png

 

Not show zero (Data in april):

not-show-zero.png

DAX my measure:

(CALCULATE(COUNT([Count passed]), support_table[Count passed] = 1) / COUNT([id]))*100

 

 

With show zero:

show-zero.png

DAX my measure:

(CALCULATE(COUNT([Count passed])+0, support_table[Count passed] = 1) / COUNT([id]))*100

 

Does anyone have any other suggestions?

Thank you in advance.

1 ACCEPTED SOLUTION
DataNinja777
Super User
Super User

@ssuzjzuss 

 

What about the formula below?

Sakiko_0-1694411109175.png

Are the columns [Count passed] and [id] both in the table, 'support_table'?  I wasn't sure which table(s) those columns belonged to.  

 

 

v

View solution in original post

3 REPLIES 3
ssuzjzuss
Frequent Visitor

Hi Sakiko,

 

Thank you very much for your suggestion. That works for me!

 

Do you have any reason about different between / (slash) and divide function?

 
 

 

 

Yes.  I was always told when I started learning DAX many years ago to use divide function instead of / slash, because slash when dividing by zero will cause #NUM error.  Since that time, I avoided using / as a divisor and always have used divide function.  

 

DIVIDE function vs divide operator (/) in DAX - DAX | Microsoft Learn 

DataNinja777
Super User
Super User

@ssuzjzuss 

 

What about the formula below?

Sakiko_0-1694411109175.png

Are the columns [Count passed] and [id] both in the table, 'support_table'?  I wasn't sure which table(s) those columns belonged to.  

 

 

v

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!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.