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
- 2K Product Ideas
- 2K Ideas Exchange
- 1.6K Connect
- 1.3K Connectors
- 311 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 3.8K Transform
- 656 Datasets
- 115 SQL DataFlows
- 2.2K Magic ETL
- 811 Beast Mode
- 3.3K Visualize
- 2.5K Charting
- 80 App Studio
- 45 Variables
- 771 Automate
- 190 Apps
- 481 APIs & Domo Developer
- 77 Workflows
- 23 Code Engine
- 36 AI and Machine Learning
- 19 AI Chat
- AI Playground
- AI Projects and Models
- 17 Jupyter Workspaces
- 410 Distribute
- 120 Domo Everywhere
- 280 Scheduled Reports
- 10 Software Integrations
- 142 Manage
- 138 Governance & Security
- 8 Domo Community Gallery
- 48 Product Releases
- 12 Domo University
- 5.4K Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 113 Community Announcements
- 4.8K Archive