Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
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?
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
87 | |
81 | |
53 | |
37 | |
35 |