Card from Outer Join Two Datasets ETL
I'm trying to join two datasets, each dataset has a date field, how can I join the date field to get one Date Column that I can use on the X Axis, but will not remove any rows from the other columns.
1st dataset has: created date, complaints cases, end date, customer type
2nd dataset has: balance date, loan in books, loyalty level, and merchant id
I want one dataflow with, Date, complaints cases, end date, loyalty level, loan in books, and merchant id. But the "Date" column would be a combination of the "Created Date" and "Balance Date" fields.
I am trying to get a card that would have:
X Axis: Date (combined column)
Y Axis: (Deferral % of Loans) - I will do a beast mode Complaints Cases/Loans in Books (Line)
Series: Loans in Books. (Bar Chart)
Please let me know! Thanks
Comments
-
Hi @Shumilex
You can use a Magic ETL to join the two dates together using a Join tile based on the two dates to get a resulting dataset. After the join you can use a Select Columns tile to only select the columns you want and to rename them appropriately.
You could also do this with a DataSet View if you're familiar with those which has some additional benefits of being updated when the underlying dataset is updated instantly and not counting against your row limit if that's a concern.
To clarify - is it possible that your dataset would have a date in one dataset and not the other or are all dates represented in both datasets?
If it's possible that a date would appear in one dataset and not the other then you'd want to use a FULL OUTER join on your two dates then using an ETL 2.0 formula tile you can COALESCE each column with 0 and COALESCE your two date fields together into a new Date column.
Another option would be to format your data differently such that you have a date, a metric name and the value for each data set and then UNION them together.
| Date | Metric Name | Value |
|---|---|---|
| 1/1/2021 | Complaint Cases | 500 |
| 1/2/2021 | Complaint Cases | 100 |
| 1/3/2021 | Complaint Cases | 50 |
| Date | Metric Name | Value |
|---|---|---|
| 1/1/2021 | Loans in Books | 500 |
| 1/2/2021 | Loans in Books | 100 |
| 1/3/2021 | Loans in Books | 50 |
Then using a DataFusion or a Magic ETL with an append tile perform the union.
You can then write your beast mode to look at the metric name to get the value performing a SUM on the value.
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**1 -
Strong agree. @Shumilex in this context you really don't want to JOIN two fact tables together it will always lead to unexpected row duplication and create more challenges when trying to visualize the data.
APPEND ing the data together will make viz much easier as well as give you a much simpler ETL.
Jae Wilson
Check out my 🎥 Domo Training YouTube Channel 👨💻
**Say "Thanks" by clicking the ❤️ in the post that helped you.
**Please mark the post that solves your problem by clicking on "Accept as Solution"0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.6K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 102 SQL DataFlows
- 626 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 753 Beast Mode
- 61 App Studio
- 41 Variables
- 692 Automate
- 177 Apps
- 456 APIs & Domo Developer
- 49 Workflows
- 10 DomoAI
- 38 Predict
- 16 Jupyter Workspaces
- 22 R & Python Tiles
- 398 Distribute
- 115 Domo Everywhere
- 276 Scheduled Reports
- 7 Software Integrations
- 130 Manage
- 127 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 11 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 110 Community Announcements
- 4.8K Archive