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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Slicer Search Advanced Optimization

I am trying to optimize the search functionality within a slicer. I have created the slicer for the following column:

Company Name
mathworks
math limited
u s corporal
7 eleven corp

 

- The problem is that few of my dashboard users sometimes type "math works" (a space in between math and works) and the filter doesn't show this option.
- Similar cases for "u s corporal", my users somtimes use "US corporal" and the search option in the filter fails to show the company.

Is there any way I can optimize this so that the users are shown the company despite the spacing errors between the words?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hey, that didn't get me to the solution. But I found a custom filter called "Smart Pro Viz" which ignores the spacing between text and gives me the desired outcome. 

Thanks! 

View solution in original post

11 REPLIES 11
TheoC
Super User
Super User

@Anonymous, ahhh that makes sense about the inputs. Here is a link that can provide guidance on Column by Examples. It's a very intuitive function.

 

https://support.microsoft.com/en-us/office/add-a-column-from-an-example-power-query-cd82c570-8da7-4d70-91a1-3827b5995eab

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

Anonymous
Not applicable

No, this doesn't work either. Let me illustrate a use case here

kcvizer_0-1633598840635.png
works in this case.
If my user types "Companyname" without spaces the search fails. kcvizer_1-1633598902205.png

What I am trying to do is to find a work around where the user gets company name shown when his input is either "CompanyName" or "Company Name"

 



 

@Anonymous check this out 🙂

 

https://appsource.microsoft.com/en-us/product/power-bi-visuals/wa104381309?tab=overview

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

@Anonymous did this give you what you wanted?

 

https://appsource.microsoft.com/en-us/product/power-bi-visuals/wa104381309?tab=overview

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

Anonymous
Not applicable

Hey, that didn't get me to the solution. But I found a custom filter called "Smart Pro Viz" which ignores the spacing between text and gives me the desired outcome. 

Thanks! 

Nice to hear mate. Of course We'll! Completely forgot about that one. Well done!

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

@Anonymous I now better understand what you're looking for. I'll get back to you soon.

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

TheoC
Super User
Super User

@Anonymous, I'd recommend either creating a Conditional Column in Power Query whereby the inputs are cleansed / manipulated in back-end and then the slicer does it's job.  For example, a few steps you would take to ensure inputs are cleansed and consistent could be using the following:

 

  • Convert all inputs for [Column] to "UPPERCASE" or "Proper Text" or "lowercase"
  • Using TRIM on the column to remove leading / ending " " spaces.
  • And so on...

Otherwise, in Power Query you can also Create Column From Examples which uses machine learning to assign an output. 

 

Let me know if you need further insight into this 🙂

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

Anonymous
Not applicable

I have already trimmed the column and convereted the text to upper case. The problem with creating a conditional column is that I have 500+ Companies in my list that would mean writing atleast 4 different conditions for each company. 😕 

@Anonymous did you try creating a Column by Examples?

 

Also, an alternative is to prevent input errors by establishing controls over the users' data input.  Can you create a drop down list or the like so you don't have to perform the cleansing?

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

Anonymous
Not applicable

Unfortunately I cannot establish control over the users input data. Cleansing is done once I get it on Power-BI. 

What do you mean by creating a column by examples? Can you elaborate please?

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.

Top Solution Authors