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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

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

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

@Anonymous 

 

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

Anonymous
Not applicable

@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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.