cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar
polymerist
Level I

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 I

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