Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

what's the expression

Hi,

i have this table and i need an expression to evaluate the NewDate

DateField1Field2NewDate
17/4/2011AAABB?
18/4/2011AAAACM?
19/4/2011AAABCM?
20/4/2011AAACCM?
21/4/2011AAADCM?
22/4/2011AAAERH?
23/4/2011AAAFCM?
24/4/2011AAAGBB?

in the load i added load for left(Field1,3) and called it Field3

what i want is that"if Field3=Field1 and Field2 is equal in both records"

for example in case of Field1=AAAG and the left(Field,3) will equal AAA the corresponding value for Field2 in this record =BB

and there's AAA in Field1 and its corresponding value in Field2 is BB

So, i want the NewDate for both records to be the minimum date of both records which is 17/4/2011

The final result i want is

DateField1Field2NewDate
17/4/2011AAABB17/4/2011
18/4/2011AAAACM18/4/2011
19/4/201AAABCM19/4/2011
20/4/2011AAACCM20/4/2011
21/4/2011AAADCM21/4/2011
22/4/2011AAAERH22/4/2011
23/4/2011AAAFCM23/4/2011
24/4/2011AAAGBB17/4/2011

Thanks in advance

12 Replies
Not applicable
Author

Never Mind,

The expected result is the second table in my original post

the only 2 records will be affected are record one and three

lironbaram
Partner - Master III
Partner - Master III

hei mona

check the new attachment

last try

look at the load script

Not applicable
Author

Thanks Alot