Forum Discussion
Sum of TOPN Columns
- 9 years ago
Anonymous
You need to group the categories to applied the aggregation.
One way is this:
Top2RL = CALCULATE ( SUM ( Table3[Value] ), TOPN ( 3, GROUPBY ( Table3, Table3[Category] ), CALCULATE ( SUM ( Table3[Value] ) ) ) ) - 9 years ago
Hi Anonymous,
Great to hear the problem got resolved.:smileyhappy: Could you accept the corresponding reply as solution to help others who has similar issue easily find the answer and close this thread?
Regards
Anonymous the formula Vvelarde gave should work for that.
Look
The SumTOPNa expression is:
SumTOPNa = CALCULATE(sum(Table1[Column2]), TOPN (3, PieChart, SUM(Table1[Column2]), DESC))
- Vvelarde9 years ago
Community Champion
Anonymous
You need to group the categories to applied the aggregation.
One way is this:
Top2RL = CALCULATE ( SUM ( Table3[Value] ), TOPN ( 3, GROUPBY ( Table3, Table3[Category] ), CALCULATE ( SUM ( Table3[Value] ) ) ) ) - Anonymous9 years agoNot applicable
THANKS Vvelarde!!! I've been trying to figure this out whole day :D
- v-ljerr-msft9 years ago
Microsoft Employee
Hi Anonymous,
Great to hear the problem got resolved.:smileyhappy: Could you accept the corresponding reply as solution to help others who has similar issue easily find the answer and close this thread?
Regards
- Anonymous3 years agoNot applicable
You're amazing! Thank you for this answer.
- singhranjeet1013 years agoFrequent Visitor
It works but when we try to filter values further. it returns blank table. How we can fix that?