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

View all the Fabric Data Days sessions on demand. View schedule

Reply
BA123456
Frequent Visitor

Scale error in bar chart

Hey,

 

can someone help me fix the scale of the bar chart (s. below). Depending on the categories I´m selecting, the scale of the bar chart is off.

 

First example

BA123456_0-1759921254829.png

Second example with each value

BA123456_1-1759921325039.png

The value of the y-axis is on auto

BA123456_2-1759921419261.png

About 80% of the categories are fine, like in this example:

BA123456_3-1759921505068.png

 

Please let me know, if you need further information. Though, I can´t share the file.

 

Thank you 🙂

2 ACCEPTED SOLUTIONS
samratpbi
Super User
Super User

Hi @BA123456  , for Y axis, if you keep it as Auto, then Power BI will plot the axis which may not be always based on your max value. To resolve this, you need to create a measure.For this, I took a small dataset like below:

samratpbi_5-1759923941613.png

 

Then created a measure:

Max Val per Country =
VAR _max = SUMMARIZE(Chart, Chart[Period].[Month], "Max_Val", SUM(Chart[Volume]))
RETURN
MAXX(_max, [Max_Val]) * 1.2
 
What this measure does is, based on your slicer selection, it first group by months and then identifies the max value for all the given months. I think for your case, you can replace Chart[Period].Month with your year value. Then once the Max value we have, then simply multiply that with 1.2 factor to make the max level 120% of max value. You may change this factor based on your data.
 
After that, add that measure in y-axis max value.
 samratpbi_6-1759923981315.png

 

 

samratpbi_4-1759923921441.png

 


If this helps to resolve your problem then please mark it as solution.

Thanks - Samrat

 

 

@BA123456

View solution in original post

Royel
Solution Sage
Solution Sage

Hi @BA123456  use the measure and guideline suggested by @samratpbi

Only ensure 2 decimal places for values, since your values are less than 1 million. 

Royel_0-1759934723156.png

 

Thanks 

View solution in original post

4 REPLIES 4
BA123456
Frequent Visitor

This worked! Thanks a lot @Royel & @samratpbi 

Royel
Solution Sage
Solution Sage

Hi @BA123456  use the measure and guideline suggested by @samratpbi

Only ensure 2 decimal places for values, since your values are less than 1 million. 

Royel_0-1759934723156.png

 

Thanks 

samratpbi
Super User
Super User

Hi @BA123456  , for Y axis, if you keep it as Auto, then Power BI will plot the axis which may not be always based on your max value. To resolve this, you need to create a measure.For this, I took a small dataset like below:

samratpbi_5-1759923941613.png

 

Then created a measure:

Max Val per Country =
VAR _max = SUMMARIZE(Chart, Chart[Period].[Month], "Max_Val", SUM(Chart[Volume]))
RETURN
MAXX(_max, [Max_Val]) * 1.2
 
What this measure does is, based on your slicer selection, it first group by months and then identifies the max value for all the given months. I think for your case, you can replace Chart[Period].Month with your year value. Then once the Max value we have, then simply multiply that with 1.2 factor to make the max level 120% of max value. You may change this factor based on your data.
 
After that, add that measure in y-axis max value.
 samratpbi_6-1759923981315.png

 

 

samratpbi_4-1759923921441.png

 


If this helps to resolve your problem then please mark it as solution.

Thanks - Samrat

 

 

@BA123456

Hey Samrat, thanks for the fast reply 🤗

Unfortunately, it doesn't seem to be working. I think the unit displayed could be causing the problem. Should your solution above already bypass this problem? Example below

 

Units in million

BA123456_0-1759925850581.png

Units in thousand

BA123456_1-1759925874269.png

 

 

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors