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

Using a Slicer to select multiple items

I have a simple line graph that shows the speed of 3 seperate pumps over a period of time. I want to input a slicer or filter, where i can click to select which of the pumps to be presented on the graph. Right now, the only way is to remove the data points from the "values" table. You can see that I have HWP1spd, HWP2spd, and HWP3spd, how can I insert a slicer or filter where i can easily go to and fromdifferent selections of the data to be shown?Capture.PNG

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

I think this is why i cant do it is the way my tables are setup. I can tranverse them to have the pumps in column A but then the "timeline" goes to row 1 and i would be able to show this on a graph for a period of time.

elepkowski_0-1644413151983.png

elepkowski_1-1644413192143.png

 

 

View solution in original post

Hi @Anonymous ,

 

According to your screenshot, I suggest you to try "Unpivot" function to transform your table. Select three columns you add in value field in your visual and then use "Unpivot" in Power Query Editor. Then you can add this column into Legend function and create a slicer by this column to select the pumps you want to show in your visual.

For reference: Unpivot columns

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

I think this is why i cant do it is the way my tables are setup. I can tranverse them to have the pumps in column A but then the "timeline" goes to row 1 and i would be able to show this on a graph for a period of time.

elepkowski_0-1644413151983.png

elepkowski_1-1644413192143.png

 

 

Hi @Anonymous ,

 

According to your screenshot, I suggest you to try "Unpivot" function to transform your table. Select three columns you add in value field in your visual and then use "Unpivot" in Power Query Editor. Then you can add this column into Legend function and create a slicer by this column to select the pumps you want to show in your visual.

For reference: Unpivot columns

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

TheoC
Super User
Super User

@Anonymous how is your data structured (can you send snippet of the table)?

If I have posted a response that resolves your question, please accept it as a solution to formally close the post.

Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!

Want to connect?www.linkedin.com/in/theoconias

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.