Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

How to apply XLOOKUP in Alteryx

Miki2021
8 - Asteroid

I have to consolidate a sales report by combining two datasets together.

 

Dataset A: 

 

Order number Amount Currency
10000110000USD
10000220000USD
10000310000USD
10000420000USD
10000510000USD

 

Dataset B:

 

Order number Order itemOut of stock Payment issue Delivery issue
100001aYY 
100001b Y 
100001cY  
100002a   
100002bY Y
100003a   
100004a Y 
100004b  Y
100005aY  

 

Dataset B is a bit more detailed as it carries information about each order item and the associated order issues.

 

Historically, I tried to use XLOOKUP to get an output on the orders and order issues, without the order item details. 

 

Expected outcome: 

Order number Amount CurrencyOut of stock Payment issue Delivery issue
10000110000USDYY0
10000220000USDY0Y
10000310000USD000
10000420000USD0YY
10000510000USDY00

 

However, I recognize XLOOKUP has its limitations. Just wonder if there are smarter ways to get the same output by leveraging Alteryx?

15 REPLIES 15
Jean-Balteryx
16 - Nebula
16 - Nebula

Hi @Miki2021 ,

 

Can you split your different tables across sheets in your file ?

Luke_C
17 - Castor
17 - Castor

Hi @Miki2021 

 

Here's an example of how you'd do this:

 

  1. Summarize second table to remove product info (I used MAX to get the correct values, basically if one has a payment issue, delivery issue, etc the Y will be applied)
  2. Join the data on order number

 

Luke_C_0-1627306487641.png

 

Miki2021
8 - Asteroid

Yes @Jean-Balteryx , here you go. Hope this is clearer! 

HomesickSurfer
12 - Quasar

Hi @Miki2021 

 

My simple approach below and attached.

Records merged and summarized.

Capture.PNG

Jean-Balteryx
16 - Nebula
16 - Nebula

Thank you @Miki2021  but @Luke_C found the simplest solution so I won't have any value to add here !

HomesickSurfer
12 - Quasar

Hi @Miki2021 

 

Will any of your values be other than a 'Y'?

Miki2021
8 - Asteroid

@Luke_C  Thanks Luke! Good to know about MAX - I didn't know this can be used for string.

Really helpful!

Miki2021
8 - Asteroid

@Jean-Balteryx  Indeed! Thanks anyways. I was originally wondering if RegEx could be useful.

Cheers,

Miki

Jean-Balteryx
16 - Nebula
16 - Nebula

You are welcome !

 

No REGEX wouldn't have help you here !

Labels
Top Solution Authors