Forum Discussion

bml123's avatar
bml123
Icon for Post Patron rankPost Patron
4 years ago
Solved

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?

  • 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.

3 Replies

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

  • 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.

  • v-zhangti's avatar
    v-zhangti
    Icon for Community Support rankCommunity Support

    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.