Forum Discussion
Measure in Power BI Report Builder
Try this:
=IIF(Fields!Group.Value = "Yes", Count(Fields!Value.Value), 0) / Count(Fields!Value.Value)
- NJ818583 years ago
Helper IV
Shahfaisal I have entered this as a formula but when I try and input that into my graph, it gives me the following error:
"The expression used for the calculated field 'Percent' includes an aggregate, RowNumber, RunningValue, Previous or lookup function. Aggregate, RowNumber, RunningValue, Previous and lookup functions cannot be used in calculated field expressions.
----------------------------
The definition of the report '' is invalid.
----------------------------
An error occurred during local report processing."I am not sure where I am going wrong with my formula.
- Shahfaisal3 years ago
Solution Sage
The expression should be used in a group row but it looks like you used it in a detail row.