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
- 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
- 114 Community Announcements
- 4.8K Archive