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