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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
LaurenceSD
Advocate II
Advocate II

Line and bar chart y-axis mis-aligned

Hi,

 

I've got a line and bar chart showing enquiries per day and then a rolling 7 day average, but despite turning off the secondary axis, the line still appears to be using this "hidden" axis. On the example below you can see that for date shown the number of enquiries was 43 and the 7 day average was 40, but the line is higher up than the bar, when it should be below it. I found one idea which was to show secondary axis, then align 0s and then turn off secondary axis, but this hasn't resolved this issue. Any suggestions would be appreciated. Thanks

 

LaurenceSD_0-1614161214546.png

 

4 REPLIES 4
v-eqin-msft
Community Support
Community Support

Hi @LaurenceSD ,

 

To my knowledge, the Show Secondary option is disable by default and based on my test,everything works fine. So I agree with @amitchandak ,it is a little strange...

2.26.3.disable.PNG

But If re-create visuals could not make sense, and the Desktop version has been the latest,

you could input Start and End of Y-axis by yourself and enable "Show Secondary" and "Align zeros" options like this:

2.26.3.enable.gif

 

Here is the pbix file.

 

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

thanks @v-eqin-msft  that's what i ended up doing was fixing the axis and using zoom slider to assist as well. It does seem as thought something is up to my end, because on the bugs forum @amitchandak  directed me to my post on there also got a response that it worked fine for others, but thanks.

amitchandak
Super User
Super User

@LaurenceSD , Seems strange. Show secondary show move both of them on the same axis. Remove line; add once again and switch off secondary axis.

If did work try on a new visual, if your version is Feb 2021 and this does not work after these two steps, report an issue - https://community.powerbi.com/t5/Issues/idb-p/Issues

@amitchandak thanks for the suggestion, i've given that a go but no joy I've confirmed I'm on Feb 2021 and I've tested by putting them on the same axis in a clustered chart and it's working fine, but just the visual I want. Thanks for your help

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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