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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.