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

View all the Fabric Data Days sessions on demand. View schedule

Reply
DaxNewbie
Frequent Visitor

Calculate() filtered by another measure

Hello,

 

I am trying to filter a calculate() statement with another calculated measure. I have looked at serveral previous questions, but those solutions did not seem to work. Any assistance with my question below or pointing me toward the correct solution in the forum is most appreciated.

 

My dataset has the following structure: 

 

 YearClassClassMovementName
201540John
201640John
201740John
201510Sarah
201621Sarah
201731Sarah
201650Amit 
201750Amit 
201510Nicole
201610Nicole
201721Nicole

 

 

First I created a calculated measure to identify years with no movement (see below). 

 

MoveCalcFilter = CALCULATE(DISTINCTCOUNT(table[Year]), FILTER(table, table[ClassMovement] = 0))

Adding the measure "MoveCalcFilter" to the 'Name' colum results in the following:

 

NameMoveCalcFilter 
John3
Sarah1
Amit2
Nicole2

 

 

Next, I want to used create another calculated measure to count the number of distinct names for which there is a MoveCalcFilter value of three. I tried following calculation, but it resulted in only blank values. 

 

NoMoveCount = CALCULATE(DISTINCTCOUNT(table[Name], FILTER(table,table[MoveCalcFilter] = 3))

The ideal output would yield:

 

ClassNoMoveCount 
41

 

 

Any assistance would be most appreciated. I thank you for your time. Please feel free to reach out if additional information would be helpful.

 

Cheers!

 

1 ACCEPTED SOLUTION
Vvelarde
Community Champion
Community Champion

@DaxNewbie

 

Hi, try with this:

 

Measure = COUNTX(VALUES(Table2[Name]),IF([MoveCalcFilter]=3,1,BLANK()))

 

Regards

 

Victor




Lima - Peru

View solution in original post

3 REPLIES 3
Vvelarde
Community Champion
Community Champion

@DaxNewbie

 

Hi, try with this:

 

Measure = COUNTX(VALUES(Table2[Name]),IF([MoveCalcFilter]=3,1,BLANK()))

 

Regards

 

Victor




Lima - Peru
Vvelarde
Community Champion
Community Champion

@DaxNewbie

 

Hi, try with this:

 

Measure = COUNTX(VALUES(Table2[Name]),IF([MoveCalcFilter]=3,1,BLANK()))

 

Regards

 

Victor




Lima - Peru

@Vvelarde

 

Thank you Victor! You are wonderfully helpful! 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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
Top Kudoed Authors