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 ,
Does anybody know how can i calculate the percentage column in order to show the right value in the Total in the "Table" View
Percentage = Difference / Last Year * 100
The Percentage on each row is working but when the "Table" is calculating the TOTAL Row, it is not calculating right
Branch | Last Year | Current Year | Difference | Percentage |
LB | 1500 | 2000 | 500 | 33.33% |
QT | 2000 | 4000 | 2000 | 100.00% |
UA | 3000 | 3250 | 250 | 8.33% |
KA | 4000 | 4500 | 500 | 12.50% |
Total | 10500 | 13750 | 3250 | 30.95% |
Solved! Go to Solution.
The numbers I see in your example are correct, or do you expect to see something else?
Assuming they're correct, and that's your expected output - in general the formula is correct, but will only work if you create measure, you will also need to aggregate the columns with SUM
Also I would suggest using DIVIDE, as it has the proper DIV/0 handling, so
PercentageMeasure=DIVIDE(SUM(Table[Difference]),SUM(Table[Last Year]))*100
The numbers I see in your example are correct, or do you expect to see something else?
Assuming they're correct, and that's your expected output - in general the formula is correct, but will only work if you create measure, you will also need to aggregate the columns with SUM
Also I would suggest using DIVIDE, as it has the proper DIV/0 handling, so
PercentageMeasure=DIVIDE(SUM(Table[Difference]),SUM(Table[Last Year]))*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 |
---|---|
109 | |
99 | |
75 | |
63 | |
62 |
User | Count |
---|---|
143 | |
104 | |
103 | |
82 | |
66 |