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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Divide chart values to total

Greetings everyone,

 

I got stuck in a problem with probably a simple solution.

 

I have a chart of products with actual selling(grey bars) and goal on selling(green bars).

 

I need to divide the actual selling to the total of the actual sellings on each product and the goal selling on each product to the  total of the goal selling for each product.

 

So basically dividing the green bars ammount to the total of the green bars ammount and the gray bars ammount to the total of the gray bars ammount.

In the end I will have to make the result to look like a percentage and be next to those bars, but I think that is something I can manage.

 

Example: 10,337/15,610 ; 2362/15,610 (green barss)

1,487 / 2550 ; 421 / 2550 ( gray bars)

 

Thank you for your support!

 

 

powerbi.PNG

1 ACCEPTED SOLUTION
Anonymous
Not applicable

If ActualSelling is your measure,

 

TotalSelling = 
CALCULATE(
[ActualSelling],
ALL(Table[Product])
)

You can create another measure TotalGoalSelling by the same way

 

Then you can create the final measure as = DIVIDE(ActualSelling,TotalSelling)

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

If ActualSelling is your measure,

 

TotalSelling = 
CALCULATE(
[ActualSelling],
ALL(Table[Product])
)

You can create another measure TotalGoalSelling by the same way

 

Then you can create the final measure as = DIVIDE(ActualSelling,TotalSelling)

Anonymous
Not applicable

This is the right idea but I need to find a formula to split the total on products, like create a second measure from the one that was generated by the chart that looks exactly like the chart and after that divide them.

 

Basically the picture that I posted was generated, I need to find out a formula that does the same thing but I am the one writing it, not generating from drag and drop.

Anonymous
Not applicable

If you use the final measures as sugested and drag this measure in your bar chart with product on X Axis, it would works fine

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

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.