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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
HR3038511
Helper I
Helper I

Target Line in Stacked Bar Chart on same scale

Hi, 

 

In my stacked bar chart I'd like to have the target line on the same scale as the bars. Currently my target line is out of scale with the bars.  The target is 100 so i want it to be on the hight of 100 on the Y-axis so I can correctly see which bars are above 100. 

 

This is what I have currently:

HR3038511_0-1718223777953.png

 

Here you can find the example file: https://easyupload.io/fb6usj

 

Thanks!

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @HR3038511 ,

I see what you mean, but with Power BI Desktop, you can manually change it depending on how many you want to join. If you want to be dynamic, you can choose the FX next to it to write it.

vyilongmsft_0-1718261056313.png

vyilongmsft_1-1718261101551.png

 

 

 

Best Regards

Yilong Zhou

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

View solution in original post

4 REPLIES 4
HR3038511
Helper I
Helper I

@Anonymous The problem here is that over time there will be additional bars with values greate than 1000. So fixing the scale on the second axis won't do the job because the X axis scale might change. Any idea how to work around this?

Anonymous
Not applicable

Hi @HR3038511 ,

I see what you mean, but with Power BI Desktop, you can manually change it depending on how many you want to join. If you want to be dynamic, you can choose the FX next to it to write it.

vyilongmsft_0-1718261056313.png

vyilongmsft_1-1718261101551.png

 

 

 

Best Regards

Yilong Zhou

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

Uzi2019
Super User
Super User

Hi @HR3038511 

 

You can set the min and max value same for both Y axis and secondary Y axis.

Uzi2019_0-1718256935584.png

 

set same value for  secondary Y axis.

 

 

I hope  I answered your question!

 

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!
Anonymous
Not applicable

Hi @HR3038511 ,

I opened your .pbix file. I think you can go to Format visual and then choose Secondary y-axis.

vyilongmsft_0-1718242768083.png

Then you can set the Range to 0-1000.

vyilongmsft_1-1718242908262.png

Finally you will see what you want.

vyilongmsft_2-1718242965749.png

 

 

 

Best Regards

Yilong Zhou

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

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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