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.
Hello,
I have a large matrix set up and would like to set up a measure that calculates the total row percentage. ie:
Item Qtr1 Qtr2 Qtr3 Qtr4 Total
A 100 300 200 400 1000
The measure would calculate as
Item Qtr1 Qtr2 Qtr3 Qtr4 Total
A 10% 30% 20% 40% 100%
I also have a handful of page level filters that I have to account for. I tried
%ofTotal = DIVIDE(SUM(Table[Sales]),CALCULATE(SUM(Table[Sales]), ALLEXCEPT(Table,Table[Sales]
This returns a percentage of total sales for the entire table. Please help.
Solved! Go to Solution.
hi @Sean and @Anonymous
To calculate the % for each item this is the dax sentence:
% of Total Measure = DIVIDE ( CALCULATE ( SUM ( Table1[Sales] ) ), CALCULATE ( SUM ( Table1[Sales] ), ALL ( Table1[Quarter], Table1[Item Description] ) ), 0 )
And if you want 100% for each Item Description.
% of Total Measure = DIVIDE ( CALCULATE ( SUM ( Table1[Sales] ) ), CALCULATE ( SUM ( Table1[Sales] ), ALL ( Table1[Quarter] ) ), 0 )
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 |
---|---|
111 | |
94 | |
83 | |
67 | |
59 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |