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: 
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?

Labels (1)
1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

LOAD

     Col1,

     autonumber(recno(),Col1) as Col2

FROM ...


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

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.