Beast Mode Calculation partly displaying on the card.
Hello, I need some help.
I have made some calculations in beast mode to convert minutes to seconds & the beast mode runs ok. However when I pull in the metrics & respective stages into the card, only the first stage returns the expected values. The formula for all the stages is the same but only changing the stage level.
| Metric | Stage 1 | Stage 2 | Stage 3 | Stage 4 |
---|---|---|---|---|---|
xxxxx | All Calls | 0:10:35 | 5410 | 1948.5 | 2498 |
| Call Time | 0:25:19 | 1823 | 599.02 | 4458.13 |
What could be the problem with my card.
Best Answer
-
I just noticed that for the first case you're using SEC_TO_TIME but on all of the others you are not, this is likely why it's not being displayed the right way as that conversion is not happening, try adding that as a wrapper to your ROUND functions.
0
Answers
-
@learnDomo Can you please share all your beast modes for the various stages? Also, do you have formatting applied to any of the columns in your table?
0 -
Hi MichelleH,
Thanks for reaching out. Here are my beast modes;
IFNULL(CASE WHEN
Metric
IN ('All Calls','Calls Time') ANDLevel
= 'Stage 1'
THEN SEC_TO_TIME(Total
)
ELSE ROUND(SUM(CASE WHENLevel
= 'Stage 1' THENTotal
END),0)END,0)IFNULL(CASE WHEN
Metric
IN ('All Calls','Calls Time') ANDLevel
= 'Stage 2'
THEN SEC_TO_TIME(Total
)
ELSE ROUND(SUM(CASE WHENLevel
= 'Stage 2' THENTotal
END),0)END,0)IFNULL(CASE WHEN
Metric
IN ('All Calls','Calls Time') ANDLevel
= 'Stage 3'
THEN SEC_TO_TIME(Total
)
ELSE ROUND(SUM(CASE WHENLevel
= 'Stage 3' THENTotal
END),0)END,0)0 -
Coalesce is easier to apply then IFNULL.
** Was this post helpful? Click Agree or Like below. **
** Did this solve your problem? Accept it as a solution! **0 -
@learnDomo By forcing null values to 0, the stages with nulls are likely being converted to an integer. Try changing the 0 to a blank string
''
.0 -
@MichelleH, have tried changing to a blank but no change.
0 -
Its not working.
0 -
I just noticed that for the first case you're using SEC_TO_TIME but on all of the others you are not, this is likely why it's not being displayed the right way as that conversion is not happening, try adding that as a wrapper to your ROUND functions.
0
Categories
- All Categories
- 1.9K Product Ideas
- 1.9K Ideas Exchange
- 1.6K Connect
- 1.3K Connectors
- 303 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 3K Transform
- 104 SQL DataFlows
- 640 Datasets
- 2.2K Magic ETL
- 4K Visualize
- 2.5K Charting
- 769 Beast Mode
- 72 App Studio
- 43 Variables
- 718 Automate
- 185 Apps
- 462 APIs & Domo Developer
- 57 Workflows
- 14 DomoAI
- 40 Predict
- 17 Jupyter Workspaces
- 23 R & Python Tiles
- 402 Distribute
- 116 Domo Everywhere
- 277 Scheduled Reports
- 9 Software Integrations
- 135 Manage
- 132 Governance & Security
- 8 Domo Community Gallery
- 44 Product Releases
- 12 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 111 Community Announcements
- 4.8K Archive