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