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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ChocoGanache
Frequent Visitor

Line chart with 2 Y-Axis based on data units

Hello I've been searching for a way to display line chart with 2 Y-Axis based on a certain column (unit) but cannot find any.

 

The required chart is a chart showing product prices with liter products using left Y-Axis and KG products using right Y-Axis. (X-Axis shows dates)

 

Here's sample data.

ChocoGanache_0-1612112405246.png

 

Is it possible? I'm willing to format my data like this, if it helps.

ChocoGanache_1-1612112611043.png

 

Edited: Sorry I forgot to specify that I want Product Name to be in the Legend.

Thank you so much 🙂

 

 

6 REPLIES 6
parry2k
Super User
Super User

@ChocoGanache you cannot have a legend and 2 Y axis.

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

so that's how it is. 
thank you so much for your answers 🙂

parry2k
Super User
Super User

@ChocoGanache see attached, tweak as you see fit.

 

image.png

 

Check my latest blog post Compare Budgeted Scenarios vs. Actuals I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Thanks so much for your reply. However,could you make it so that the legend says Water, Sand, Juice and Paper instead of KG and Litre? Sorry I forgot to mention that.

VijayP
Super User
Super User

@ChocoGanache 

Hope this is what yo want

To get second axis , you have to use Secondary values in Line Chart format options. Hope this helps you!

VijayP_1-1612113611834.png

 

 

 

VijayP_0-1612113534253.png

 




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Thanks for your reply however I forgot to mention that I need legend to list product names. 

I can't drag another price column to secondary values well after I put Product Name in Legend well. Sorry for not being clear.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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