Forum Discussion
pgardella
9 years agoNew Member
Average users per group
Good morning! I am just starting to use PowerBI and DAX, and have been frustrated by what seems like it should be an easy thing. Given a table like this: Group_Name Group_ID User_ID ...
Sean
9 years agoCommunity Champion
pgardella This should work! :smileyhappy:
User Per Group =
DIVIDE (
CALCULATE ( COUNTROWS ( 'Table' ), ALLEXCEPT ( 'Table', 'Table'[Group_ID] ) ),
DISTINCTCOUNT ( 'Table'[Group_Name] ),
0
)pgardella
9 years agoNew Member
Well, that is one way I hadn't even considered! Thank you!