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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
chiru_kudupudi
Resolver II
Resolver II

Custom line chart that supports two legends

Hello Everyone,

 

Is there any custom visual available to display two legends in a line chart?

 

I don't want to increase my dataset size as per the below solution. Any solution within the chart level is much appreciated.

https://community.powerbi.com/t5/Desktop/Custom-Visualisation-for-multiple-legends-and-values/m-p/64...

 

Thanks

1 ACCEPTED SOLUTION
chiru_kudupudi
Resolver II
Resolver II

I have developed a column chart with conditional formatting based on my other column using rules.
For each item in another column (Which I want to keep in the legend to change colour of a line) corresponding to the y axis column provided a rule to change colour.
Then changed the column chart to a line chart and created the measures to keep in the value section to satisfy the legend section requirement to get separate lines.

chiru_kudupudi_0-1627309082378.png

 

 

View solution in original post

2 REPLIES 2
chiru_kudupudi
Resolver II
Resolver II

I have developed a column chart with conditional formatting based on my other column using rules.
For each item in another column (Which I want to keep in the legend to change colour of a line) corresponding to the y axis column provided a rule to change colour.
Then changed the column chart to a line chart and created the measures to keep in the value section to satisfy the legend section requirement to get separate lines.

chiru_kudupudi_0-1627309082378.png

 

 

selimovd
Super User
Super User

Hey @chiru_kudupudi ,

 

there is the option of a secondary axis for a few visuals:

Combo chart in Power BI - Power BI | Microsoft Docs

 

I think the best it goes with a column and line chart. Check out the link above.

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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

Top Kudoed Authors