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.

Discussions

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

Running count formula

I have a column with data that is either a 0 or 1.  I would like to have a running total down the table of the amount of times it is a 1 in a separate column.  How do I do this?

1 REPLY 1
txnelson
Super User

Re: Running count formula

All you need to do is create a new Formula Column, and use the Col Cumulative Sum() function

  1. Create a new column
  2. Go to the header of the new column, and right click and select "Formula"
  3. In the formula, go to the left edge of the window to the List of function categories and click on "Statistical"
  4. From the displayed list, select "Col Cumulative Sum()"
  5. Now go to the list of columns and double click on the column you want to sum
  6. Finally click on "OK"
Jim

Recommended Articles