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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Periods

Hi all,

I have this:

KEYDates
1233-8-2013
12315-8-2013
45629-8-2013
456

6-9-2013

78923-8-2013

and I want this:

KEYDates 1Dates 2
1233-8-201315-8-2013
45629-8-20136-9-2013
78923-8-2013-

Regards,

Arjan

Labels (1)
2 Replies
Not applicable
Author

It might work if you make some changes to your script.

Instead of loading to table as it is try loading:

[MyTable]

LOAD

     Key,

     Min(Dates) as Date1,

     Max(Dates) as Date2

FROM

Hope it helps

MayilVahanan
MVP
MVP

HI

May be like this

Load

KEY,

If(Count(Dates) > 1, Date(Max(Dates))) as Dates2,

Date(Min(Dates)) as Dates1 Resident

Test

Group by KEY;

DROP Table Test;

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.