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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
wynhodgkiss
Helper III
Helper III

Constant lines on dual axis charts

Hi,

I have a dual axis chart:

1.png

and I'm able to add a constant line against the Y axis but not the secondary Y axis, am I missing something?

2.png

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @wynhodgkiss 
You don't miss anything.
We don't have it as a functionality of a constant,
But you can create another measure for a second constant and put it on the second Y-axis directly 

Ritaf1983_0-1701363501476.png

PBIX is attached

If this post helps, then please consider Accepting it as the solution to help the other

members find it more quickly

View solution in original post

3 REPLIES 3
wynhodgkiss
Helper III
Helper III

I know, I just prefer the format of the constant line. It doesn't add an entry to the legend and you have more control over the format of the label etc

Any idea if there is an existing idea to vote for to have this added? If not, I'll start one myself

@wynhodgkiss 
I didn't find any idea about the issue, you can suggest here :

https://ideas.fabric.microsoft.com/

According to the legend, you can switch it off and use series labels instead

Ritaf1983_0-1701365681160.png

or generate the legend according to your needs manually like in my suggestion in the linked post :

https://community.fabric.microsoft.com/t5/Desktop/Can-t-change-column-legend-to-gradient-for-line-an...


From the perspective of efficient data visualization, using a graph with 2 y-axes is not considered a best practice. Introducing constant lines further complicates the interpretation for the graph's reader. I recommend creating two separate graphs and arranging them vertically, one below the other.

like in the picture :

Ritaf1983_1-1701366344758.png

more information about the troubles of 2 axes graphs is in the link:

https://blog.datawrapper.de/dualaxis/

 

 

If this post helps, then please consider Accepting it as the solution to help the other

members find it more quickly

Ritaf1983
Super User
Super User

Hi @wynhodgkiss 
You don't miss anything.
We don't have it as a functionality of a constant,
But you can create another measure for a second constant and put it on the second Y-axis directly 

Ritaf1983_0-1701363501476.png

PBIX is attached

If this post helps, then please consider Accepting it as the solution to help the other

members find it more quickly

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.