Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
bml123
Post Patron
Post Patron

Calculate percentages

Hi,

 

I have data like this and need to calculate percentages

 

2021 AmountPercentage
 Oct1012%
 Nov45%
 Dec56%
2022Jan67%
 Feb1012%
 Mar56%
 Apr1518%
 May2024%
 Jun1012%
Total 85100%

 

How do I achieve this?

1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @bml123 

 

Please check the following methods.

Percentage = 
DIVIDE (
    SUM ( 'Table'[Amount] ),
    CALCULATE ( SUM ( 'Table'[Amount] ), ALL ( 'Table' ) )
)

vzhangti_0-1658226147789.png

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.

View solution in original post

3 REPLIES 3
v-zhangti
Community Support
Community Support

Hi, @bml123 

 

Please check the following methods.

Percentage = 
DIVIDE (
    SUM ( 'Table'[Amount] ),
    CALCULATE ( SUM ( 'Table'[Amount] ), ALL ( 'Table' ) )
)

vzhangti_0-1658226147789.png

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.

Ashish_Mathur
Super User
Super User

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.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
lbendlin
Super User
Super User

You can use implicit measures. Add your Amount column to the visual again, then choose "Show as percentage of Grand Total"

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.