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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Anonymous
Not applicable

Measure of percentage of grand total

Percentage of grand total.png

 

Hallo,

 

Could you please help me with a simple measure to calculate the percentage of each fraction, as it in the last column? 

 

1 ACCEPTED SOLUTION

Hi, @Anonymous 

 

You may use the following measure.

 

Result = 
DIVIDE(
    SUM('Table'[Value]),
    CALCULATE(
        SUM('Table'[Value]),
        ALLSELECTED('Table')
    )
)

 

 

Result:

a1.png

a2.png

a3.png

 

Best Regards

Allan

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

9 REPLIES 9
Ashish_Mathur
Super User
Super User

Hi,

Assuming Value is a measure that you have written, try this measure

=[Value]/CALCULATE([Value],ALL(Data[ID]))

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-alq-msft
Community Support
Community Support

Hi, @Anonymous 

 

Based on my research, you may create a measure as follows.

 

Result = 
DIVIDE(
    SUM('Table'[Value]),
    CALCULATE(
        SUM('Table'[Value]),
        ALL('Table')
    )
)

 

or

 

Result2 = 
SUMX(
    'Table',
    DIVIDE(
        'Table'[Value],
        CALCULATE(
            SUM('Table'[Value]),
            ALL('Table')
        )
    )
)

 

 

Then you may make the measure selected, go to 'Modeling' ribbon, click '%' and set 'Decimal places' as 0.

a1.png

 

Result:

a2.png

 

Best Regards

Allan

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

Anonymous
Not applicable

@v-alq-msft 

Thank you for your answer.

 

The only problem I am having is that the value is not responding to the filters. You can see below what I mean. 

Percentage value.png

Hi, @Anonymous 

 

You may use the following measure.

 

Result = 
DIVIDE(
    SUM('Table'[Value]),
    CALCULATE(
        SUM('Table'[Value]),
        ALLSELECTED('Table')
    )
)

 

 

Result:

a1.png

a2.png

a3.png

 

Best Regards

Allan

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Thank you! 🙂

amitchandak
Super User
Super User

Try like

divide(sum(table[Value]),calculate(sum(table[Value]),all(Table)))

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Greg_Deckler
Community Champion
Community Champion

The above is for a Table visualization.

 

If you need a column in a table:

Column = DIVIDE([Value],SUMX('Table',[Value]),0)

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
az38
Community Champion
Community Champion

Hi @Anonymous 

try a measure

Measure = 
DIVIDE( SELECTEDVALUE(Table[Value]),
CALCULATE(SUM(Table[Value]), ALL(Table))
)

or just set parameter "Show value as - Percent of Grand Total" in visual value settings 

 


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
Greg_Deckler
Community Champion
Community Champion

In the Values area, click the drop down and then Show As and then Percent of ...

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.