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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

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 @Anonymous 

 

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  @Anonymous 

 

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 @Anonymous 

 

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.
Anonymous
Not applicable

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

@Anonymous 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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.