When using a multi-select filter, can this be used as "AND" logic instead of "OR" logic?

I am using a dropdown selector filter in Domo that I have set to allow multiple selections. My goal is to set it so that when 2+ values are selected, the card below it on my dashboard will only bring back rows that meet ALL of the selected values.
For example, if I select "1 Normal Remodel" and "3 Kitchen", the only jobs that I want to display would be the 3 that are highlighted below, as those are the only 3 that meet both criteria in the filter.
Any guidance on this? I'm hoping to avoid a CASE statement that would need to account for any possible combination of selections. I'd be open to exploring an app or custom card type if that's even an option.
Best Answer
-
Currently this isn't possible with a single select however you could have multiple single select filters to get the AND functionality. I'd recommend logging an idea in the idea exchange to add this functionality
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**1
Answers
-
Currently this isn't possible with a single select however you could have multiple single select filters to get the AND functionality. I'd recommend logging an idea in the idea exchange to add this functionality
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**1 -
A little clunkier than multi-select on a filter, but you could achieve this with multiple variable controls.
Let's say you want them to be able to select up to 3 Job types, you'd create 3 variables:
- selection_1
- selection_2
- selection_3
Then create a BeastMode that references the variables and use that BeastMode as your card filter, filtering for "Include". Add your 3 variables as controls. Below's a potential BeastMode, though you may want to add in conditions for default text on your variable controls:
CASE
WHEN
(selection_1 is null) OR (Job_Type like concat('%', selection_1, '%') )
AND
(selection_2 is null) OR (Job_Type like concat('%', selection_2, '%') )
AND
(selection_3 is null) OR (Job_Type like concat('%', selection_3, '%') )
THEN 'Include'
ELSE 'Exclude'
END
Please 💡/💖/👍/😊 this post if you read it and found it helpful.
Please accept the answer if it solved your problem.
1
Categories
- All Categories
- Product Ideas
- 2.1K Ideas Exchange
- Connect
- 1.3K Connectors
- 309 Workbench
- 7 Cloud Amplifier
- 10 Federated
- Transform
- 664 Datasets
- 120 SQL DataFlows
- 2.3K Magic ETL
- 824 Beast Mode
- Visualize
- 2.6K Charting
- 86 App Studio
- 46 Variables
- Automate
- 194 Apps
- 486 APIs & Domo Developer
- 90 Workflows
- 24 Code Engine
- AI and Machine Learning
- 23 AI Chat
- 4 AI Projects and Models
- 18 Jupyter Workspaces
- Distribute
- 119 Domo Everywhere
- 283 Scheduled Reports
- 11 Software Integrations
- Manage
- 143 Governance & Security
- 11 Domo Community Gallery
- 49 Product Releases
- 13 Domo University
- Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 116 Community Announcements
- 5K Archive