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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to assign same number to duplicate values in a column

Hi, consider the data given below

Bill

Bill

Bill

Clive

Mary

Mary

John

Lily

Lily

Lily

How do i assign same number to the duplicates so that the output looks like this;

1 Bill

1 Bill

1 Bill

2 Clive

3 Mary

3 Mary

4 John

5 Lily

5 Lily

5 Lily

 

Labels (3)
1 Solution

Accepted Solutions
manodwhb
Champion II
Champion II

7 Replies
TRF
Champion II
Champion II

Have a look to tAggregateRow
manodwhb
Champion II
Champion II

@ahmed_analytics ,check the below solution.

 

0683p000009M7ml.png0683p000009M7mq.png

Anonymous
Not applicable
Author

can you please elaborate on how to use taggregate row

Anonymous
Not applicable
Author

What if the duplicates are not in order ?

example:

Bill

Clive

Bill

Mary

Bill

Clive

Mary

then it still should be

1 Bill

2 Clive

1 Bill

3 Mary

1 Bill

2 Clive

3 Mary

manodwhb
Champion II
Champion II

@ahmed_analytics ;check the below one.

0683p000009M7mv.png0683p000009M7UP.png0683p000009M7n0.png

TRF
Champion II
Champion II

@ahmed_analytics, forget tAggregateRow in this case

Anonymous
Not applicable
Author

Thanks @manodwhb , sorting the rows first did the trick.