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
amty63
Helper III
Helper III

getting grand total zero when using measure and doing calculations.

I am using below formula in the table:

Column = if([measure]<5,DISTINCTCOUNT('FACT'[EMP_ID]),0)
 
when I am going for table visual, it returns 0.
 
 Attached snapshotAttached snapshot
 
  
1 ACCEPTED SOLUTION
v-diye-msft
Community Support
Community Support

Hi @amty63 

 

Please use the measure instead:

Measure = IF(MAX([columnvalue])<5,DISTINCTCOUNT('FACT'[EMP_ID]),0)

 

Community Support Team _ Dina Ye
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

4 REPLIES 4
v-diye-msft
Community Support
Community Support

Hi  @amty63 

 

If my above post helps, could you please consider Accept it as the solution to help the other members find it more quickly. thanks!

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
v-diye-msft
Community Support
Community Support

Hi @amty63 

 

Please use the measure instead:

Measure = IF(MAX([columnvalue])<5,DISTINCTCOUNT('FACT'[EMP_ID]),0)

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

We are getting an error while using MAX function. 

 

The MAX function only accepts a column reference as the argument number 1. I am using measure  and need to see the total for measures.

Anonymous
Not applicable

@amty63 Please try below measure

 

measure = CALCULATE(DISTINCTCOUNT('Table'[Country]),'Table'[columnvalue]<5)

 

Just in case you wan to display zero for other values

Measure = 
VAR _count = CALCULATE(DISTINCTCOUNT('Table'[Country]),'Table'[columnvalue]<5)
RETURN IF(ISBLANK(_count),0,_count)

 

 

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.