Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
carlospulgarinz
Contributor III
Contributor III

Autonumber:

HELP, I Have This script, but it doesn't count it, in the date order:

Imposicion2:

first 30000 LOAD

date,

ID,

AutoNumber(Rowno(), ID) as Cuenta   

   

FROM [lib://Compartidosecreto/PST\Imposicion.qvd]

(qvd);


The result is:


cuenta            Date                  ID

1               05/03/2013               1

2               14/06/2013               1

3               26/03/2013               1

4               17/04/2013               1




But i wolud like, the result like this:


cuenta            Date                  ID

1               05/03/2013               1

4               14/06/2013               1

2               26/03/2013               1

3               17/04/2013               1


1 Solution

Accepted Solutions
JustinDallas
Specialist III
Specialist III

Can you try something like this?

Imposicion2:

first 30000 LOAD

date,

ID

FROM [lib://Compartidosecreto/PST\Imposicion.qvd]

(qvd);

ImposicionFinal:

LOAD *, AutoNumber(Rowno(), ID) as Cuenta

;

LOAD * Resident Imposicion2

ORDER BY date ASC

;

BAJA MESA Imposicion2

;

View solution in original post

4 Replies
JustinDallas
Specialist III
Specialist III

What's the difference between the current result and the desired result?

carlospulgarinz
Contributor III
Contributor III
Author

Ther order by date, oldest be the num 1 ... and de newest de number 4

JustinDallas
Specialist III
Specialist III

Can you try something like this?

Imposicion2:

first 30000 LOAD

date,

ID

FROM [lib://Compartidosecreto/PST\Imposicion.qvd]

(qvd);

ImposicionFinal:

LOAD *, AutoNumber(Rowno(), ID) as Cuenta

;

LOAD * Resident Imposicion2

ORDER BY date ASC

;

BAJA MESA Imposicion2

;

carlospulgarinz
Contributor III
Contributor III
Author

Thank you, it worked!