Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
RyanProbyn
Contributor II
Contributor II

Cumulative count in data load

Hi Qlik Community,

I have a table as follows:

IDCatagory
1a
2b
2c
3a
3b
3c

 

I would like the following:

IDCatagoryCumalitive_count(id)
1a1
2b1
2c2
3a1
3b2
3c3

 

is there an easy way to do this in the dataload?

 

Cheers,

Ryan

1 Solution

Accepted Solutions
Ksrinivasan
Specialist
Specialist

hi,

try this in script,

hhhh:

LOAD
ID,
Catagory,
AutoNumber(RowNo(),ID) as Rank

 

result:

Ksrinivasan_0-1611856392302.png

 

ksrinivasan

View solution in original post

2 Replies
Ksrinivasan
Specialist
Specialist

hi,

try this in script,

hhhh:

LOAD
ID,
Catagory,
AutoNumber(RowNo(),ID) as Rank

 

result:

Ksrinivasan_0-1611856392302.png

 

ksrinivasan

RyanProbyn
Contributor II
Contributor II
Author

Works like a charm!

Many thanks,

Ryan