Alteryx Designer Desktop Discussions

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

How to perform join (vlookup) based on date

ShantanuDagar
8 - Asteroid

Hi.

 

I have a dataset which needs to be joined with another dataset for intersection and left out records based on mm/yy column.

 

If running it in November, then only the records with Nov 22 in mm/yy column must be joined.

 

If running in December, then only the records with Dec 22 in mm/yy column must be joined.

8 REPLIES 8
ShankerV
17 - Castor

@ShantanuDagar 

 

This one can be achieved with the help of Datetimenow(). This will help to get the current date.

 

So we can run and get the filtering done based on 1st day of the month and last day of the month.

 

If you need more assistance, happy to help with a sample dataset which I have.

 

Many thanks

Shanker V

DenisZ
11 - Bolide

I would suggest creating a filter first for both which filters on the current month. Then join them together. 

 

This month is: 

 

DateTimeFormat(DateTimeToday(), "%m-%Y")

PanPP
Alteryx Alumni (Retired)

Hi @ShantanuDagar 

 

You will need to create a column that creates a Month and Year date column, followed by joining the two datasets on a unique identifier

 

You can use a filter tool and turn it into an analytic app to feed in the months/year that you are looking for.

 

 

Hope this helps.

ShankerV
17 - Castor

@ShantanuDagar 

 

To develop a dataset, I need your date format available in the report. 

 

 

Many thanks

Shanker V

ShantanuDagar
8 - Asteroid

@ShankerV 

mm/dd/yyyy

 

In V_String currently

binuacs
20 - Arcturus

@ShantanuDagar One way of doing this

 

binuacs_0-1670321913649.png

 

ShankerV
17 - Castor

@ShantanuDagar 

 

Please find the below solution.

ShankerV_0-1670322134102.png

 

Input: 

ShankerV_1-1670322153321.png

 

Output:

ShankerV_2-1670322168269.png

 

Many thanks

Shanker V

 

 

 

ShankerV
17 - Castor

Hi @ShantanuDagar 

 

My workflow built helps you to filter the records for this current month done from both the incoming source separately.

 

Then you can join both on what ever matching criteria you need.

 

Step 1: Input 1

ShankerV_0-1670322339294.png

 

Step 2: Formula tool

ShankerV_1-1670322359853.pngShankerV_2-1670322378238.png

 

Step 3: Filter tool to make sure only current month details are filtered.

ShankerV_3-1670322441973.png

 

ShankerV_4-1670322456823.png

 

By doing this, you will achieve filtering the current month records.

 

Step 4: Input the second data source, do the Formula and Filter same as above.

 

Step 5: Do the join as per your requirement.

While joining as the join tool inherits the Select tool functionality; deselect the unwanted fields from the output as per your need.

 

Hope your issue is resolved. Feel free to mark helpful answers as a solution, so that future users with the same issue can find them easier!!!!

 

Many thanks

Shanker V

Labels