Map a zero value for weeks that don't have data
when I select a range of dates for say 4 weeks I need it to pull the data for all the weeks even if we did not have any shipments. It is only pulling in weeks that we had shipments. How do I get it to pull in all the weeks in the range I chose on the date selector on my dashboard?
Answers
-
We already have the data on the data set grouping by week.
0 -
HI @Rvannoy
You'll need to have data for those weeks in your dataset in order for Domo to pick them up. What I recommend is using the Domo Dimensions connector - Calendar dataset and left join your dataset to that specific one on a daily basis - then you can use a COALESCE on your field to default it to 0 for that week. It's similar to the design philosophy I've written up previously here: https://dojo.domo.com/discussion/53481/a-more-flexible-way-to-do-period-over-period-comparisons#latest
You'd essentially just use the 'Current' period type that's configured in your dataset. Plus this will set you up to easily to Period over Period comparisons.
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**1 -
@GrantSmith I will try this and let you know how it goes.
0 -
@GrantSmith Thank you this worked
0 -
Glad this worked out for you @Rvannoy . Can you make sure to accept the answer so that others can more easily find this in the future?
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**1
Categories
- All Categories
- 1.7K Product Ideas
- 1.7K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 295 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.8K Transform
- 97 SQL DataFlows
- 608 Datasets
- 2.1K Magic ETL
- 3.8K Visualize
- 2.4K Charting
- 709 Beast Mode
- 49 App Studio
- 39 Variables
- 667 Automate
- 170 Apps
- 446 APIs & Domo Developer
- 44 Workflows
- 7 DomoAI
- 33 Predict
- 13 Jupyter Workspaces
- 20 R & Python Tiles
- 391 Distribute
- 111 Domo Everywhere
- 274 Scheduled Reports
- 6 Software Integrations
- 115 Manage
- 112 Governance & Security
- Domo Community Gallery
- 31 Product Releases
- 9 Domo University
- 5.3K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 103 Community Announcements
- 4.8K Archive