Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin 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.
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!
Solved! Go to Solution.
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)
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)
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.
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
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
71 | |
55 | |
38 | |
31 |
User | Count |
---|---|
71 | |
64 | |
62 | |
50 | |
46 |