cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Surm
Helper I
Helper I

Text slicer for words in phrases

Hello,

 

Out dataset has a column [Product Description] that has textual data like below.

 

Product IDProduct Description
P01"This a super fuel additive for performance cars"
P05"Fuel additive for ordinary cars"
P06"Oil for performance and sports cars and bikes"
P07"additives"
P08"family car tyres"

 

I am trying to add two slicer features:

 

1) The user types "performance" on the slicer linked to [Product Description] column. The slicer then selects all rows that has the word "performance". The user is able to type any custom text and expects [Product Description] gets filtered accordingly.

 

2)  A pre-defined list of words exists and appears on the slicer that is linked to [Product Description] column. The user then clicks on a word from the list and expects [Product Description] gets filtered accordingly. This feature is similar clicking on a word on a wordcloud visual. The difference is, I would like to pre-define/specify the words that appear on the slicer. Ideally, the user should be able to click on those pre-defined words and also type in custom text and all these values are combined as OR conditions (ie if any of the conditions match, the row is returned). For example, lets say the word "Performance" appears on the slicer. The user clicks on the word "performance" and all rows that contain "performance" are returned. The user then types in "family" (let say, "family" does not appear on the slicer as a predefined word) and all rows that contain "family" are also returned.

 

I am keen to hear how these features can be implemented. Are there custom visuals that can do similar things?

 

Thanks

 

3 REPLIES 3
amitchandak
Super User
Super User

@Surm , for the first one you can explore text filter

https://appsource.microsoft.com/en-us/product/power-bi-visuals/WA104381309?src=office&tab=Overview

 

 

for the second one, you need to create a table in power query by splitting the words, by duplicating the same table and you need to have a many to many join with this table on product id and then use that new table with the word as the slicer

 

Similar approach tables created in power query

Single Select with Select All : https://youtu.be/plGqCEZRfXU

Split Column Power Query: https://youtu.be/FyO9Vmhcfag



Power BI Features || Datamarts: https://youtu.be/8tskWsJTEpg || Field Parameters : https://youtu.be/lqF3Wa1FllE?t=70
Time Intelligence Decoded : https://youtu.be/aU2aKbnHuWs&t=145s || 50+Power Query List Functions : Learn Power Query List
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Super User! !!
Dashboard of My Blogs !! Connect on Linkedin !! Subscribe to my youtube Channel !!
Want To Learn Power BI | Beginners !! Advance Concepts !! Power BI For Tableau User !!

@amitchandak , Is it possible to make multiple selections on "Text Search" slicer and all of them are joined as OR conditions?

 

v-jayw-msft
Community Support
Community Support

Hi @Surm ,

 

Based on my test, Find(), Search() and Containstring() function will work only when there is a single selection in the slicer.

So I'm afraid it is not supported.

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

Helpful resources

Announcements
September Update

Check it Out!

Click here to learn more about the September 2022 updates!

Power BI Show Episode 10 Recap

The Power BI Community Show

Watch the playback when Amit Chandak, a Power BI Super User, demos how to use Field Parameters to make reports more dynamic.

Power BI Dev Camp Session 26

New Date - Check it Out!

Mark your calendars and join us on Thursday, October 6 at 11a PDT for a great session with Ted Pattison!

Health and Life Sciences Power BI User Group

Health and Life Sciences Power BI User Group

Power BI specialists at Microsoft have created a community user group where customers in the provider, payor, pharma, health solutions, and life science industries can collaborate.

Top Solution Authors