Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
ajipaul03
Contributor III
Contributor III

Identify and flag the repetitive daily-ordering pattern

Hello Experts,

I have a complex requirement to identify and flag the repetitive daily-ordering pattern.

Please see the sample data below.

The intend is to create the following fields as show in the table below

REPEAT_BATCH_ID
REPEAT_SEQ
FIRST_REPEAT

Any thoughts?

Thanks,

Aji

REC_IDCUSTPRODDT REPEAT_BATCH_IDREPEAT_SEQFIRST_REPEAT
1C1ABC6/01/2019    
2C1HIJ6/01/2019    
3C1XYZ1/01/2019 11First
4C1XYZ2/01/2019 12Repeat
5C1LMN4/01/2019    
6C1XYZ5/01/2019 21First
7C1XYZ6/01/2019 22Repeat
8C1XYZ7/01/2019 23Repeat
9C1XYZ8/01/2019 24Repeat
10C1XYZ18/01/2019    
11C2ABC8/01/2019 31First
12C2ABC9/01/2019 32Repeat
13C2HIJ1/01/2019    
14C2HIJ3/01/2019 41First
15C2HIJ4/01/2019 42Repeat
16C2HIJ12/02/2019    
17C2XYZ3/01/2019 51First
18C2XYZ4/01/2019 52Repeat
19C2XYZ5/01/2019 53Repeat
20C2XYZ12/02/2019    
Labels (1)
1 Solution

Accepted Solutions
Arthur_Fong
Partner - Specialist III
Partner - Specialist III

There you go:

MC.PNG

Is a combination of both front end and back end script to do this.

Do have a look on the logic to build this.

Thanks and regards,

Arthur Fong

View solution in original post

2 Replies
Arthur_Fong
Partner - Specialist III
Partner - Specialist III

There you go:

MC.PNG

Is a combination of both front end and back end script to do this.

Do have a look on the logic to build this.

Thanks and regards,

Arthur Fong

ajipaul03
Contributor III
Contributor III
Author

Hi Arthur,

Brilliant!!!

Couple of minor changes I did
the actual REC_ID is alphanumeric. so created a new filed using rowno() .
Used autonumber with Repeat_Batch_ID to generate the REPEAT_SEQ.

Thanks for your help!
Aji