cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
The Discovery Summit 2025 Call for Content is open! Submit an abstract today to present at our premier analytics conference.
See how to use JMP Live to centralize and share reports within groups. Webinar with Q&A April 4, 2pm ET.
Choose Language Hide Translation Bar
View Original Published Thread

Counting rows

jswislar
Level III

I have a data set with multiple lines of data per individual. The lines of data are medical procedures and I want to get the average number of lines (or procedures) per individual. I'm not sure how to do that.

 

I was able to count the number of lines but I can't take the mean of that since everyone who has 5 lines also has 4 lines and 3 lines and so on. So basically what I think I need is for JMP to count the number of lines, but then only save the highest number. How can I do that?

 

The data structure is like this:

 

ID      Count  

001    1  

001    2  

001    3  

002    1  

003    1  

003    2  

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User


Re: Counting rows

the formula would be

 

Col Number(:Count,ID)
Jim

View solution in original post

1 REPLY 1
txnelson
Super User


Re: Counting rows

the formula would be

 

Col Number(:Count,ID)
Jim