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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Percentage of Parent Total

Hello,

 

I am trying to calculate the percentage of parent total and make a bar chart in Power BI. I am beginner and I am not sure how to do it in Power BI.

I would appreciate If you could advise me on this.

This is how I calculate and visualise it in Excel:

Paren Total Bar chart.PNGPercentage of Parent Total.PNG

1 ACCEPTED SOLUTION
Fowmy
Super User
Super User

@Anonymous 

Use below measure:

% Parent = 

DIVIDE(
    SUM(Table[Cost]),
    CALCULATE(
        SUM(Table[Cost]),
        ALLSELECTED(Table[Mode])
    )
)


________________________

If my answer was helpful, please consider Accept it as the solution to help the other members find it

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube  LinkedIn

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

@Fowmy  I used the measure and it works! Thank you!

Fowmy
Super User
Super User

@Anonymous 

Use below measure:

% Parent = 

DIVIDE(
    SUM(Table[Cost]),
    CALCULATE(
        SUM(Table[Cost]),
        ALLSELECTED(Table[Mode])
    )
)


________________________

If my answer was helpful, please consider Accept it as the solution to help the other members find it

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube  LinkedIn

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

amitchandak
Super User
Super User

@Anonymous , both supplier and mode on the x-axis. And sort on them +plus concatenate label off. Check screenshot

Concat 1.pngConcat2.png

 

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi @amitchandak,

Thanks for your reply.

I've made the changes you mentioned but it only shows total percentage of cost by transport mode. I want to see the percentage of the cost for each supplier by transport mode like I did in Excel.

Bar Chart PBI.PNG

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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