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.
Hi,
I have data like this and need to calculate percentages
2021 | Amount | Percentage | |
Oct | 10 | 12% | |
Nov | 4 | 5% | |
Dec | 5 | 6% | |
2022 | Jan | 6 | 7% |
Feb | 10 | 12% | |
Mar | 5 | 6% | |
Apr | 15 | 18% | |
May | 20 | 24% | |
Jun | 10 | 12% | |
Total | 85 | 100% |
How do I achieve this?
Solved! Go to Solution.
Hi, @bml123
Please check the following methods.
Percentage =
DIVIDE (
SUM ( 'Table'[Amount] ),
CALCULATE ( SUM ( 'Table'[Amount] ), ALL ( 'Table' ) )
)
Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more.
Hi, @bml123
Please check the following methods.
Percentage =
DIVIDE (
SUM ( 'Table'[Amount] ),
CALCULATE ( SUM ( 'Table'[Amount] ), ALL ( 'Table' ) )
)
Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more.
Hi,
You should create a Calendar Table with calculated column formulas for Year, Month name and Month number. Sort the Month name by the Month number. Create a relationship (Many to One and Single) from the Date column in your Data to the Date column in the Calendar Table. To your visual, drag Year and Month name from the Calendar Table. Write these measures:
Amount = sum(Data[Value])
% amount = calculate([Amount],all(Calendar))
Hope this helps.
You can use implicit measures. Add your Amount column to the visual again, then choose "Show as percentage of Grand Total"
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 |
---|---|
114 | |
105 | |
79 | |
68 | |
63 |
User | Count |
---|---|
148 | |
107 | |
106 | |
82 | |
70 |