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! Learn more

Reply
SpannerBracket
Regular Visitor

Slicer with search from multiple fields

Hi gurus,


I've got a table of objects each with a name and description.  I'm trying to create a slicer that shows all the names, but allow a user to search by name or description column.

 

Example:

Name = Fast Car

Description = A Ferrari is a fast car.

 

If a user starts typing 'ferrari' in the search box, I want the slicer to filter to 'Fast Car'.

 

I've tried lots of things so far:

- Concatenate Name and Description into a new column and use that in the slicer.  The problem here is the descriptions are long, and it means the slicer now shows 'Fast Car A Ferrari is a fast car' - which makes it really hard to read and work with.

- Add both name and description fields to the slicer - the search works here, but now I have a hierarchy which I don't want.

- Use the Text Filter visualisation with a concatenated field, and set this to filter the slicer.  This works, but its not a 'real-time' search.  You have to enter a term and click search.  I'm after the built in search that auto-filters as typing.

- Concatenate Name and Description with a whole bunch of non-breaking spaces between them using UNICHAR(160).  This makes the entries very long and results in the description part getting chopped off by the slicer and replaced with 3 dots, which is visually and functionally okish.  However, the slicer is now really slow to scroll up and down.  Also - yuk, why would you need to do this?!

 

Any better ideas?

1 ACCEPTED SOLUTION

Thanks Raymundo - your post gave me some more inspiration.  I've used the old 'invisible rectangle' trick to solve this.

 

I've set the slicer to use a hierarchy and then put a white rectangle that is always in front over the column of chevrons.

 

This gives the look and feel that I was after.  Hopefully in the future we'll just have a feature to use one set of fields for items, and a different set of fields for search.  But in the meantime, this is pretty close...

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

Since you are using a slicer visual, you need to be very specific and explicit, there's no way you can achieve this without considering the hierarchy. Synonyms and descriptions only work for Q&A visuals.

Thanks Raymundo.


There isn't a hierarchy though, I have a single table with two columns, Name and Description.  I guess there just isn't a way to achieve what I want to do without the hacky solutions I mentioned above!

Anonymous
Not applicable

Still you can create the hierarchy. Right click on Name field > New hierarchy and drag the description field onto the Name. Then use that hierarchy in the slicer.

Thanks Raymundo - but using a hierarchy this way just doesn't achieve the experience I want for my users.

 

See the screenshot below.  Using the hierarchy makes it look messy and confusing, unless there is a way to turn off the chevron and hide the description field from the slicer.

 

powerbi.png

Anonymous
Not applicable

Yeah, hierarchies are not appealing and not user friendly in slicers. You can change the chevron though on Format > Items > Expand/collapse icon. You have as options Chevron,  Plus/minus, and Caret.

 

Raymundo2910_0-1622813443844.png

 

 

Thanks Raymundo - your post gave me some more inspiration.  I've used the old 'invisible rectangle' trick to solve this.

 

I've set the slicer to use a hierarchy and then put a white rectangle that is always in front over the column of chevrons.

 

This gives the look and feel that I was after.  Hopefully in the future we'll just have a feature to use one set of fields for items, and a different set of fields for search.  But in the meantime, this is pretty close...

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.