I'm trying to create a count if calculation in powerbi report builder, previously I used the following logic to do this in power bi desktop but this does not transfer across to report builder;
MthMinus1LicStaffCnt>10 = CALCULATE (
COUNTROWS( 'Query1' ),
FILTER ( Query1, Query1[MthMinus1LicStaffCnt] >=10)
)
/
COUNTROWS ( Query1 )
In report builder I have used variations of the following expression;
=IIf(Fields!MthMinus1LicStaffCnt.Value >= "10", Sum(Fields!MthMinus1LicStaffCnt.Value), 0 )
But it generates the following error:
The expression used for the calculated field 'test' includes an aggregate, RowNumber, RunningValue, Previous or lookup function. Aggregate, RowNumber, RunningValue, Previous and lookup functions cannot be used in calculated field expressions.
Any ideas how to implement this in report builder, the basic logic is to count a field if it is >= 10
Thanks Blowers