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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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

 

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
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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.