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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

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
Super User
Super User

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
Super User
Super User

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.