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
- 7.7K All Categories
- 12 Connect
- 925 Connectors
- 247 Workbench
- 441 Transform
- 1.7K Magic ETL
- 61 SQL DataFlows
- 456 Datasets
- 88 Visualize
- 222 Beast Mode
- 2.1K Charting
- 8 Variables
- 5 Automate
- 349 APIs & Domo Developer
- 85 Apps
- Workflows
- 17 Predict
- 3 Jupyter Workspaces
- 14 R & Python Tiles
- 242 Distribute
- 60 Domo Everywhere
- 241 Scheduled Reports
- 18 Manage
- 39 Governance & Security
- 46 Product Ideas
- 1.1K Ideas Exchange
- 6 Community Forums
- 19 Getting Started
- 6 Community Member Introductions
- 50 Community News
- 18 Event Recordings
- 577 日本支部