Forum Discussion
user35131
Helper III
5 years agoGet average of grouped second column based on values within first column
I would like to get the average of counts of values within a column broken up by group defined by a second column Sport Method Basketball Ball Basketball Ball Baseball Ball Baseb...
- 5 years ago
Hi,
Average = VAR MyTable = SUMMARIZE ( 'Table', 'Table'[Sport], 'Table'[Method], "Count", COUNTROWS ( 'Table' ) ) RETURN AVERAGEX ( MyTable, [Count] )Regards
Jos_Woolley
Solution Sage
5 years agoHi,
Average =
VAR MyTable =
SUMMARIZE (
'Table',
'Table'[Sport],
'Table'[Method],
"Count", COUNTROWS ( 'Table' )
)
RETURN
AVERAGEX ( MyTable, [Count] )Regards
user35131
Helper III
5 years agoThank You. I was wondering and i should have noted. Is there a way to freeze or lock the result of the average? Similar to the setup of this question. https://community.powerbi.com/t5/Desktop/Filter-by-slicer-for-one-column-but-freeze-or-lock-the-max-count/m-p/2052033#M767277