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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
SUTChepe
Frequent Visitor

Calculate the count of a measure in DAX

Hi, I have a simple table for a Quality program, where I have a Measure:

 

QA Score = AVERAGE([Score])

This gives me the QA Score, but I want to make a DAX measure that calculates all the QA Score that are above or equal 90%, I tried doing several but I always have errors counting others or not counting all, the latest example I have is:

 

On target: =CALCULATE(DISTINCTCOUNT([Name]),FILTER(Table_Name,[QA Score]>=0.9))

 

Weekly evaluation works fine as we only have 1 evaluation per agent, but the problem starts when we have more than 1 week as we have 1 evaluation above 90% and one lower than 90%, for example:

 

EvaluationsQA ScoreOn Target
285%1
   

 

when having 2 evaluations:

 

SUTChepe_0-1692052813075.png

 

But i would like the "on target" measure to calculate this based on the overall measure, not the individual evaluation performance, please let me know if it makes sense

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @SUTChepe 

please try

On Target: =
SUMX ( VALUES ( Table_Name[Name] ), INT ( [QA Score] >= 0.9 ) )

View solution in original post

2 REPLIES 2
tamerj1
Super User
Super User

Hi @SUTChepe 

please try

On Target: =
SUMX ( VALUES ( Table_Name[Name] ), INT ( [QA Score] >= 0.9 ) )

Worked like a charm

Never used the "VALUES" formula before

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.