cancel
Showing results for 
Search instead for 
Did you mean: 
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.

 






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.






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
Power BI Show Episode 10 Recap

The Power BI Community Show

Watch the playback when Amit Chandak, a Power BI Super User, demos how to use Field Parameters to make reports more dynamic.

Power BI Dev Camp Session 26

New Date - Check it Out!

Mark your calendars and join us on Thursday, October 6 at 11a PDT for a great session with Ted Pattison!

Health and Life Sciences Power BI User Group

Health and Life Sciences Power BI User Group

Power BI specialists at Microsoft have created a community user group where customers in the provider, payor, pharma, health solutions, and life science industries can collaborate.

Ignite 2022

What's Next at Microsoft Ignite 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Top Solution Authors