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
- Data Connections
- 1.3K Connectors
- 309 Workbench
- 17 Cloud Integrations
- Data & ETL
- 2.3K Magic ETL
- 120 SQL DataFlows
- 666 Datasets
- Visualize & Apps
- 90 App Studio
- 198 Pro-code Components
- 2.6K Charting & Analyzer
- 873 Calculations & Variables (Beast Mode)
- AI & Data science
- 23 Domo AI & AI Chat
- 4 Managing AI
- 18 Jupyter Workspaces
- Automate
- 122 Workflows
- Alerts
- Distribute
- 118 Domo Everywhere
- 284 Reporting
- Manage
- 145 Governance & Security
- 489 APIs
- 11 Add-ins & Plugins
- 13 Domo Community Gallery
- 49 Product Releases
- 13 Domo University
- Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 118 Community Announcements
- 5K Archive