Look for text within multi-selection value

PJG
Member
in Beast Mode
Hi all,
I currently have code like this, which converts some selection values to a shorter display value
when Business Division_p = 'Biologics' then 'Bio'
The problem is that the attribute is multi-selection, so when there is more than one value selected, there is no match. How can I change this line of code to look for text within the text of the selected options, instead of the entire selected options?
Thanks!
0
Best Answer
-
you can use the like operator along with the % sign which acts as a wildcard
when Business Division_p LIKE '%Biologics%' then 'Bio'
**Check out my Domo Tips & Tricks Videos
**Make sure toany users posts that helped you.
**Please mark as accepted the ones who solved your issue.0
Answers
-
you can use the like operator along with the % sign which acts as a wildcard
when Business Division_p LIKE '%Biologics%' then 'Bio'
**Check out my Domo Tips & Tricks Videos
**Make sure toany users posts that helped you.
**Please mark as accepted the ones who solved your issue.0
Categories
- 10.5K All Categories
- 6 Connect
- 916 Connectors
- 250 Workbench
- 463 Transform
- 1.7K Magic ETL
- 69 SQL DataFlows
- 476 Datasets
- 189 Visualize
- 252 Beast Mode
- 2.1K Charting
- 11 Variables
- 17 Automate
- 354 APIs & Domo Developer
- 89 Apps
- 3 Workflows
- 20 Predict
- 5 Jupyter Workspaces
- 15 R & Python Tiles
- 246 Distribute
- 62 Domo Everywhere
- 243 Scheduled Reports
- 21 Manage
- 42 Governance & Security
- 172 Product Ideas
- 1.2K Ideas Exchange
- 11 Community Forums
- 27 Getting Started
- 14 Community Member Introductions
- 55 Community News
- 4.5K Archive