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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
ecabanas
Creator II
Creator II

How to do an order counter id

Hi guys

I have a table with the CUSTACCOUNT, SALESID and CREATEDDATETIME. In the master table obviously I have several CUTACCOUNT and SALESID, but I would like to "numerate" the orders, in order to know Frequency, etc etc. as in the following table

Many many thanks

Eduard

CUSTACCOUNTSALESIDCREATEDDATETIMEOrder Number
C000002PV0016141216/09/20111
C000002PV0016144719/09/20112
C000002PV0016145920/09/20113
C000002PV9000011517/10/20114
C000002PV0016277328/12/20115
C000002PV9000025128/12/20116
C000002PV0016361510/02/20127
C000002PV0016742602/08/20128
C000002PV0016783317/08/20129
C000002PV0017214826/10/201210
C000002PV0017505812/12/201211
C000002PV0017567222/12/201212
C000002PV0017630504/01/201313
C000002PV0017776625/01/201314
C000002PV0017923815/02/201315
C000002PV0018106313/03/201316
C000002PV0018209801/04/201317
C000002PV0018334519/04/201318
C000002PV0018495813/05/201319
C000002PV0018626930/05/201320
C000002PV0018962804/07/201321
C000002PV0019265313/08/201322
C000002PV0019578116/09/201323
11 Replies
ecabanas
Creator II
Creator II
Author

Hi sunny,

Now The script is working EXCELLENT many many thank's, if you come to Barcelona you'll have a paella ready to eat 😉

sunny_talwar

Awesome, now I soon need to plan a trip to Barcelona then