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: 
Aditya_Chitale
Specialist
Specialist

Row number based on groups of data

Hi All,

I want to assign same row number to groups of data in a table in load script based on grouping of field: "Name"

Desired Output:

Name Date Sales Rowno
A 10-Dec-22 100 1
A 11-Dec-22 200 1
A 12-Dec-22 300 1
B 10-Nov-22 400 2
B 11-Nov-22 500 2
C 10-Nov-22 600 3

 

Regards,

Aditya

Labels (3)
1 Solution

Accepted Solutions
tresesco
MVP
MVP

Try like:

Load Name, Date, Sales, Autonumber(Name)  as  Rowno From <>;

View solution in original post

1 Reply
tresesco
MVP
MVP

Try like:

Load Name, Date, Sales, Autonumber(Name)  as  Rowno From <>;