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.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