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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
NotMyJob
Helper III
Helper III

Line Chart Y Axis Range not scaling when a value exceeds an increment value

The Y axis seems to have a limitation on that if the data value exceeds the set(?) increment level line (see below it's 5 - not sure how that's determined either).  I would expect that if the data value reaches the threshold the Y axis values would increase another 5.  Or, whatever it's set at.  Would someone be able to explain this to me and if I can make that automatically increment when the data value exceeds the 'limit' on the Y axis?

 

NotMyJob_0-1678208469710.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @NotMyJob ,

Please try below steps:

1. below is my test table

Table:

vbinbinyumsft_0-1678327098063.png

2. create a mesure with below dax formula

Measure =
MAXX ( 'Table', [Column2] ) + 5

3. add a line chart with fields, apply measure to Y-axis Maximum

vbinbinyumsft_2-1678327473041.png

Please refer the attached .pbix file.

 

Best regards,
Community Support Team_Binbin Yu
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

3 REPLIES 3
Anonymous
Not applicable

Hi @NotMyJob ,

Please try below steps:

1. below is my test table

Table:

vbinbinyumsft_0-1678327098063.png

2. create a mesure with below dax formula

Measure =
MAXX ( 'Table', [Column2] ) + 5

3. add a line chart with fields, apply measure to Y-axis Maximum

vbinbinyumsft_2-1678327473041.png

Please refer the attached .pbix file.

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hi.

Above solution is properly working for whole number. But It does not work for the decimal number.

If use the decimal number in the "coloumn 2" it sum the value and did not plot the all three values.

It summarize the values on the coloum "Time" and plot in the line chart.

Could you give me a solution for plotting all the points in "12:00 am" in the line chart with summarize those instead assume it a values.

Thanks.

 

ValuesValuesVisualization of according data'sVisualization of according data's

Hi,

 

I figured out how to increase the max y-axis value for my line chart so that the max data point would always be positioned below the top of the y-axis (even with data slicer criteria applied). For each of the two lines in my visual, the y-axis data points were based on three differenet measures that calculated average values based on a data column (filtered by year). I initially used a MAXX function to identify the largest value across all six measures presented in the visual and then added a value of 1 (and incorporated the function into the y-axis max conditional formatting) but the y-axis max wasn't shifting. When I updated the DAX formula to result in the MAXX value with 20% of that value added to it the y-axis shifted correctly even when the values changed significantly after data slicers were applied. See below. 

 

pminnov_0-1690307587809.png

pminnov_1-1690307668414.png

 

This was the formula I used to create the MAXX value that I then incoporated into y-axis max conditional formatting: 

 

Y-axis max measure 

= VAR maxaverage = { measure 1,measure 2, measure 3, measure 4, measure 5, measure 6 }
RETURN
MAXX( maxaverage, [Value] )+MAXX(maxaverage, [Value]*.2)

 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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