cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Y Axis starting value issue

 Hi All,

 

I have a simple Area Chart, with X-axis showing hours of the day, and a simple measure for sum of sales:

Capture.PNG

 

As you can see, the Y-axis starting value is (-1), despite it set to 0 on the right, and having no value below 0.

When there are actual sales, the chart appears OK with Y axis starting from 0 - this error only happens when there are no sales at all.

 

When setting End value to 1, it also changes to start from 0.

Tried changing the starting value to -0.0001, but it just makes the Y axis to start there and end at 0.

 

Is this a bug or is there are way around it?

Thank you!

1 ACCEPTED SOLUTION
v-xuding-msft
Community Support
Community Support

Hi @Anonymous ,

 

It is technically by design, in that it is how the axis logic is set up. We aren’t planning on prioritizing a change to the logic since it only happens when all values are zero, and there are few situations when there is a real business case for having an all 0 line and an axis of 0 to 1.

 

There is a similar issue you can reference.

 

Best Regards,

Xue Ding

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

Best Regards,
Xue Ding
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
v-xuding-msft
Community Support
Community Support

Hi @Anonymous ,

 

It is technically by design, in that it is how the axis logic is set up. We aren’t planning on prioritizing a change to the logic since it only happens when all values are zero, and there are few situations when there is a real business case for having an all 0 line and an axis of 0 to 1.

 

There is a similar issue you can reference.

 

Best Regards,

Xue Ding

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

Best Regards,
Xue Ding
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


...there are few situations when there is a real business case for having an all 0 line and an axis of 0 to 1.

@v-xuding-msft- I have a potential business case where all values on the Line Chart Visualization will always be positive. 

Anonymous
Not applicable

Thank you!

I wouldn't call it a "solution", as I can't use this visual like this infront of clients (it happens more often than not that all values are 0, it really depends on the time frame).

But I'll have to accept it as a "solution" for the time being.

 

Thanks for taking the time for a detailed reply!

Helpful resources

Announcements
Power BI December 2021 Update_carousel 768x460.jpg

Check it Out!

Click here to read more about the December 2021 Updates!

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Jan 2022 Dev Camp 768x460 copy.png

Power BI Dev Camp- January 27th, 2022

Mark your calendars and join us for our next Power BI Dev Camp!

Top Solution Authors
Top Kudoed Authors