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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Anonymous
Not applicable

Column Comparison Percent of progress

I'm new to Power BI and I want to show the total percent of miles complete against the forecasted miles. I want my stacked bar chart to reflect that 84.9% of forecasted miles have been completed. However Power BI is displaying the allocation for the miles complete and forecast miles. Instead of showing 84.9% its showing 45.9%. How do I fix this? Percent of Column Total percent of progress 

Miles CompleteForecast Miles
2224
3435
4343
44
3438
99
4264
68
87100
2434

 

3 REPLIES 3
v-stephen-msft
Community Support
Community Support

Hi @Anonymous ,

 

Can you provide your expectations what the bar graph looks like?

From the data you give to test, the following measurement can get 84.9%

Measure = DIVIDE(SUM('Table'[Miles Complete]),SUM('Table'[Forecast Miles]))

1.png

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

It is responding by saying the Expression Error: The name 'Divide' wasn't recognized, make sure its spelled correctly, but looks like its spelled correctly.

RJ251997
Helper I
Helper I

Hi @Anonymous 

Please follow this steps .

Create a Line and clustered column chart

  1. Add a field to the shared axis.
  2. Add a metric to both the column values and line values.
  3. Click the dropdown on the metric in the column values and select Show value as -> Percent of grand total.
  4. In the formatting pane, under Y axis, turn on Align zeros.
  5. In the primary Y axis settings, set the position to right. Remove the axis title and change the primary axis font color to white
  6. Turn on Data labels.
  7. Scroll to the bottom of the Data labels category until you see Customize series. Turn that on. Select your metric in the drop down and turn Show to of

Thank & Regards

Rohit Jaiswal

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Solution Authors
Top Kudoed Authors