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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
chrisk44
Contributor III
Contributor III

Renumbering data

Hello All.

I'm new to QV -and 

I have a problem with renumbering rows in the database... Namely:
The source table looks like this:

 

IDDATE
11111999-02-15
11112008-09-24
22222002-06-20
22222002-06-20
33331996-01-02
33332008-07-16
33332018-11-30
44441998-09-01

Ultimately, for each date change, you should generate a new ID number - new column based old one with ID and one in succession of 1, 2, 3 etc...:

IDDATERENUMBERED_ID
11111999-02-1511111
11112008-09-2411112
22222002-06-2022221
22222002-06-2022221
33331996-01-0233331
33332008-07-1633332
33332018-11-3033333
44441998-09-0144441

 

Thanks in advance.

Labels (1)
1 Solution

Accepted Solutions
rwunderlich
MVP
MVP

ID & AutoNumber(DATE, ID) as RENUMBERED_ID

-Rob

View solution in original post

2 Replies
rwunderlich
MVP
MVP

ID & AutoNumber(DATE, ID) as RENUMBERED_ID

-Rob

chrisk44
Contributor III
Contributor III
Author

Thank You - it work like a charm - great!