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
pankti
Level I

Fill consecutive rows

I have a large data set and will like to fill consecutive rows with top value. 

 

pankti_0-1615332538971.png

5 REPLIES 5
jules
Community Manager Community Manager

Re: Fill consecutive rows

Hi @pankti,

You can use the "Replace Missing with Previous Value" function that is a part of the data table. Select the entire column, then right click the top value > Fill > Replace Missing with Previous Value.

replace.gif

 I hope this helps!

@jules 

pankti
Level I

Re: Fill consecutive rows

@jules, is this a feature in new versions of JMP. We are using JMP 13.2.1 and unable to update. Thanks 

Kevin_Anderson
Level VI

Re: Fill consecutive rows

Hi, pankti!

 

Try this formula:

 

Floor( (Row() - 1) / 4 ) + 1

 

Good luck!

 

Kevin

jules
Community Manager Community Manager

Re: Fill consecutive rows

Good thinking, @Kevin_Anderson! I didn't even consider that the question might be less about spanning these values in general and more about creating a sequence. If this is the case @pankti, Kevin's already provided you one flexible option to create such a sequence. I'll give one more, which is to use the built in Sequence() function in a column formula. The syntax is:

 

julian_0-1615426069828.png

 

For your situation, it appears you would use something like:

Sequence(1,99999,1,7)

That is, numbering from 1 to some value (high enough where you don't then start over), incrementing by 1 each step, and repeating each value 7 times before incrementing. 

 

Julian

 

 

jules
Community Manager Community Manager

Re: Fill consecutive rows

Hi @pankti,

Yes, this feature was added in JMP 14. With JMP 13 or earlier you have a few options:

I think you will find a lot of use from the Add-In, so that is my recommendation. 

Julian

 

Recommended Articles