# SmartVisuals Text Search Slicer for Power BI

> Text search slicer for Power BI: type or paste to filter, several terms, -exclude, wildcards, number ranges, two fields at once, and see what was not found.

- Page: https://www.smartvisuals.io/visuals/text-search-slicer
- Fields and settings: https://www.smartvisuals.io/visuals/text-search-slicer/settings
- Microsoft Marketplace: https://marketplace.microsoft.com/en-us/product/smartvisuals.smartvisuals-text-search-slicer?tab=overview
- Package: https://www.smartvisuals.io/downloads/smartvisuals-text-search-slicer-1.0.1.0.pbiviz
- Price: Free tier for every viewer; premium $1.99 per user per month or $19 per user per year on Microsoft Marketplace, with a 30-day free trial. Premium works in edit mode without a licence; unlicensed viewers see the free tier, never a blocked visual.
- Certified by Microsoft: no
- Version: 1.0.1.0
- GUID (visualType and publicCustomVisuals): `textSearchSlicerSvB2E6D18F4A7C4F2DA3E9C05B71D6E4A8`

## What is free

- **Five match modes**: Contains, starts with, ends with, a word starts with and is exactly; case and accents ignored.
- **Several terms, any or all**: pump; valve finds either, or both with All terms; a leading - or ! leaves a term out.
- **Wildcards and number ranges**: * and ? in any mode; >100, >=1.5K or 10-20 on a numeric field.
- **Paste a list**: Any length, one value per line; every line matched exactly and the values not found named.
- **Two fields at once**: A name or a code in one box, with the hits in each field.
- **Matches as you type**: The list of matching values with the match highlighted and the Value measure, a bar and the share; click one to search for exactly that value.
- **Says what happened**: "12 of 480 products matched", the terms not found, and a summary of what the filter keeps with its share.
- **Hide what matches, default search, filter as you type**: Keep or hide the matches, open the report on a search, filter on Enter or after a short pause.
- **The smallest correct filter**: A Power BI condition where it selects exactly the same values, otherwise the matching values, re-checked when the data changes.
- **Plays well with the report**: Bookmarks, sync slicers on a single-field slicer, tooltips with up to five measures and report page tooltips.
- **Templates, themes and on-object formatting**: Executive, Analyst, Minimal, Presentation, Print and Compact, export and import as text; SmartVisuals, Dark, Clean and Slate; every text with its own size and colour.
- **Accessibility and 20 languages**: A labelled search box, a keyboard list of matches, an announced result line, high contrast, minimum text size and reduce motion.

## What premium adds

- **Three to six fields at once**: Product, supplier, country and more in one box, with the hits in each field.
- **Typo-tolerant matching**: compresor finds Compressor: one letter off for 4 to 7 letters, two for 8 or more, and Did you mean when nothing matches.
- **Saved searches**: Up to eight one-click buttons the author names, such as Pumps or UK suppliers.

## Fields

| Field | Internal name | Takes | Needed | What it is for |
| --- | --- | --- | --- | --- |
| Fields to search | `fields` | Column | Optional, up to 6 | The column(s) a reader searches: product name, SKU, customer, city. Two fields are searched together (a name or a number); three or more need Multi-field search. |
| Value | `value` | Measure | Optional | Optional: a number shown next to each match (e.g. Units or Revenue), used to sort the matches and for the share in the summary. |
| Tooltips | `tooltips` | Measure | Optional, up to 5 | Extra measures shown when hovering a match. |

## Format pane

Each card is a key under `visual.objects` in a PBIR visual.json; each setting is a property of it. Toggles take `true`/`false`, choices and text a value in single quotes (`'auto'`), numbers a `D` suffix (`12D`).

### Match colours (`itemColor`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Match colour | `fill` | Colour |

### Matching (`matching`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Match | `mode` | `contains` (Contains), `starts` (Starts with), `ends` (Ends with), `word` (A word starts with), `exact` (Is exactly) |
| Several terms | `combine` | `any` (Any term (OR)), `all` (All terms (AND)) |
| Filter | `filterMode` | `keep` (Keep what matches), `exclude` (Hide what matches) |
| Filter the report | `apply` | `enter` (On Enter or the search button), `typing` (As you type (after a short pause)) |
| Forgive typos (premium) | `typo` | On / off |
| Placeholder | `placeholder` | Text |

