cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Register to attend Discovery Summit 2025 Online: Early Users Edition, Sept. 24-25.
  • New JMP features coming to desktops everywhere this September. Sign up to learn more at jmp.com/launch.
Choose Language Hide Translation Bar
NewToThis
Level I

Filling rows based by iterating on different column entity

I want to assign a value to each row within a category defined in another column using JSL. For example, Module is the Category column and I want to assign this to All rows in within that category in the New column. 

 

NewToThis_0-1751331064874.png

the new column should be like this 

NewToThis_1-1751331123573.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: Filling rows based by iterating on different column entity

If( :Module != "",
	value = :Module
);
value;
Jim

View solution in original post

6 REPLIES 6
txnelson
Super User

Re: Filling rows based by iterating on different column entity

If( :Module != "",
	value = :Module
);
value;
Jim
jthi
Super User

Re: Filling rows based by iterating on different column entity

Or if you can modify Module column you can fill it

jthi_0-1751348017539.png

 

-Jarmo
NewToThis
Level I

Re: Filling rows based by iterating on different column entity

Unfortunately, in my case there are thousands of Modules in the module column, so doing it manually is not an option. I believe I will have to use for & if loop to fill the New Column with Module value

txnelson
Super User

Re: Filling rows based by iterating on different column entity

Is there an issue with the column formula that I provided.  It will work with thousands of Modules?

Jim

Re: Filling rows based by iterating on different column entity

Looks like your formula works perfectly, Jim.

 

mmarchandFSLR_0-1751398110841.png

 

jthi
Super User

Re: Filling rows based by iterating on different column entity

It is few button presses to fill them in by replacing with previous value. It isn't automated and if you don't need it automated, it should work fine. Other excellent options if the formula Jim has provided you with. 

-Jarmo

Recommended Articles