Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hello,
I have a table like this one :
category | number |
cat_1 | 5 |
cat_2 | 6 |
cat_2 | 3 |
cat_1 | 1 |
cat_3 | 8 |
And I want to calculate the sum of number for each category, so :
category | sum |
cat_1 | 6 |
cat_2 | 9 |
cat_3 | 8 |
My final aim is to perfom a TOPN to get the N categories with the highest sum.
Any idea to do this stuff ?
Thank you
Solved! Go to Solution.
Hi @Anonymous ,
You can achieve it by TopN filter in Filters pane just as below screenshot:
TOP N Filter in Power BI with Zero DAX Code; Visual Level Filter
Best Regards
Hi @Anonymous ,
You can achieve it by TopN filter in Filters pane just as below screenshot:
TOP N Filter in Power BI with Zero DAX Code; Visual Level Filter
Best Regards
@Anonymous , Sum does not seem right to me
for TOPN Try
CALCULATE(Sum(Table[Number]),TOPN(2,all(Table[Category]),CALCULATE(Sum(Table[Number])) , DESC),VALUES(Table[Category]))
TOPN: https://youtu.be/QIVEFp-QiOk
User | Count |
---|---|
106 | |
89 | |
81 | |
76 | |
73 |
User | Count |
---|---|
112 | |
104 | |
96 | |
74 | |
66 |