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: 
Not applicable

Duplicate Flag Calculation in load script

Hi,

How do I calculate the duplicate flag value in load script?

Ex:

Column 1Column 2
Product1No
Product2No
Product3Yes
Product3Yes

I need the script to calculate the column 2.

Labels (1)
1 Solution

Accepted Solutions
MayilVahanan
MVP
MVP

Hi

Try like this

Load If(Previous([Column 1] = [Column 1], 'Yes', 'No') As "Column 2" from tablename order by [Column 1] asc;

Hope that helps

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

View solution in original post

2 Replies
MayilVahanan
MVP
MVP

Hi

Try like this

Load If(Previous([Column 1] = [Column 1], 'Yes', 'No') As "Column 2" from tablename order by [Column 1] asc;

Hope that helps

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

Thanks, Its worked.