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

Slicer by column

Hi,

I have the below table which I can create a line chart from. However I would like a slicer above it where people can select, for example 'Area A' and 'Area C' and they get just the lines for those two areas.

 

I've tried unpivoting the columns but then I can't get two separate lines on the line chart, can anyone advise please? Thank you!

 

WeekArea AArea BArea CArea DArea EArea FArea G
142475226
271281174512
31914129136712
418671264911
1 ACCEPTED SOLUTION
Payeras_BI
Super User
Super User

Hi Humandoing,

 

If I understood well you could unpivot your data like this:

Payeras_BI_0-1604401604735.png

 

And then get the result you want.

 

Payeras_BI_1-1604401655579.png

 

Regards,

 

J. Payeras

 

If this post answered your question, please mark it as a solution to help other users find useful content.
Kudos are another nice way to acknowledge those who tried to help you.

J. Payeras
Mallorca, Spain

View solution in original post

2 REPLIES 2
Payeras_BI
Super User
Super User

Hi Humandoing,

 

If I understood well you could unpivot your data like this:

Payeras_BI_0-1604401604735.png

 

And then get the result you want.

 

Payeras_BI_1-1604401655579.png

 

Regards,

 

J. Payeras

 

If this post answered your question, please mark it as a solution to help other users find useful content.
Kudos are another nice way to acknowledge those who tried to help you.

J. Payeras
Mallorca, Spain
Anonymous
Not applicable

Thanks so much for your time and reply, that works perfectly. My issue was that I hadn't completed the final step of adding 'attribute' to the legend.

 

Many thanks

Ryan

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.