Forum Discussion
Eggsforbreaky
1 year agoRegular Visitor
PBI Line chart counting numbers below average
Hi all, and thanks in advance. Hoping someone can assist me, I need a measure to count items on a line chart that are below average as below.
- 1 year ago
Download PBIX file with the example below
This works for me
Count Below Average = CALCULATE(COUNTROWS('DataTable'), 'DataTable'[Value] < AVERAGE('DataTable'[Value]))Regards
Phil
Eggsforbreaky
1 year agoRegular Visitor
PhilipTreacy
1 year agoSuper User
You have too many closing square brackets and parentheses. Try this
db Count Below Average = CALCULATE(COUNTROWS('Item'), 'Item'[ItemId] < AVERAGE('Item'[ItemId]))
Regards
Phil