Forum Discussion
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.
Is it possible? I'm willing to format my data like this, if it helps.
Edited: Sorry I forgot to specify that I want Product Name to be in the Legend.
Thank you so much 🙂
6 Replies
- VijayP
Community Champion
Anonymous
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!
- AnonymousNot applicable
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.
- parry2k
Super User
Anonymous see attached, tweak as you see fit.
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.⚡
- AnonymousNot applicable
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.
- parry2k
Super User
Anonymous you cannot have a legend and 2 Y axis.
- AnonymousNot applicable
so that's how it is.
thank you so much for your answers 🙂