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: 
girish2195
Contributor II
Contributor II

Numbering based on Date and Process

Hi All,

Please find the below attachment for sample data.

I want to generate the number based on date and process.

If you look at the sample data you will get the idea.

Thanks in advance

Girish Kumar DV

Labels (1)
1 Solution

Accepted Solutions
tresB
Champion III
Champion III

Now I notice that your Number also considers Date field. Try like:

AutoNumber(RowNo(),Process & Date) as Number

View solution in original post

3 Replies
tresB
Champion III
Champion III

Try like:

Load

          Autonumber(RowNo(), Process) as CounterProcess

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Perhaps like this:

tmpUnsorted:

LOAD

     Date,

     Process

FROM

     ...source...

     ;

Result:

NOCONCATENATE LOAD

     Date,

     Process,

     If(Date=Previous(Date) And Process=Previous(Process), peek(Number)+1, 1) as Number

RESIDENT

     tmpUnSorted

ORDER BY

     Date,

     Process

     ;

DROP TABLE tmpUnsorted;


talk is cheap, supply exceeds demand
tresB
Champion III
Champion III

Now I notice that your Number also considers Date field. Try like:

AutoNumber(RowNo(),Process & Date) as Number