cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Sign-in to the JMP Community will be unavailable intermittently Dec. 6-7 due to a system update. Thank you for your understanding!
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.
  • JMP 19 is here! Learn more about the new features.

Discussions

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

How can I treat a missing value in a locked column as zero?

JMP 17.2.0

 

I came across this thread, which was a perfect solution to calculating a time difference between rows, using the formula below in a Formula Column.

Col Cumulative Sum(Dif(:Time))

However, I am getting a blank/missing item in the first cell of the Formula Column, which then causes my resulting graph to not start at zero.

polymerist_1-1722622321987.png

 

Right now, I'm getting around it by inserting a row at the top of the data table with the same time, which results in Row 2 providing a zero-point.

polymerist_2-1722622422505.png

 

Is there a way to treat the missing value as zero in a locked column? Or better yet, is there an edit I can make to the formula to form a T0 point?

 

Thanks in advance!

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: How can I treat a missing value in a locked column as zero?

You can for example add if statement

If(Row() == 1,
	0
,
	Col Cumulative Sum(Dif(:Time))
);
-Jarmo

View solution in original post

2 REPLIES 2
jthi
Super User

Re: How can I treat a missing value in a locked column as zero?

You can for example add if statement

If(Row() == 1,
	0
,
	Col Cumulative Sum(Dif(:Time))
);
-Jarmo
polymerist
Level II

Re: How can I treat a missing value in a locked column as zero?

Beautiful, thank you! The below worked perfectly.

 

polymerist_0-1722624756894.png

 

Recommended Articles