cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Learn how to build custom Python data connectors and further customize JMP’s Data Connector Framework with the Python Data Connector Demo, available now in the JMP Marketplace!
  • See how to create experiments to support product design and ID useful product features. Register for June 12 webinar, 2pm US Eastern Time.

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