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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Thomas_MedOne
Helper III
Helper III

Create Slicer that does a 'like' match on table

I have this data of Facilities. And they want to filter on Facility Type. However, the way the data is stored in the DB it's simply values selected separated by semicolons. So, this is the unique values that are in the DB:

Thomas_MedOne_0-1764885239849.png

So, I want to create a slicer that gives the unique values.

So, I created a custom table like this, it has a friendly name and the search name.

Thomas_MedOne_1-1764885287080.png

 

How can I associate this to the other table by pulling up all the values with the "search on" column. I can't create a relationship between the two. What options do I have to be able to search with this?

1 ACCEPTED SOLUTION
nielsvdc
Impactful Individual
Impactful Individual

Hi @Thomas_MedOne, I'm just guessing by the description you gave us, that you have a table of facilities, that has a column with facility type values? Maybe something like in the example below, which I created in Power Query.

nielsvdc_0-1764888046453.png

If this is the case, what you could do in Power Query is create new query by referencing the Facilities query. Then the following steps:

  1. Remove all columns except the FacilityId and FacilityTypeValues column.
  2. Split the FacilityTypeValues column by the semicolon delimiter
  3. Select the FacilityId column and unpivot the other columns
  4. Remove the attribute column
  5. Then you see the result below, where you see the FacilityId which each type it has assigned

nielsvdc_1-1764888161036.png

Then you can create a mapping table and merge it with this table.

nielsvdc_2-1764888419131.png

Now create a relationship between this table and the Facilities table and you use a slicer with the FacilityType field to easily select the facility type and filter the facilites. Check the attached sample pbix.

 

facilities_sample.pbix 

 

Hope this helps. If so, please give kudos 👍 and mark as Accepted Solution ✔️ to help others.

View solution in original post

5 REPLIES 5
Praful_Potphode
Impactful Individual
Impactful Individual

Hi @Thomas_MedOne 

Pleas try options suggested by community users.

if it doesnt work please share sample input/output.

 

Thanks and Regards,

Praful

Ashish_Mathur
Super User
Super User

Hi,

In Power Query, split the content of that column into rows based on the ; delimiter.  Now create a Dim table from this column.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
nielsvdc
Impactful Individual
Impactful Individual

Hi @Thomas_MedOne, I'm just guessing by the description you gave us, that you have a table of facilities, that has a column with facility type values? Maybe something like in the example below, which I created in Power Query.

nielsvdc_0-1764888046453.png

If this is the case, what you could do in Power Query is create new query by referencing the Facilities query. Then the following steps:

  1. Remove all columns except the FacilityId and FacilityTypeValues column.
  2. Split the FacilityTypeValues column by the semicolon delimiter
  3. Select the FacilityId column and unpivot the other columns
  4. Remove the attribute column
  5. Then you see the result below, where you see the FacilityId which each type it has assigned

nielsvdc_1-1764888161036.png

Then you can create a mapping table and merge it with this table.

nielsvdc_2-1764888419131.png

Now create a relationship between this table and the Facilities table and you use a slicer with the FacilityType field to easily select the facility type and filter the facilites. Check the attached sample pbix.

 

facilities_sample.pbix 

 

Hope this helps. If so, please give kudos 👍 and mark as Accepted Solution ✔️ to help others.

This was super helpful. I learned a lot.

Anand24
Super User
Super User

Hi @Thomas_MedOne,

Solution 1:
- Create a new column in this new table with concatenation of Facility Type and Search On. It will bascially be facilitytypesvalue column from your 1st snapshot.

- Join your original table (facilitytypesvalue) to this new table (new column similar to facilitytypesvalue).

- In the slicer, pull Facility Type and enable search (see below) for the slicer.

Anand24_0-1764887059185.png


Solution 2:

- Instead of creating a new table, create new columns in the same table with Facility Type and Search On.

- In the slicer, pull Facility Type and enable search for the slicer.

 

 

Give a Thumbs Up if this post helped you in any way and Mark This Post as Solution if it solved your query !!!

Proud To Be a Super User !!!
LinkedIn

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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
Top Kudoed Authors