Beast mode case change based on whether or not a filter is in use

Hey all,
Is there a way for me to use a beast mode to calculate a COUNT when a filter is not in use but to use a COUNT(DISTINCT) when a specific filter is in use or when a filter is applied on a dashboard around a specific field?
Best Answer
-
Beast modes cannot be written to detect the state of filters. Currently there is no
CASE WHEN €filter€ = x THEN COUNT(y) ELSE COUNT(DISTINCT y)
type of logic available.
Agreed, set up a variable with 2 options, and a beast mode that uses the variable. Here’s another discussion around variables to check out: https://community-forums.domo.com/main/discussion/59343/beast-mode-that-looks-at-filters
here is the variables documentation, I highly recommend watching the video at the bottom: https://domo-support.domo.com/s/article/7903767835031?language=en_US
0
Answers
-
Beast modes cannot be written to detect the state of filters. Currently there is no
CASE WHEN €filter€ = x THEN COUNT(y) ELSE COUNT(DISTINCT y)
type of logic available.
Agreed, set up a variable with 2 options, and a beast mode that uses the variable. Here’s another discussion around variables to check out: https://community-forums.domo.com/main/discussion/59343/beast-mode-that-looks-at-filters
here is the variables documentation, I highly recommend watching the video at the bottom: https://domo-support.domo.com/s/article/7903767835031?language=en_US
0
Categories
- All Categories
- Product Ideas
- 2.1K Ideas Exchange
- Connect
- 1.3K Connectors
- 309 Workbench
- 7 Cloud Amplifier
- 10 Federated
- Transform
- 663 Datasets
- 119 SQL DataFlows
- 2.3K Magic ETL
- 823 Beast Mode
- Visualize
- 2.6K Charting
- 86 App Studio
- 46 Variables
- Automate
- 194 Apps
- 483 APIs & Domo Developer
- 87 Workflows
- 24 Code Engine
- AI and Machine Learning
- 23 AI Chat
- 4 AI Projects and Models
- 18 Jupyter Workspaces
- Distribute
- 118 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