Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
I created a Top 3 matrix visual for the following data, I would like to know how to calculate the top 3 percentage on the grand total for each year as shown below marked in red.
Thanks a lot.
Solved! Go to Solution.
@Anonymous , You can get top3 % like
divide(CALCULATE([Amount],TOPN(3,all(Table[item]),[Amount],DESC),VALUES(Table[item] )) ,CALCULATE([Amount], allselected))
But I doubt you can add that a new row. You can replace grand total using isinscope and hasonevalue
https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/
https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/
Hi @Anonymous,
If you are work with the matrix visual with default aggregate functions, you can right-click on the value fields to choose 'show value as' -> 'percent of grand total'. Then it will show the grand total percent of total value instead of the default summary values.
Regards,
Xiaoxin Sheng
@Anonymous , You can get top3 % like
divide(CALCULATE([Amount],TOPN(3,all(Table[item]),[Amount],DESC),VALUES(Table[item] )) ,CALCULATE([Amount], allselected))
But I doubt you can add that a new row. You can replace grand total using isinscope and hasonevalue
https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/
https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/
User | Count |
---|---|
128 | |
109 | |
100 | |
65 | |
62 |
User | Count |
---|---|
137 | |
115 | |
102 | |
71 | |
61 |