Have a row displayed with 0/NULL when filtering by date when there's no data
Tried my best to summarize in the question...
I have a data set of Google Adwords Data.
I'm putting the data into a Pivot table and have campaigns as a Row.
I'd like to have every campaign show in the table even when it has no data to report for the selected time frame. It essentially would the the row for the campaign and 0's for all of the value columns.
What's the best way to achieve this?
Thanks!
0
Answers
-
Domo only displays data that it has in the dataset. If you want to display all possible combinations of campaigns you'd need to have each campaign listed for each day.
- Take your dataset, get a list of unique dates (select columns, remove duplicates). Do the same for campaigns.
- For each of those add a constant called 'Join Column' and set it's value to 1.
- Join both of these together using the Join Column as your join key. This will do a cartesian join which will
- Note: Since this may drastically increase your rows in your dataset since you now have every campaign for every date.
- Take the output of this join and left join your original dataset to this based on the date and campaign name.
- Use a formula tile with COALESCE(`Metric Field`, 0) for each of your metric fields to default them to 0 if there is no data.
- Drop your Join Column from your dataset.
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**0 -
This would be a great feature to fix. Forcing an ETL for something as simple as populating NULL dates with 0 is very inefficient and frustrating to users.
0
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.5K Charting
- 711 Beast Mode
- 50 App Studio
- 39 Variables
- 668 Automate
- 170 Apps
- 446 APIs & Domo Developer
- 45 Workflows
- 7 DomoAI
- 34 Predict
- 14 Jupyter Workspaces
- 20 R & Python Tiles
- 391 Distribute
- 111 Domo Everywhere
- 274 Scheduled Reports
- 6 Software Integrations
- 116 Manage
- 113 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