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.
Dear All,
Greetings!
I am loading my calculated data from excel into Power BI. After loading, the "totals row" auto-generated by Power BI is summing the average column values as well. I want the average column to display the value as per my calculation logic. If I disable "totals", all the values from that row are disappearing. I want the A and B columns total to be summed and displayed, but the percentage column needs to consider the total sum values of A and B and calculate the overall average as per Formula in percentage header i.e. =[(160/(160+529))*100]
Current Power BI Output | |||
A | B | Percentage = ((A/(A+B))*100 | |
9 | 237 | 3.66 | |
5 | 21 | 19.23 | |
14 | 40 | 25.93 | |
112 | 222 | 33.53 | |
16 | 9 | 64.00 | |
4 | 100.00 | ||
Total | 160 | 529 | 246.35 |
Expected Output | |||
A | B | Percentage = ((A/(A+B))*100 | |
9 | 237 | 3.66 | |
5 | 21 | 19.23 | |
14 | 40 | 25.93 | |
112 | 222 | 33.53 | |
16 | 9 | 64.00 | |
4 | 100.00 | ||
Total | 160 | 529 | 23.22 |
Any suggestion would be greatly appreciated.
Thanks in Advance.
Solved! Go to Solution.
@rnagallatav , try like
divide(sum(A),sumx(Table,table[A]+table[B]))
Mark column as % column. Not need to multiply by 100
@rnagallatav , try like
divide(sum(A),sumx(Table,table[A]+table[B]))
Mark column as % column. Not need to multiply by 100
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 |
---|---|
112 | |
97 | |
83 | |
67 | |
61 |
User | Count |
---|---|
150 | |
120 | |
99 | |
87 | |
68 |