Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

min and max dates

Hi,

I have a table that looks like that:

PPRINRIVR_DATE
11101/01/16
11220/01/16
11315/01/16
222130/12/15
222220/10/15
222309/08/15

I need to add 2 columns to the table with the min and max IVR_DATE of the PPR.

How can i do it in the script when i'm loading the table?

Thx for help and sry for bad english

1 Solution

Accepted Solutions
sunny_talwar

Try this:

Table:

LOAD PPR,

     INR,

     IVR_DATE

FROM

[https://community.qlik.com/thread/212990]

(html, codepage is 1252, embedded labels, table is @1);

Left Join (Table)

LOAD PPR,

  Date(Min(IVR_DATE)) as MinDate,

  Date(Max(IVR_DATE)) as MaxDate

Resident Table

Group By PPR;


Capture.PNG

View solution in original post

2 Replies
sunny_talwar

Try this:

Table:

LOAD PPR,

     INR,

     IVR_DATE

FROM

[https://community.qlik.com/thread/212990]

(html, codepage is 1252, embedded labels, table is @1);

Left Join (Table)

LOAD PPR,

  Date(Min(IVR_DATE)) as MinDate,

  Date(Max(IVR_DATE)) as MaxDate

Resident Table

Group By PPR;


Capture.PNG

Not applicable
Author

Use the same table and use Resident option calculate the Min & Max dates.  Finally Join back to your main table.