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
Anonymous
Not applicable

Multiple Legends via Selection - Line Chart

I am using a line chart and am trying to use multiple columns as legends, so that users can switch between the way in which the data is split up, for example: via product type, or via vendor, or via binned cost. Is there a workaround to be able to do this?

1 ACCEPTED SOLUTION
pranit828
Community Champion
Community Champion

Hi @Anonymous 

It can be done with the help of Perspective.

You need to have the August 2020 release and have Tabular Editor installed through Help --> External Tools

Here is the link to the steps.

https://powerbi.microsoft.com/en-us/blog/power-bi-desktop-august-2020-feature-summary/#_Perspectives





PBI_SuperUser_Rank@1x.png


Hope it resolves your issue? 
Did I answer your question? Mark my post as a solution!

Appreciate your Kudos, Press the thumbs up button!!
Linkedin Profile

View solution in original post

5 REPLIES 5
pranit828
Community Champion
Community Champion

Hi @Anonymous 

It can be done with the help of Perspective.

You need to have the August 2020 release and have Tabular Editor installed through Help --> External Tools

Here is the link to the steps.

https://powerbi.microsoft.com/en-us/blog/power-bi-desktop-august-2020-feature-summary/#_Perspectives





PBI_SuperUser_Rank@1x.png


Hope it resolves your issue? 
Did I answer your question? Mark my post as a solution!

Appreciate your Kudos, Press the thumbs up button!!
Linkedin Profile
harshnathani
Community Champion
Community Champion

HI @Anonymous ,

 

Can you share some sample data and the expected output.

 

Also, see if this helps.

 

https://www.youtube.com/watch?v=_sxLEGRCo28&t=182s

 

Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

Anonymous
Not applicable

@harshnathani

 

I think I solved it. I used the dynamic x-axis solution, and applied it to the legend, see below:

 

https://www.youtube.com/watch?v=lFd2hjkKz_Q

Hi @Anonymous ,

It's glad to hear that your problem has been resolved. Thanks for sharing your solution here. Could you please mark your last reply as Answered? It will help others in the community find the solution easily if they face the same problem with you. Thank you.

Best Regards

Rena 

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Harsh,

 

This is not the dataset I am using, but it paints the picture I am going for. You can see that I placed "Country" on the Legend. Now if I wanted to split sales up by "Product Category" or "Region", as a desktop user, I can do that. But my end users, without pro-accounts cannot. Is there a workaround, so that the end user can select a drop down to change the Legend. So they can split sales up via "Country", or "Region", or "Manufacturer", etc.


chilesam_0-1599764562356.png

 

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.