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: 
stephbzr
Contributor III
Contributor III

Working with sequences

Hello, 

 

Here is what I needed to do in a previous task : for each row where the entity is 070 (because these rows are stored in a different table from the others), put 0 when the date (column REP_DATRO) is found for the first time otherwise 1. 

Here is the code to have the HIST_INDICATOR column : 

 

0695b00000bDwNqAAK.png 

0695b00000bDwQaAAK.png 

Here is what I want to do now in a new column :

0695b00000bDwQfAAK.png 

It's quite difficult, I don't have a deep knowledge of existing methods in JAVA to help me accomplish this. Here is what I have tried so far 

0695b00000bDwREAA0.png 

0695b00000bDwR4AAK.png 

0695b00000bDwRsAAK.png

Labels (4)
1 Reply
Anonymous
Not applicable

Hi

I don't understand why the HIST_INDICATOR column has empty value in your second image, with the expression shown in the first image, there should be 1 or 0?

 

0695b00000bEBnPAAW.png 

Regards

Shong