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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
PelaezLink
Helper I
Helper I

Custom visual "Text Search Slicer" not working properly when modified to use exact match search.

Hello everyone.

 

I have downloaded the source code from the "Text Search Slicer" by DataBrothers which is avalible in the store from:

 

https://github.com/databrothers-code-storage/text-search-slicer

 

This search uses a "contains" search so I wanted to modify the code to use an "Is" search as I need exact match. I did the same thing with the regular "Text Filter" and it worked but I wanted to use this other custom slicer as it allows for sync slicers with other pages, something that the normal text filter does not.

 

The only thing I changed in the source code from the text search slicer is in the file "textSearchFilterService.ts" in \src\services on line 20 the operator from "Contains" to "Is". Also the the GUID in the pbiviz.json so it is detected as a new visual.

It perfoms the search correctly applying exact match but the thing is that when I apply the filter (meaning I perfom a search that is not blank) and then I change to another page and go back to the page where the visual is, the search bar has dissappeared and the visual is completely white. The weird thing is that to get it to work again you either delete and put the visual back or right click in the visual, go into "view as table" and then go back and the search bar is again visible and working fine.

 

I looked into the code but cannot manage to get around that issue, I was wondering if someone might know the solution.

 

Thanks a lot to everyone.

0 REPLIES 0

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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Solution Authors