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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.