Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
I have a column with difference % values. I want to create a measure that will tell me how many of those values are greater than 50%. Can anyone advise how to do that?
Thanks,
NB1
Solved! Go to Solution.
When you get that error you have to include FILTER in the CALCULATE function.
You can still use @Zubair_Muhammad's measure, but you just need some adjustment:
Measure = CALCULATE ( COUNTROWS ( TableName ), FILTER(TableName, TableName[column] > .5 ))
@Anonymous
Try with following
Measure = CALCULATE ( COUNTROWS ( TableName ), TableName[column] > .5 )
@Zubair_Muhammad thanks, however i'm still getting an error message: "A function CALCULATE has been used in a True/False expression that is used as a filter table expression. This is not allowed."
The column I want to filter by values that are >/< 50% is itself a calculated column. Does that change the DAX formula that needs to be used?
When you get that error you have to include FILTER in the CALCULATE function.
You can still use @Zubair_Muhammad's measure, but you just need some adjustment:
Measure = CALCULATE ( COUNTROWS ( TableName ), FILTER(TableName, TableName[column] > .5 ))
@Anonymous
No it shouldn't matter if its a column or a calculated colum
Did you add the Formula as a MEASURE or calculated column
Could you show me the screen shot of your Table?
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.