Multiple values in Single value card
Hello,
I am using a Single Value visual on the dashboard. So basically I am displaying the current value on the card.
While I show that value, I am seeking to display its, Previous and Next values as well.
I am able to use the subtitle for one value. Besides, how can I display the other value?
Thanks in advance.
Best Answers
-
It depends on how your data is structured, but one solution might be to create a Beast Mode where you concatenate the three values together, such as:
concat('Current - ', current_field, '
Previous - ', previous_field, '
Next - ', next_field)0 -
@LearningNinja you could do something like this. Use the single value for the current value, and then a beast mode for the previous and next value.
A few things to keep in mind.
For summary numbers with CONCAT(), you can use a <br> tag to force a new line. See how in the example the previous value and the next value are on 2 separate lines.
CONCAT() removes the formatting you're used to having access to, so if you have large values, or want commas, rounding, etc. You'll have to handle that all yourself in the beast mode.
You'll have to either have the current/prev/next values flagged in the dataset to key off of, or you could make use of lag/lead functions to get the prev/next values as long as you know the current value. Let me know if you need any help with that.
Here is a very oversimplified proof-of-concept
CONCAT('Previous Value: ',AVG(case when order = -1 then Column end),'
',
'Next Value: ', AVG(case when order = 1 then Column end))David Cunningham
** Was this post helpful? Click Agree 😀, Like 👍️, or Awesome ❤️ below **
** Did this solve your problem? Accept it as a solution! ✔️**0
Answers
-
It depends on how your data is structured, but one solution might be to create a Beast Mode where you concatenate the three values together, such as:
concat('Current - ', current_field, '
Previous - ', previous_field, '
Next - ', next_field)0 -
@LearningNinja you could do something like this. Use the single value for the current value, and then a beast mode for the previous and next value.
A few things to keep in mind.
For summary numbers with CONCAT(), you can use a <br> tag to force a new line. See how in the example the previous value and the next value are on 2 separate lines.
CONCAT() removes the formatting you're used to having access to, so if you have large values, or want commas, rounding, etc. You'll have to handle that all yourself in the beast mode.
You'll have to either have the current/prev/next values flagged in the dataset to key off of, or you could make use of lag/lead functions to get the prev/next values as long as you know the current value. Let me know if you need any help with that.
Here is a very oversimplified proof-of-concept
CONCAT('Previous Value: ',AVG(case when order = -1 then Column end),'
',
'Next Value: ', AVG(case when order = 1 then Column end))David Cunningham
** Was this post helpful? Click Agree 😀, Like 👍️, or Awesome ❤️ below **
** Did this solve your problem? Accept it as a solution! ✔️**0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.6K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 102 SQL DataFlows
- 626 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 754 Beast Mode
- 61 App Studio
- 41 Variables
- 693 Automate
- 178 Apps
- 456 APIs & Domo Developer
- 49 Workflows
- 10 DomoAI
- 38 Predict
- 16 Jupyter Workspaces
- 22 R & Python Tiles
- 398 Distribute
- 115 Domo Everywhere
- 276 Scheduled Reports
- 7 Software Integrations
- 130 Manage
- 127 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 11 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 110 Community Announcements
- 4.8K Archive