cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Graph Builder Toolbar streamlines interactive graphing. Creates shortcuts on Report and GraphBuilder Helpers toolbars. Download and install the extension.
  • JMP will suspend normal business operations for our Rest and Recharge Day on Friday, October 2, 2026.
    Regular business hours will resume on Monday, October 5, 2026.

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