cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • Use World Cup data to build models, explore spatial relationships, and create informative visualizations in JMP. Register. July 17, 2 pm US Eastern Time.
  • Your voice matters! Tell us how you prefer to receive JMP updates, so we can tailor our communication to your needs. Take short survey.

Community Discussions

Got a question about using the JMP User Community? A complaint or a compliment? Post it here.
Choose Language Hide Translation Bar
DELANDJ1985
Level III

How do you create a sequence number by unique column variables?

How do you create a sequence number by unique column variables?

 

See attached of example i manually completed but i have lot more to do!

 

I often get a response written in code or script format which i struggle to understand so appreciate if you could help me understand the solution if one exists.

 

Thanks in advance!

1 ACCEPTED SOLUTION

Accepted Solutions
dale_lehman
Level VII

Re: How do you create a sequence number by unique column variables?

 I don't understand your Lot numbers - you appear to treat 2823 different than 2831, but 2831 the same as 2835.  In any case, the attached should be easily modified, depending on how you really want to define unique Lots.  I did it without scripting.  I used a column of 1s which I then use a ColCumulSum function with accepts a By variable (which I use Lot for).

View solution in original post

2 REPLIES 2
dale_lehman
Level VII

Re: How do you create a sequence number by unique column variables?

 I don't understand your Lot numbers - you appear to treat 2823 different than 2831, but 2831 the same as 2835.  In any case, the attached should be easily modified, depending on how you really want to define unique Lots.  I did it without scripting.  I used a column of 1s which I then use a ColCumulSum function with accepts a By variable (which I use Lot for).

DELANDJ1985
Level III

Re: How do you create a sequence number by unique column variables?

Thank you Dale - very effective solution and yes i had made an error in my dataset.