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
Qotsa
Helper V
Helper V

Count not returning expected result

Hi,

 

I have this measure - 

Wages as % of Invoiced = DIVIDE([Wages],[Invoiced],0)
 
I want a total of client_id where this measure is < .6
I am using -
Less than .6 = CALCULATE(DISTINCTCOUNT('powerbi114 view_finance'[client_id]),FILTER('powerbi114 view_finance',[Wages as % of Invoiced] < .6))
 
But results are not what I expect. See example.count1.png
 
3 REPLIES 3
V-pazhen-msft
Community Support
Community Support

@Qotsa 

Measure only calculates the current row. Your formula should work with column.

Try add All(table) in the filter:

Measure = CALCULATE(DISTINCTCOUNT('powerbi114 view_finance'[client_id]),FILTER('powerbi114 view_finance',[Wages as % of Invoiced] < .6),ALL('Table'))
 
Paul Zheng
If this post helps, please consider Accept it as the solution to help the other members to find it.

@V-pazhen-msft 

 

Thks for reply.

 

No luck with your column. Getting results of -

 

First pic is Don't Summarize. The 2nd is using SUM.

 

dc1.jpgSum.jpg

@Qotsa 

 

My formula should also work with measure. Isn't 1582 is your expected count of client that < 0.6?

If not, please share a sample pbix with expected result. 

 

Paul

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.