Join or Union ?
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
AhanaR
7 - Meteor
‎02-26-2023
01:22 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi Team,
Could someone help me here?
I have two datasets and want to get a combined output from both. In SQL i can write the join query by selecting the required cols from both tables and then joining it on a key.
How can i apply the same join in Alteryx? i tried to use it , Although I'm able to join the two datasets, my output displays data only from the left dataset.
DataSet 1:
Customer Name | CUSTOMER NUMBER | Material | Revenue | Quantity |
ABC | 46 | AA | 2000 | 7 |
XYZ | 23 | AA+ | 100000 | 8 |
BCL | 4 | BB | 8000000 | 130 |
DataSet 2:
Region | Material | Billing Qty | Invoice Value (LOCAL) | ASP (Local) |
Cambodia | AA | 263 | 106,836.39 | 406.22 |
Cambodia | AA+ | 4 | 13,868.51 | 3,467.13 |
Cambodia | BB | 73 | 6,570.00 | 90.00 |
Desired Output :
Customer Name | CUSTOMER NUMBER | Material | Revenue | Quantity | ASP (Local) | Region |
ABC | 46 | AA | 2000 | 7 | 406.22 | Cambodia |
XYZ | 23 | AA+ | 100000 | 8 | 3,467.13 | Cambodia |
BCL | 4 | BB | 8000000 | 130 | 90.00 | Cambodia |
Labels:
- Labels:
- Join
3 REPLIES 3
binuacs
21 - Polaris
‎02-26-2023
02:02 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@AhanaR Join is an option but you should have a common key in the two datasets to join. I used the material field as the key
Alteryx
‎02-26-2023
04:22 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @AhanaR - You may benefit from our interactive lessons, specifically: https://community.alteryx.com/t5/Interactive-Lessons/VLookUps-with-Designer/ta-p/80201
LeTHo300
5 - Atom
‎02-26-2023
05:26 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
