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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Line and stacked column visual: how to allocate a line value to use the secondary Y-axis?

I have a Line and stacked column visual. I have two column series and several line series. 

One of the line series is a very low number compared to the other series, so the line shows as flat on the X-axis. The values are about 1/1000th of the values of the other series.

I assumed I could simple enable the secondary Y-axis and set the line series to use this secondary Y-axis. But I cannot see anywhere in the Format settings to configure which Y-axis each line series uses.

How can this be done?

1 ACCEPTED SOLUTION

@Anonymous yes, I mentioned it in one of my previous messages:

SpartaBI_0-1658421490076.png


But still all the lines should align nicely on the chart. Did you also set a high value for the Y axis or kept in on Auto (the right choice in this case). 

P.S. Will very much appreciate your likes/kudos on my messages 🙂

View solution in original post

9 REPLIES 9
SpartaBI
Community Champion
Community Champion

@Anonymous make the 2nd y axis to be a logarithmic scale. Should solve your issue.
I don't think you can choose to split between the series. All of the line series will belond to the secondary y axis.


2022-05-19 17_30_22-Re_ Need help on DAX function with measure vs colu... - Microsoft Power BI Commu.png


Full-Logo11.png

SpartaBI_3-1652115470761.png   SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Showcase Report – Contoso By SpartaBI

Anonymous
Not applicable

@SpartaBI , there is no option for logarithmic in the "Scale Type" setting. Only "Linear".

@Anonymous do you have values lower then 0? Try to set the minimum axis value to 1 and then look for the logarithmic option

Anonymous
Not applicable

@SpartaBI , that is interesting - when I set Start to 1, the "Scale type" setting disappears and an option "Logarithmic scale (on/off)" appears.

When I set that to On, the one line series that has small values (around 1000 to 5000) are now showing as a readable line.

However, all the other lines are now appearing as compressed and at the very top of the chart. The logarithmic scale has been applied to them also, which I do not want.

@Anonymous Do you want to do a quick zoom to show me?

Anonymous
Not applicable

@SpartaBI , here is the chart with no secondary Y-axis. The line series that is the issue is the flat blue/green line on the X-axis.

EylesIT_0-1658421121835.png

When I enable secondary Y-axis,m set Start to 1, and Logarithmic scale to On, the chart looks like this:

EylesIT_1-1658421225495.png

 

Because you cannot specify which Y-axis each line series uses, I think Power BI assigned all the line series to the secondary Y-axis (and probably all the column series are assigned to the primary Y-axis).

@Anonymous yes, I mentioned it in one of my previous messages:

SpartaBI_0-1658421490076.png


But still all the lines should align nicely on the chart. Did you also set a high value for the Y axis or kept in on Auto (the right choice in this case). 

P.S. Will very much appreciate your likes/kudos on my messages 🙂

Anonymous
Not applicable

@SpartaBI yes I set the high value to Auto. 

Yes, you were right about not being able to assign a series to a particular Y-axis. A shame. I'll add it to the Power BI requests.

 

Thanks for your replies, I learned how to get Logarithmic scale enabled 🙂

@Anonymous my pleasure to talk with you 🙂
Please don't forget to accept the relvant message as a solution for community visibility.
P.S. Check out my showcase report - got some high level stuff there. Sure you will find there a lot of cool ideas. 
https://community.powerbi.com/t5/Data-Stories-Gallery/SpartaBI-Feat-Contoso-100K/td-p/2449543
Please give it a thumbs up over there if you liked it 🙂

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.