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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Line chart - multiple slizers, multiple legend

Hi,

 

I want to create a line chart, where one can choose from multiple slizers and get a line for each option.

 

Example:

* I want to choose both Mænd and Kvinder, and get a line for each

*Then I want to choose ADHD and Alle in the second slizer - so I get 4 lines in total: (Kvinder - ADHD), (Kvinder-Alle), (Mænd-ADHD) and (Mænd-Alle).

At the moment, I only get one for Women and one for Mand, and it just sum ADHD and Alle.  (I can only choose one variable in the legend)

 

Do anyone know if this is possible? if Not, does anyone have an good idea how to illustrate this?

Problem.png

Best

Sarah

3 REPLIES 3
Anonymous
Not applicable

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

v-deddai1-msft
Community Support
Community Support

Hi @Anonymous ,

 

I'm afraid it's not able to use slicer to change legend dynamically based on checked column names from the slicer visual directly by power bi. As a workaround, I suggest you use drill down report: https://docs.microsoft.com/en-us/power-bi/consumer/end-user-drill

 

Or you can create a slicer table, use the UNION function to summarize the legends you want to slice. Apart from that slicer related value, all the rest of the values are blanks.

 

For more details, please refer to  https://prathy.com/2018/12/dynamic-legend-in-power-bi-visual-linechart/

 

Best Regards,

Dedmon Dai

vanessafvg
Super User
Super User

can you demonstrate in the visual what you are trying to achieve with an example?  you will probably need to create another calculated measure or potentially calculated measures for each line you want to plot.





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors