Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
atsushi_saijo
Creator II
Creator II

Count and Serialize the duplicated value

In a request, we have to count and serialize the duplicated values in such manner (see Col2):

Col1Col2
a1
b1
a2
a3
c1

Here, we have 3 duplicated rows in Col1. User's request is to count gradually as loading script goes. Perhaps it's like comparing value with Previous(Col1), and if so, sum....How could we achieve such count?

*To obtain the total duplicated count, it is rather easy to group by and count Col1. But if we had to count as loading script goes, I wonder what could be the possibility?

1 Solution

Accepted Solutions
Gysbert_Wassenaar

LOAD

     Col1,

     autonumber(recno(),Col1) as Col2

FROM ...


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar

LOAD

     Col1,

     autonumber(recno(),Col1) as Col2

FROM ...


talk is cheap, supply exceeds demand
atsushi_saijo
Creator II
Creator II
Author

Thank you for excellent and fast reply. It is verified working.