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
andyring
Frequent Visitor

How to have a multiple column slicer

I am wondering if it is possible to create a single slicer, which accounts for multiple columns and their values. Attached below is a sample of my data. For example, I want to be able to have a visualisation that shows item and version, and the actual values for the item/version would be the values attached to the date columns (001 January 2017, 002 Febuary 2017 etc.). I would want a slicer to be able to select which date column to be displayed in that graph.

Capture 1.PNG

I have tried quite a few methods, but nothing seems to work. Please give me any suggestion you feel would be appropriate, and let me know if you have any more questions. Is it a problem with the format of the data? Is it possible to have multiple columns fall under one "date" column (like the picture below)? Thank you.

 

Capture.PNG

 

1 ACCEPTED SOLUTION
prateekraina
Memorable Member
Memorable Member

Hi @andyring,

 

You should model your data in Query Editor to achieve this.

UnPivot the date columns into one "Date" column and then you can use this "Date" column in your slicer.

 

Prateek Raina

View solution in original post

3 REPLIES 3
prateekraina
Memorable Member
Memorable Member

Hi @andyring,

 

You should model your data in Query Editor to achieve this.

UnPivot the date columns into one "Date" column and then you can use this "Date" column in your slicer.

 

Prateek Raina

Wow, such a simple solution. Can't believe I didn't think about this. It seems to be working as I intended - thank you very much Prateek!

Hi @andyring,

 

Glad to hear that!
Kindly give a thumbs up to the solution as well 🙂

 

Prateek Raina

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.