Dynamic/Auto Update Text Card?
Hello, is there a way to have a text card that randomly selects/displays one sentence from a dataset with multiple/different sentences. For example, say the dataset has motivational quotes like "Today's the day!" or "Always Be Curious!". I want to create a text box that would randomly select one of these quotes and display it on the dashboard and then either select/display a new quote upon refresh of the dashboard or refresh/select a new quote after a few minutes of being on the dashboard regardless of the dashboard being refreshed.
Hope that makes sense. Thanks in advance!
Best Answer
-
You could create a slideshow of quotes:
Or you could do this:
- create a data table with 2 columns: Quotes, numbers 1-59.
- Use this case statement as a filter on the card with "In" selected:
- MAX(CASE WHEN
Number
= MINUTE(CURRENT_TIME()) THEN 'In' ELSE 'Out' END)
- MAX(CASE WHEN
- Make the card a text card
The card will display a new quote every minute.
I attempted something similar using RAND() to be truly random but it was kind of buggy. I think the minute is a cleaner solution and cycles through the quotes nicely.
If I solved your problem, please select "yes" above
0
Answers
-
You could create a slideshow of quotes:
Or you could do this:
- create a data table with 2 columns: Quotes, numbers 1-59.
- Use this case statement as a filter on the card with "In" selected:
- MAX(CASE WHEN
Number
= MINUTE(CURRENT_TIME()) THEN 'In' ELSE 'Out' END)
- MAX(CASE WHEN
- Make the card a text card
The card will display a new quote every minute.
I attempted something similar using RAND() to be truly random but it was kind of buggy. I think the minute is a cleaner solution and cycles through the quotes nicely.
If I solved your problem, please select "yes" above
0 -
Thank you @colemenwilson for your response. I'm stuck on step 2 where I copied your statement into a beast mode and then used that beast mode as a filter for the text card but I only get "Out" as a filter value selection. Do you happen to have an idea why "In" wouldn't show up as an option?
0 -
Hmm the only time that should happen is if, for example, the current time is 3:49 but there is no quote in your data with 49 as the number value. Could you screenshot your beastmode formula? It is still working for me so I am not sure what is going on.
If I solved your problem, please select "yes" above
0 -
Yup, here is the beast mode:
0 -
Hi Jason,
Apologies on the delayed response - I have been out of office. I would be happy to jump on a quick call with you to troubleshoot why this isn't working for you. If you'd like to, you can schedule a time here:
If I solved your problem, please select "yes" above
0 -
@JasonNgaiGPT The MAX around your beast mode is only returning the option that is last in the alphabet, in this case "Out". Try removing the max to see if that gives you the "In" option.
0 -
@JasonNgaiGPT were you able to get this working?
If I solved your problem, please select "yes" above
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