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
wildmight2017
Advocate II
Advocate II

DAX - calculating sum of condition based on calculated measures (screen and pbix included)

Good afternoon, I decided to try to get assistance, been stuck on this for a little bit of time already:

 

Summary: I'm trying achieve the following measure calculation - pseudologic (sum of expression  - IF ([Calc Measure 1]>[Calc Measure 2], 1, 0) - I'd need to be able to display this measure independently in other calculations. On  the screen below, I'd like to be able to derive measure which would display 5 (count of Employees having individual Performance % higher than Perofranc ein Service Region %) in other visuals (such as KPI, card).

 

So far, I've faced 2 issues: a) not being able to filter TRUE/FALSE expression b) circular. I'd also like to have a DAX-formula scalar solution, rather than changing tables/data model.  

 

Formula for Performance % measure:

Performance % = DIVIDE(SUM('Fact Jobs'[JobsCompleted]), SUM('Fact Jobs'[JobsTargeted]),0 ) 

 

Formula for Performance by Service Region measure :

 

Performance by Service Region % = CALCULATE ([Performance %],SUMMARIZE ('Dim Employee', 'Dim Employee'[service_region]), ALL('Dim Employee'[Name]))

 

Screenshot:

screen.png

 

 

Thank you for your help! 

Link to PBIX: Issue PBIX

1 ACCEPTED SOLUTION

What worked was    Count of filtered rows = COUNTROWS (FILTER(tablename), [FILTER column]=1) 

View solution in original post

2 REPLIES 2
wildmight2017
Advocate II
Advocate II

Should I try to caculate a "physical" table and then use  it to get those measures? 

What worked was    Count of filtered rows = COUNTROWS (FILTER(tablename), [FILTER column]=1) 

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.

Top Solution Authors