Scorecard First and Last shows same value..
I have this scorecard with Current and previous values and I am good to show change....
Challenge: One filter selection has no previous value and because of that, I only get one value and the card shows the same value for first and last in the scorecard....
Any tip how do i deal with this? May be a way to make sure it brings 2nd row with 0 or something
Answers
-
Because Domo is looking for a first and last value in your dataset when you have only one that value is simultaneously the first and the last value. Use an ETL to add in a 2nd row with the value you want to include. You'll need to decide how you want to handle the % change since the initial value doesn't exist in your case.
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**0 -
We have so many combinations that may not have previous row.. Inserting dummy row is not good idea.. Can domo scorecard just not consider change and only show Current or first value and show 0 change…
0 -
@faisalnjit In the Chart Properties - Change Value Options you can set some actions for No Data Handling and No Data Message. Try setting that to different settings to get the result you are looking for.
**Check out my Domo Tips & Tricks Videos
**Make sure to any users posts that helped you.
**Please mark as accepted the ones who solved your issue.0 -
@faisalnjit What if you used a Comparative Change chart instead so it's easier for the people interacting with the scorecard to see when there is no previous value? You can set up two beast modes for your current and previous value:
sum(case when `Period Comparison` = 'Previous' then `Visits/TimePeriod` else 0 end)
sum(case when `Period Comparison` = 'Current' then `Visits/TimePeriod` else 0 end)
1 -
@faisalnjit - I don't believe the no data handling will apply here. That would only impact a filter selection with no values.
If you are always comparing YTD sales to the prior year, I would consider using the "Multi-value Columns" chart. You can then create two calculated fields:
YTD Sales
SUM(CASE WHEN YEAR(`Date`) = YEAR(CURDATE()) AND DAYOFYEAR(`Date`) < = DAYOFYEAR(CURDATE()) THEN `Visits` ELSE 0 END)
Prior YTD Sales
SUM(CASE WHEN YEAR(`Date`) = YEAR(CURDATE())-1 AND DAYOFYEAR(`Date`) < = DAYOFYEAR(CURDATE()) THEN `Visits` ELSE 0 END)
Then plug those in as your gauge value and comparison value
“There is a superhero in all of us, we just need the courage to put on the cape.” -Superman0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 296 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 614 Datasets
- 2.2K Magic ETL
- 3.8K Visualize
- 2.5K Charting
- 729 Beast Mode
- 53 App Studio
- 40 Variables
- 677 Automate
- 173 Apps
- 451 APIs & Domo Developer
- 45 Workflows
- 8 DomoAI
- 34 Predict
- 14 Jupyter Workspaces
- 20 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 121 Manage
- 118 Governance & Security
- Domo Community Gallery
- 32 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 108 Community Announcements
- 4.8K Archive