Alteryx Designer Desktop Discussions

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

Changing Data

missteran
Meteor

HI Alteryx community looking for some help. I have data where the dates for some ID are correct, and the dates for other IDs are incorrect. I have a separate table where i have the correct dates for the IDs that have the incorrect dates on them. How do i make it so that I add the correct dates only to those Ids that have wrong dates, while still keeping the others that are correct as is? I'm looking to do this without it being overly complicated, just looking for some thoughts. I've attached a dummy data set and also pasted the tables below.

 

Current State:

Trade IDMaturity date 
7572911/1/2025Incorrect date
7086588/22/2026Incorrect date
0339899/3/2025Correct date
2480225/1/2027Correct date
5524565/15/2024Correct date
9746526/5/2026Correct date

 

Table with the Correct dates:

Trade IDMaturity date
7572913/31/2028
7086588/22/2030

 

 

The result i'm looking for:

Trade IDMaturity dateResults
7572913/31/2028Correct date
7086588/22/2030Correct date
0339899/3/2025Correct date
2480225/1/2027Correct date
5524565/15/2024Correct date
9746526/5/2026Correct date

 

3 ANTWORTEN 3
KimLamNg
Asteroid

I think the Join tool should do the trick. Then you just need to keep or update the date.

usmanbashir
Bolide

One option: From current state table, filter out incorrect dates. Then union correct table. This will maintain the two first fields. 

If you go the route of joining on Trade ID, you’ll have to use a formula tool and write a condition to choose the correct date. 

Hope this helps!

flying008
Magnetar

Hi,@missteran 

 

FYI.

 

录制_2024_04_11_15_50_32_813.gif

Beschriftungen