Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Note: You may notice some temporary visual or styling issues in the Community. Our vendor is actively investigating.
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.