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!
  • 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
fionaweston
Level III

how do I use a formula that subtracts Col B from Col A and divides by Col C but on a per month basis

I have 3 months of data in my file, Jan, Feb and Mar.

I'm using this formula 

(Col Sum( :A ) - Col Sum( :B )) / Col Sum( :C )

But I need the value per month.

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
ms
Super User (Alumni) ms
Super User (Alumni)

Re: how do I use a formula that subtracts Col B from Col A and divides by Col C but on a per month basis

Most Col Stat() functions support optional by-variables. 

 

This formula, where :Month is the by-variable, give monthly values (repeated in every row of each month)

(Col Sum( :A, :Month ) - Col Sum( :B, :Month )) / Col Sum( :C, :Month )

 

 

View solution in original post

2 REPLIES 2
ms
Super User (Alumni) ms
Super User (Alumni)

Re: how do I use a formula that subtracts Col B from Col A and divides by Col C but on a per month basis

Most Col Stat() functions support optional by-variables. 

 

This formula, where :Month is the by-variable, give monthly values (repeated in every row of each month)

(Col Sum( :A, :Month ) - Col Sum( :B, :Month )) / Col Sum( :C, :Month )

 

 

fionaweston
Level III

Re: how do I use a formula that subtracts Col B from Col A and divides by Col C but on a per month basis

Perfect, thanks!

Recommended Articles