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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
jtcm4568
Helper I
Helper I

Is there a way to filter based on a CSV

Hello, it's me again.

 

Is there a way to use a slicer in PowerBI to allow a customer to enter (for example) 170 values, preferably via a CSV (rather than searching one by one through a list)?

I know in theory I could do it by having them search through a list. But, they are basically downloading a CSV from a different tool, and need to figure out things about each entry in that CSV through a PowerBI report.

 

Example:

I have a list of (e.g.) 5 numbers in a CSV, 12345, 23456, 34567, 45678, and 56789. Is there a way to give all 5 of those elements to PowerBI in a slicer at once?

 

This may not make sense. Please let me know if it does not.

 

Thanks!

1 ACCEPTED SOLUTION
TomMartens
Super User
Super User

Hey @jtcm4568 ,

 

you can use the custom visual from devscope "Filter by list". This is the link to Appsource: https://appsource.microsoft.com/de-de/product/power-bi-visuals/devscope-1156626.filterbylist?tab=Ove...

 

I consider it more convenient adding a custom visual from inside Power BI Desktop,but as I'm working on my iPad I can not provide the proper screenshots 🙂

 

Hopefully, this is what you are looking for.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

View solution in original post

2 REPLIES 2
v-shex-msft
Community Support
Community Support

HI @jtcm4568,

The current slicer does not support default values so you can't use these records to input to the slicer.

If you only want to use them to filter records, you can consider writing a measure formula to compare current table records and the target table value to return the flag. Then you can use it as a filter on the 'visual level filter' to filter records.

Applying a measure filter in Power BI - SQLBI

formula =
VAR curr =
    SELECTEDVALUE ( Table[Column] )
RETURN
    IF ( curr IN ALLSELECTED ( CSV[Column] ), "Y", "N" )

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
TomMartens
Super User
Super User

Hey @jtcm4568 ,

 

you can use the custom visual from devscope "Filter by list". This is the link to Appsource: https://appsource.microsoft.com/de-de/product/power-bi-visuals/devscope-1156626.filterbylist?tab=Ove...

 

I consider it more convenient adding a custom visual from inside Power BI Desktop,but as I'm working on my iPad I can not provide the proper screenshots 🙂

 

Hopefully, this is what you are looking for.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.