Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I need to create %2TalSeq:
Within the same value of %2Tal , the numbering has to restart at 1.
%2Tal | Date | %2TalSeq |
°1°2° | 26-12-2008 | 1 |
°1°3° | 14-05-2004 | 1 |
°1°3° | 10-12-2004 | 2 |
°1°3° | 29-09-2006 | 3 |
°1°3° | 24-08-2007 | 4 |
°1°4° | 09-04-2004 | 1 |
°1°4° | 26-11-2004 | 2 |
°1°4° | 27-07-2007 | 3 |
°1°5° | 12-02-2010 | 1 |
°1°6° | 25-11-2005 | 1 |
°1°6° | 29-09-2006 | 2 |
Thanks
Paul
If you need to do it in the script, you can use functions previous() and peek() to compare the value of the Items and assign the Counter accordingly.
Something like this:
load
Item,
Date,
if(previous(Item) <> Item, 1, peek(Counter) + 1) as Counter
resident
Tab1
Order By
Item, Date
;
Oleg,
Thank you.
Paul