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

Announcements
AWS Degraded - You may experience Community slowness, timeouts, or trouble accessing: LATEST HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
DEV4
Contributor III
Contributor III

Help me with the logic please

Hello All,

 

I have a requirement where I'm extracting the data from a excel file and loading that to target oracle table. Below is how my data looks like.


If there are multiple records per Prospect_ID and if the APPLICANT_SUBMIT_DATE is null, we need to load to target the record where Decision = Y and if more than one row exists with Decision = Y then take the record with maximum Application_Start_Date.

 0683p000009M6g8.png0683p000009M6gI.png

 

Thanks

Labels (3)
4 Replies
Anonymous
Not applicable

Hello, have you tried the following?

tExcelInput -> tFilterRow (filter Decision = Y) -> tAggregateSortRow (Group by Prospect_ID, Entry Team) -> tLogRow

You extract all the information from Excel, filter and delete Decision = N is not relevant information).

By grouping for each Prospect ID and Entry Team you will have each row with a different application date and decision = Y which is what you need to send to the output to save it in a CSV / Database System file.

Greetings,

DEV4
Contributor III
Contributor III
Author

Thank you for the reply.

 

I do not want to filter all the data with Decision = N. If there is a single row where Decision=N, that row should be loaded to target.

 

I should filter Decision=N only when there are multiple records per prospect ID per entry_term, and if the APPLICATION_SUBMIT_DATE is null for those records with same prospect_id, then remove the row or rows with Decision = N, and out of the remaining rows with Decision=Y get the row with MAX Application_Start_Date and load that in to target.

 

Thank You

 

DEV4
Contributor III
Contributor III
Author

Some one please help me on this this is kind of urgent issue. Thank You

mani1304
Creator
Creator

filter null dates, then sort on the basis of propect Id, status, submit_date and take the max of each