Forum Discussion
Anonymous
7 years agoNot applicable
Select distinct ID and averaged value from a complex table
Hi all, I am new to PowerBI and this might be a simple question, but it would be great if someone can help me with that. In the below data set, I am trying to select the people (and count t...
- 7 years ago
Anonymous Ok, in that case you will get three rows as output (You banana average is not correct, you are missing last row).
Test246Out = VAR _Summary = SUMMARIZE(Test246Avg,Test246Avg[UserID],"Avg",AVERAGE(Test246Avg[Grades])) VAR _AvgofAvg = AVERAGEX(_Summary,[Avg]) RETURN FILTER(_Summary,[Avg]>_AvgofAvg)
PattemManohar
Community Champion
7 years agoAnonymous Ok, in that case you will get three rows as output (You banana average is not correct, you are missing last row).
Test246Out = VAR _Summary = SUMMARIZE(Test246Avg,Test246Avg[UserID],"Avg",AVERAGE(Test246Avg[Grades])) VAR _AvgofAvg = AVERAGEX(_Summary,[Avg]) RETURN FILTER(_Summary,[Avg]>_AvgofAvg)
Anonymous
7 years agoNot applicable
Brilliant! Thank you so much!