cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Instantly extract effect sizes, F-ratios, and FDR-adjusted p-values from your models with the Calculate Effects Sizes extension, available now in the JMP Marketplace!
  • 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!
  • See how to use the JMP Marketplace – Free tools to expand JMP capabilities. Register. July 10, 2 pm US Eastern Time.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
ExcitedOwl
Level I

how to number rows based on column values

Hi All,

 

I have a table with SN and timestamp for each. I need to number the lines per each SN based on timestamp.

the table is sorted by time and I wanted to use ROW() with grouping by SN, but i don't know how to do it.

appreciate your help,

Thanks

ExcitedOwl_1-1695550260374.png

 

3 REPLIES 3
txnelson
Super User

Re: how to number rows based on column values

Here is the formula that I normally use

Col Cumulative Sum( 1, :SN );
Jim
Craige_Hales
Super User

Re: how to number rows based on column values

@jthi  did something similar with ColSum(); here's an explanation of how it works:

https://community.jmp.com/t5/Discussions/Countif-equivalent/m-p/664313/highlight/true#M85267

Craige
hogi
Level XIII

Re: how to number rows based on column values

If you cannot guarantee that the entries are sorted, use

Col Rank(:START_TIME_UTC,:SN)

Recommended Articles