I have an unexpected outcome of a beast mode calculated column, can you help?
Hey,
I've been working on a dashboard that has a radio selector to select which project the dashboard presents data from.
In this process, if an option is not set on the radio selector, my dashboard populates with "Please filter on Project" on most of my cards except one which is not behaving as expected.
For context, each project has a name, manager and sponsor; with my in-card filters, there are nine projects.
The code below works as intended
CASE WHEN COUNT(`Project_Manager`) = 1 THEN CONCAT('Delivery Lead: ',`Project_Manager`,' ', 'Accountable Executive: ', `Project_Sponsor`) ELSE 'Please Filter on Project' END
However, as soon as I add more to the Concat function, as you can see below.
CASE WHEN COUNT(`Project_Manager`) = 1 THEN CONCAT('Project Name: ',`Project_Name`,' ', 'Delivery Lead: ', `Project_Manager`,' ', 'Accountable Executive: ', `Project_Sponsor`) ELSE 'Please Filter on Project' END
OR
CASE WHEN COUNT(`Project_Name`) = 1 THEN CONCAT('Project Name: ',`Project_Name`,' ', 'Delivery Lead: ', `Project_Manager`,' ', 'Accountable Executive: ', `Project_Sponsor`) ELSE 'Please Filter on Project' END
Both outputs do not behave as expected and populate with the first project of the nine instead of the 'Please Filter on Project' as intended, even though there are 9 Project_names/managers etc.
Any help with this would be greatly appreciated.
Best,
Stuck
Answers
-
Hi @Stuck ,
Any way you can show the actual data or a mock up? It'd be good to see a screenshot of what these fields look like and your formula to the right in a table to gain more context.
John Le
You're only one dashboard away.
Click here for more video solutions:
1 -
Hi MichelleH, prior to filters, yes, after filters, no. The idea of the dashboard is that using a single select radio selector on the page users are able to reduce the number of projects to 1. With no filtering taking place it will return the "Please filter on Project". This criteria has worked on all other cards on my dashboard with no issue, but as soon as I add in that extra line of code it breaks down and stops working for just this card.
0 -
As for the data set - its mostly just as simple as project name, project manager and project sponsor. My solution is currently splitting out the "project Name" and all the other components into two cards, which works but doesn't look as tidy.
0 -
@Stuck Case statements tend to get messy when mixing aggregates with row-level data, which is likely the cause of why that is not working. Have you tried wrapping a MAX() around your CONCAT() to artificially aggregate your one row? If that doesn't work then it sounds like you've found a decent work-around by splitting the data into multiple cards.
1
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 616 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 738 Beast Mode
- 57 App Studio
- 40 Variables
- 685 Automate
- 176 Apps
- 452 APIs & Domo Developer
- 47 Workflows
- 10 DomoAI
- 36 Predict
- 15 Jupyter Workspaces
- 21 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 124 Manage
- 121 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 108 Community Announcements
- 4.8K Archive