Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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/
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
99 | |
80 | |
69 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |