Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Generic Load

This post is related to my previou post Set Condition in Load Script and I got Rob Wunderlich and 

So basically I have 3 tables as below,

Table_Initial:  

Case_IDInitial_Date
100011/3/2007
100023/28/2010

Table_Followup:  

Case_IDFollowup_Date
10001 1/10/2007
10002 04/06/2010
100024/12/2010

Data_Routing:

There are three types of States, Data Entry (From_State '3' to To_State '4'), Review (From_State '4' to To_State '1001'), Finalize (From_State '1001' to To_State '1002').

Case_ID From_State To_StateRoute_Date
10001341/3/2007 08:30am
10001100110021/8/2007 15:30pm
10001100210031/8/2007 16:40pm
10001341/11/2007 10:15am
1000234 03/29/2010 9:45am
10002433/29/2010 10:10am
10002343/29/2010 14:15pm
1000210011002 04/03/2010 10:15am
100021002100304/04/2010 9:00am
100023404/07/2010 12:15pm
100021002100304/10/2010 9:00am
1000234 04/13/2010 10:30am
1000310021003
1000334

My goal here is to get specific date for each of the state based on Initial or Followup Receive_Date. The challenge is how can I get different rows based on different Initial or Followup Receive_Date, as well as matching the Route_Date to specific states. Especially there are maybe more than 1 Followup Receive_Date for the same Case_ID.

   

Case_IDReceive_DateData Entry DateReview DateFinalize Date
100011/3/20071/3/2007 08:30am1/8/2007 15:30pm1/8/2007 16:40pm
10001 1/10/20071/11/2007 10:15am
100023/28/20103/29/2010 14:15pm 04/03/2010 10:15am04/04/2010 9:00am
10002 04/06/201004/07/2010 12:15pm 04/03/2010 10:15am04/10/2010 9:00am
100024/12/2010 04/13/2010 10:30am

If any of you can share your thoughts or the possible ways to achieve my goal, please let me know.  Please find the attached example sample that may help you to understand my requirement easier.

Thanks in advance,

Becky

12 Replies
Not applicable
Author

Like this... Not sure why the Right Join is not working as well...Why are we using AutoNumber here?

sunny_talwar

AutoNumber seems to run fine for me. Can you check and run the attached

Not applicable
Author

I cannot. The app broke down when I try to run the script. Here I only posted a sample QVW file. But there are tons of records in the non-sample QVW file. I think it's the combination of using both AutoNumber() and RowNo(), just not sure why. It also acted like some type of virus. As my screen would blinking after I force quit the dead QlikView app. So I have to reboot my computer.