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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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

Anonymous
Not applicable

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

 

 

Anonymous
Not applicable

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.