### Search box (`input`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Text size | `fontSize` | Number |
| Text colour | `fontColor` | Colour |
| Box colour | `fill` | Colour |
| Search button | `button` | On / off |
| Paste a list button | `paste` | On / off |

### Search terms (`terms`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Text size | `fontSize` | Number |
| Text colour | `fontColor` | Colour |
| Chip colour | `fill` | Colour |

### Matches (`results`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| List of matching values | `show` | On / off |
| "n of m matched" | `count` | On / off |
| Hits per field | `perField` | On / off |
| Count text size | `fontSize` | Number |
| Count text colour | `fontColor` | Colour |

### Items (`items`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Text size | `fontSize` | Number |
| Text colour | `fontColor` | Colour |
| Row height | `density` | `compact` (Compact), `normal` (Normal), `large` (Large) |
| Marker | `marker` | `check` (Check box), `radio` (Radio button), `none` (No marker (highlight only)) |
| Selected fill | `selectedFill` | Colour |
| Selected text colour | `selectedInk` | Colour |
| Hover fill | `hoverFill` | Colour |
| Wrap long labels | `wrap` | On / off |
| Image size (px) | `imageSize` | Number |
| Animations | `animate` | On / off |

### Values (`values`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Value | `show` | On / off |
| Share | `share` | On / off |
| Bar | `bar` | `fill` (Bar behind the text), `underline` (Underline bar), `column` (Bar in its own column), `none` (No bar) |
| Text size | `fontSize` | Number |
| Text colour | `fontColor` | Colour |
| Bar colour | `barColor` | Colour |
| Display units | `units` | `auto` (Auto), `none` (None), `K` (Thousands (K)), `M` (Millions (M)), `B` (Billions (B)) |
| Decimals | `decimals` | `auto` (Auto), `0`, `1`, `2`, `3` |

### Saved searches (premium) (`saved`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Saved searches (premium) | `list` | Text |
| Text size | `fontSize` | Number |
| Text colour | `fontColor` | Colour |

### Default search (`defaults`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Default search | `query` | Text |

### Header (`header`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Header | `show` | On / off |
| Title | `title` | Text |
| Title size | `fontSize` | Number |
| Title colour | `fontColor` | Colour |
| Buttons size | `controlsFontSize` | Number |
| Buttons colour | `controlsColor` | Colour |

### Selection summary (`summary`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Summary | `show` | On / off |
| Share of the total in the summary | `share` | On / off |
| Text size | `fontSize` | Number |
| Text colour | `fontColor` | Colour |

### Notes (`notes`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Notes | `show` | On / off |
| Text size | `fontSize` | Number |
| Text colour | `fontColor` | Colour |

### Theme and colours (`style`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Theme | `theme` | `smartvisuals` (SmartVisuals), `dark` (Dark), `clean` (Clean), `slate` (Slate) |
| Style template | `template` | `custom` (None (defaults)), `modified` (Custom (modified template)), `executive` (Executive), `analyst` (Analyst), `minimal` (Minimal), `presentation` (Presentation), `print` (Print), `compact` (Compact) |
| Template (export / import) | `templateJson` | Text |
| Font | `fontFamily` | `theme` (Theme default), `inter` (Inter), `segoe` (Segoe UI), `arial` (Arial), `georgia` (Georgia) |
| Accent colour | `accentColor` | Colour |
| Background | `background` | Colour |
| Border | `showBorder` | On / off |
| Border colour | `borderColor` | Colour |
| Corner radius (px) | `radius` | Number |

### Accessibility (`accessibility`)

| Setting | Internal name | Type or options |
| --- | --- | --- |
| Focus outline colour | `focusColor` | Colour |
| Focus outline width (px) | `focusWidth` | Number |
| Minimum text size (px) | `minFontSize` | Number |
| Selected marker (not colour alone) | `selectedMark` | `check` (Check mark), `bold` (Bold border), `none` (Colour only) |
| Reduce motion | `reduceMotion` | On / off |
