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
PhilipTreacy
1 year agoSuper 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
- Eggsforbreaky1 year agoRegular 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]))- PhilipTreacy1 year agoSuper 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
- Eggsforbreaky1 year agoRegular Visitor
I am using date and time slicers to filter the data on the page, each item counted is an event from the sql which i count for throughput. I calculate throughput -
db Throughput = CALCULATE(COUNTA('Item'[ItemId]))
Hope this helps & thanks again