Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Append latest data in target using date field in source

Agarwal_Yash91
8 - Asteroid

Hi,

 

I am trying to append latest data basis latest date in source table.

For ex: Max(date) in source: 10/12/2020

Max(date) in target:11/12/2020.

 

first i want to check max date in both tables and if max date in source is greater than max date in target then append latest date data in target table.

9 REPLIES 9
grazitti_sapna
17 - Castor

Hi @Agarwal_Yash91 , do you have sample data in order to achieve this?

 

Other way around can be filtering the data on the basis of date and then append it to the existing table.

 

Thanks.

Sapna Gupta
Agarwal_Yash91
8 - Asteroid

Sample Data

DateAmount
9/12/20206
9/12/20207
9/12/202010
9/12/202011
9/12/202015
10/12/202020
10/12/202025
10/12/202030
10/12/202040
10/12/202050

Target

Target 
DateAmount
9/12/20206
9/12/20207
9/12/202010
9/12/202011
9/12/202015

I want to insert data for 10/12/2020 in my target table. 

 

Qiu
20 - Arcturus
20 - Arcturus

@Agarwal_Yash91 
Is something like this?

1210-AgarwalYash.PNG

grazitti_sapna
17 - Castor

Hi @Agarwal_Yash91 , give this workflow a try.

grazitti_sapna_0-1607605507279.png

 

I have tested some scenarios where data is input after a day and other is after few days it is working for me. Kindly test and let me know if you need anything else from my side.

 

Also, if this helps kindly mark this post as solution.

 

Thanks.

Sapna Gupta
Agarwal_Yash91
8 - Asteroid

Hi @Qiu ,

 

i am looking for something like this but using INdb operations as my source and target are database tables and we dont have join by position and append fields tool available for in-DB operations

 

 

Agarwal_Yash91
8 - Asteroid

@grazitti_sapna i am looking for inDB opoerations and we dont have append fields tool available for in-DB operations.

 

AngelosPachis
16 - Nebula

Hi @Agarwal_Yash91 ,

 

There are those two tools in the In-Database category that allow you to stream from/to an In-DB stream to a standard workflow

 

Screenshot 2020-12-10 172014.jpg

 

So you can use a "Data Sream Out" to convert your In-DB stream to a standard workflow stream, make the data prep proposed by @Qiu or @grazitti_sapna and then convert it back to an In-DB form.

 

Hope that will help you overcome that In-DB/standard workflow barrier.

 

Cheers,


Angelos

 

 

Qiu
20 - Arcturus
20 - Arcturus

@Agarwal_Yash91 
Sorry did not fully understand your question.

Hope someelse can help you out.😁

Agarwal_Yash91
8 - Asteroid

@Qiu @grazitti_sapna before appending data i want to compare dates between source and target and dates which are not present in source we should read only those.

Labels