Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

flag row with same item in a series

I have a table with sku repeating in multiple rows. I want to flag each row for a particular sku in a series like 1,2,3..

Any help much appreciated.

   

SKUSup_Qtyflag
323361
32382
32343
32151
32112

stalwar1

1 Solution

Accepted Solutions
sunny_talwar

You want this in the script?

May be like this:

LOAD SKU,

          Sup_Qty,

          AutoNumber(RecNo(), SKU) as Flag

Resident ....

Order By SKU, Sup_Qty Desc;

Not sure if you want to order the Sup_Qty in the descending order or not, but you can remove the Sup_Qty Desc from the above code, if you don't want that and number according to the order of data.

View solution in original post

2 Replies
sunny_talwar

You want this in the script?

May be like this:

LOAD SKU,

          Sup_Qty,

          AutoNumber(RecNo(), SKU) as Flag

Resident ....

Order By SKU, Sup_Qty Desc;

Not sure if you want to order the Sup_Qty in the descending order or not, but you can remove the Sup_Qty Desc from the above code, if you don't want that and number according to the order of data.

Anonymous
Not applicable
Author

I got it. Thanks