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.
Download PBIX file with the example below
This works for me
Count Below Average = CALCULATE(COUNTROWS('DataTable'), 'DataTable'[Value] < AVERAGE('DataTable'[Value]))Regards
Phil
9 Replies
- PhilipTreacySuper User
Download PBIX file with the example below
This works for me
Count Below Average = CALCULATE(COUNTROWS('DataTable'), 'DataTable'[Value] < AVERAGE('DataTable'[Value]))Regards
Phil
- EggsforbreakyRegular Visitor
Thanks PhilipTreacy , I am counting events as line items, not an actual value, how would you suggest i do this?
Throughput =CALCULATE(COUNTA('Item'[ItemId]))- PhilipTreacySuper User
Not sure what you mean. Please provide an example.
COUNTA counts cells in Excel that aren't empty. If you aren't using actual values, how can you work out an average?
Regards
Phil