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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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

 

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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