Forum Discussion
How Do I Filter Multiple Values via copy/paste
Hi all,
I hope you can help me out.
In have scenario where my users would like to filter a column based on a copied list of values. For example a column from an excel file or a comma separated list. This would be handy when one wants to filter (for example) 200 numbers out of 100k records.
Manually checking values in a slicer is unworkable but I cannot figure out a better way with power bi desktop and service.
Any idea's to solve this?
Thanks.
Hi Anonymous,
Please vote these two ideas: search-my-filter-values-in-a-dashboard and multiple-value-custom-list-filter.
Best Regards!
Dale
14 Replies
- PowerBiRajahAdvocate I
TL;DR version: There is an app source visual called "Mass Filter (App Source) ". This does exactly what is needed. Copy and paste a list of values separated by commas or new-lines.
And a video: https://www.youtube.com/watch?v=6nKYTFTA1h4&feature=youtu.be
- ShelleyPost Prodigy
Thanks PowerBiRajah !! This looks like the old Filter by List, but renamed. Thanks for sharing this.
- v-jiascu-msftMicrosoft Employee
Hi Anonymous,
1. Import the copied list of values. This step could be easy. Here the table is "FilterValues".
2.1 As a measure.
IfIn = IF ( MIN ( 'Calender'[Date] ) IN VALUES ( 'FilterValues'[Dates] ), 1, 0 )
2.2 As a Calculated Column.
Column = IF ( 'Calender'[Date] IN VALUES ( FilterValues[Dates] ), 1, 0 )
3. Create a visual and filter the result.
Best Regards!
Dale
- AnonymousNot applicable
Hi Dale,
Thanks for your reply!
I like your answer and maybe use it someday. In this case however, it doesn't solve the problem. The list of values cannot be imported because it could be any value of a(ny) column based on what the end user wants to filter. The report and definitions stay the same.
Example. The power bi report contains a list of customer analysis and details. A filter on Customer ID is added so the user can filter on a range or selected values. The user gets a request from a colleage with has a list of, lets say, 100 customer id's that need special attention. He/she wants to use this list and pastes it into the power bi report filter so the report filters down to these 100 customers. The next day, a different set of customer id's will be needed to filter. This can happen multiple times per day for multiple users.
Thanks
- v-jiascu-msftMicrosoft Employee
Hi Anonymous,
I have no idea about your actual model. So just some discussions here.
As you said in your first post, the column could be from a Excel file or a csv file. Import it, use it, finally delete the new table. Do these steps in the next searching.
There are still some other ways.
1. Paste the values in the Desktop directly. A new table will be created. You can delete it later.
2. If you can organize the values like this, you can paste it in the formula directly. {"value1", "value2", "value3"}
IfIn = IF ( MIN ( 'Calender'[Date] ) IN { "value1", "value2", "value3" }, 1, 0 )Best Regards!
Dale
- ShelleyPost Prodigy
If you're still looking for this feature. I've found this custom visual slicer that provides this functionality. It does work. The limitation is that it cannot be synced across tabs, but it still comes in handy.
https://appsource.microsoft.com/en-us/product/power-bi-visuals/WA104381413?tab=Overview
If this addresses your need, please consider marking this as a solution. Thanks.