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
- 1.7K Product Ideas
- 1.7K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 293 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.8K Transform
- 96 SQL DataFlows
- 607 Datasets
- 2.1K Magic ETL
- 3.8K Visualize
- 2.4K Charting
- 705 Beast Mode
- 49 App Studio
- 39 Variables
- 667 Automate
- 170 Apps
- 446 APIs & Domo Developer
- 44 Workflows
- 7 DomoAI
- 33 Predict
- 13 Jupyter Workspaces
- 20 R & Python Tiles
- 391 Distribute
- 111 Domo Everywhere
- 274 Scheduled Reports
- 6 Software Integrations
- 115 Manage
- 112 Governance & Security
- Domo Community Gallery
- 31 Product Releases
- 9 Domo University
- Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 103 Community Announcements
- 4.8K Archive