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

Cumulative calculation on the basis of fields

Hi All,

Need your help!!

My input table is this:

Load * inline
[
Contract No , Installment Date
18702,18/02/2019
18702,18/03/2019
18702,18/04/2019
18703,19/02/2019
18703,19/03/2019
18704,18/02/2019
18704,18/03/2019
18704,18/04/2019
18704,18/05/2019

];

In this I am trying to add a column where on the basis of contract no and sorted Intallment Date ,I should have a series of Installment No starting from 1 like this 

Expected Output table is:

Contract NoInstallment DateInstallment No
1870218/02/20191
1870218/03/20192
1870218/04/20193
1870319/02/20191
1870319/03/20192
1870418/02/20191
1870418/03/20192
1870418/04/20193
1870418/05/20194

 

Thanks and Regards,

Ruma

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Try like:

AutoNumber(RowNo(),[Contract No]) as [Installment No]

View solution in original post

3 Replies
tresesco
MVP
MVP

Try like:

AutoNumber(RowNo(),[Contract No]) as [Installment No]

ruma_barman
Creator
Creator
Author

Hi Tresesco,

Thank you for your instant response. It works but 

with this function  the qvd of actual data table takes 11 mins to load ,without this it takes few secs. Is there any alternate way?

Thanks and Regards,

Ruma

tresesco
MVP
MVP

That is probably because without this new field creation your qvd load is becoming an 'optimized load'. Alternative would be to create this field one step prior, i.e. while you are creating the qvd.