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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
maxsheva
Creator II
Creator II

Generate in script unique numbers for date field with sort

Hi,

I need generate in script unique numbers for date field with sort by ascending.

Date

01/01/17

01/02/17

01/03/17

02/2017

02/15/17

I need

Num, Date

1, 01/01/17

2, 01/02/17

3, 01/03/17

4, 02/15/17

5, 02/2017

Thx.

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

You can try

Data:

Load Field1, Field2, Date From TableName;

Left Join (Date)
Load Date, AutoNumber(Date) as Num Resident Data Order By Date;

View solution in original post

3 Replies
MK_QSL
MVP
MVP

May be

AutoNumber(Date) as Num

maxsheva
Creator II
Creator II
Author

I already tried it but sort is not ascending by date

1.jpg

MK_QSL
MVP
MVP

You can try

Data:

Load Field1, Field2, Date From TableName;

Left Join (Date)
Load Date, AutoNumber(Date) as Num Resident Data Order By Date;