Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Increment by period

Hi community,

Is there anyway in the script to increment a value by month and year?  The first year is 2012 period 0.  I want 2012, period 1 to be 1 and 2012, period 2 to be 2 etc. and 2013, period 1 to be 13 and 2013 period 2 to be 14.

1 Reply
CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     Try using autonumber function as

     Load

          autonumber(YearField & PeriodField) as PeriodNumber

     From datasource;

Note: table should be order based on datefield.