<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Differentiate between entire column and current row in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Differentiate-between-entire-column-and-current-row/m-p/675569#M86251</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am struggling to implement a simple "contains" formula. Here's a sample data set and formula:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KevinBrunner_2-1694158597655.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/56377i0FB00DA0078E7588/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KevinBrunner_2-1694158597655.png" alt="KevinBrunner_2-1694158597655.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the text:&amp;nbsp;Contains(:Column 1, :Column 2)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue: I think it is always checking the current row of Column 1 (whole). I want it to check the entire column, not just the current row. You can see the E and B are in Column 2, but the output is saying that it does not find the part in the whole.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I explicitly say, check the entire column and not just the current row of the column?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
    <pubDate>Fri, 08 Sep 2023 07:40:50 GMT</pubDate>
    <dc:creator>KevinBrunner</dc:creator>
    <dc:date>2023-09-08T07:40:50Z</dc:date>
    <item>
      <title>Differentiate between entire column and current row</title>
      <link>https://community.jmp.com/t5/Discussions/Differentiate-between-entire-column-and-current-row/m-p/675569#M86251</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am struggling to implement a simple "contains" formula. Here's a sample data set and formula:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KevinBrunner_2-1694158597655.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/56377i0FB00DA0078E7588/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KevinBrunner_2-1694158597655.png" alt="KevinBrunner_2-1694158597655.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the text:&amp;nbsp;Contains(:Column 1, :Column 2)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue: I think it is always checking the current row of Column 1 (whole). I want it to check the entire column, not just the current row. You can see the E and B are in Column 2, but the output is saying that it does not find the part in the whole.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I explicitly say, check the entire column and not just the current row of the column?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2023 07:40:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Differentiate-between-entire-column-and-current-row/m-p/675569#M86251</guid>
      <dc:creator>KevinBrunner</dc:creator>
      <dc:date>2023-09-08T07:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: Differentiate between entire column and current row</title>
      <link>https://community.jmp.com/t5/Discussions/Differentiate-between-entire-column-and-current-row/m-p/675589#M86252</link>
      <description>&lt;P&gt;Here is one way to solve the problem&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;As Constant( colList = :Column 1 &amp;lt;&amp;lt; get values );
Contains( colList, :Column 2 );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Sep 2023 08:31:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Differentiate-between-entire-column-and-current-row/m-p/675589#M86252</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-09-08T08:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: Differentiate between entire column and current row</title>
      <link>https://community.jmp.com/t5/Discussions/Differentiate-between-entire-column-and-current-row/m-p/675596#M86253</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/50326"&gt;@KevinBrunner&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;i would think the most obvious way of comparing columns (rather than rows) in JMP would be using table join.&lt;/P&gt;
&lt;P&gt;perhaps something like this&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;
// New data table
// → Data Table( "Untitled" )
dt1 = New Table( "Untitled" );
dt1 &amp;lt;&amp;lt; New Column("Column 1", Character, "Nominal", Set Values({"A", "B", "C", "D", "E"}));

// New data table
// → Data Table( "Untitled 2" )
dt2 = New Table( "Untitled 2" );
dt2 &amp;lt;&amp;lt; New Column("Column 2", Character, "Nominal", Set Values({"A", "E", "F", "B", "H"}));

// Join data tables
// → Data Table( "Untitled 3" )
dt1 &amp;lt;&amp;lt;  Join(
	With( dt2 ),
	Match Flag( 1 ),
	By Matching Columns( :Column 1 = :Column 2 ),
	Drop multiples( 0, 0 ),
	Include Nonmatches( 1, 1 ),
	Preserve main table order( 1 )
);

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;it can also be done using clicking rather than scripting. as in the picture below&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ron_horne_0-1694164659219.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/56379i501240E21A43F2F8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ron_horne_0-1694164659219.png" alt="ron_horne_0-1694164659219.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2023 09:18:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Differentiate-between-entire-column-and-current-row/m-p/675596#M86253</guid>
      <dc:creator>ron_horne</dc:creator>
      <dc:date>2023-09-08T09:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: Differentiate between entire column and current row</title>
      <link>https://community.jmp.com/t5/Discussions/Differentiate-between-entire-column-and-current-row/m-p/675674#M86258</link>
      <description>&lt;P&gt;Maybe I can clarify the goal a little more.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In column 3 I want a function that returns a 1 if the current row in column 2 is found &lt;STRONG&gt;anywhere&lt;/STRONG&gt; in column 1. So in my example, column 3 should display 1, 1, 0, 1, 0. Because the E and B in those rows are found in column 1.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2023 10:47:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Differentiate-between-entire-column-and-current-row/m-p/675674#M86258</guid>
      <dc:creator>KevinBrunner</dc:creator>
      <dc:date>2023-09-08T10:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Differentiate between entire column and current row</title>
      <link>https://community.jmp.com/t5/Discussions/Differentiate-between-entire-column-and-current-row/m-p/675676#M86259</link>
      <description>&lt;P&gt;I tried this. It's much closer, but not quite what I'm looking for. It's counting something more than what I'm looking for. It says the B is 5 and E is 2. I just need true or false, 1 or 0.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KevinBrunner_0-1694170229319.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/56389i5C4DF302C00C3488/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KevinBrunner_0-1694170229319.png" alt="KevinBrunner_0-1694170229319.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2023 10:51:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Differentiate-between-entire-column-and-current-row/m-p/675676#M86259</guid>
      <dc:creator>KevinBrunner</dc:creator>
      <dc:date>2023-09-08T10:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: Differentiate between entire column and current row</title>
      <link>https://community.jmp.com/t5/Discussions/Differentiate-between-entire-column-and-current-row/m-p/675677#M86260</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;As Constant( colList = :Column 1 &amp;lt;&amp;lt; get values );
Contains( colList, :Column 2 ) &amp;gt; 0;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Sep 2023 11:02:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Differentiate-between-entire-column-and-current-row/m-p/675677#M86260</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-09-08T11:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Differentiate between entire column and current row</title>
      <link>https://community.jmp.com/t5/Discussions/Differentiate-between-entire-column-and-current-row/m-p/675933#M86273</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1694198011417.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/56414i8F24F344E0F4BE89/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1694198011417.png" alt="hogi_0-1694198011417.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;... following &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;'s&amp;nbsp; second suggestion:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.jmp.com/t5/Discussions/Differentiate-between-entire-column-and-current-row/m-p/675677/highlight/true#M86260" target="_blank"&gt;https://community.jmp.com/t5/Discussions/Differentiate-between-entire-column-and-current-row/m-p/675677/highlight/true#M86260&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Alternatively:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Local( {t0 = :Column 1 &amp;lt;&amp;lt; get values}, Contains( t0, :Column 2 ) &amp;gt; 0 )&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;which generates a local variable:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_2-1694198460891.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/56416i75E5B069AB989B9D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_2-1694198460891.png" alt="hogi_2-1694198460891.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;which is calculated once and used&amp;nbsp;for every row.&lt;BR /&gt;&lt;BR /&gt;Worse:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;t0 = :Column 1 &amp;lt;&amp;lt; get values;
Contains( t0, :Column 2 ) &amp;gt; 0;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This version will &lt;STRONG&gt;get&lt;/STRONG&gt; the &lt;STRONG&gt;values&lt;/STRONG&gt; again and again for every single row.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2023 18:42:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Differentiate-between-entire-column-and-current-row/m-p/675933#M86273</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-09-08T18:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: Differentiate between entire column and current row</title>
      <link>https://community.jmp.com/t5/Discussions/Differentiate-between-entire-column-and-current-row/m-p/677685#M86400</link>
      <description>&lt;P&gt;Thanks again for your help.&lt;BR /&gt;&lt;BR /&gt;I was able to simplify the code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Contains(:Column 1 &amp;lt;&amp;lt; Get Values, :Column 2) &amp;gt; 0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It does exaclty what I want. Maybe this helps you in the future.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 09:09:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Differentiate-between-entire-column-and-current-row/m-p/677685#M86400</guid>
      <dc:creator>KevinBrunner</dc:creator>
      <dc:date>2023-09-14T09:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: Differentiate between entire column and current row</title>
      <link>https://community.jmp.com/t5/Discussions/Differentiate-between-entire-column-and-current-row/m-p/677701#M86401</link>
      <description>&lt;P&gt;for a small table this is fine - for a large table you will hate it.&lt;BR /&gt;It will run the&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;:Column 1 &amp;lt;&amp;lt; Get Value&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;for every single row that is calculated&amp;nbsp; - and get very slow.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 16:30:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Differentiate-between-entire-column-and-current-row/m-p/677701#M86401</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-11-07T16:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: Differentiate between entire column and current row</title>
      <link>https://community.jmp.com/t5/Discussions/Differentiate-between-entire-column-and-current-row/m-p/677710#M86405</link>
      <description>&lt;P&gt;You can also use use &lt;A href="https://www.jmp.com/support/help/en/17.2/#page/jmp/programming-functions.shtml?os=win&amp;amp;source=application#ww5032467" target="_blank" rel="noopener"&gt;As Constant()&lt;/A&gt;&amp;nbsp;to evaluate only on first row&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

row_count = 10000; // 100 000 starts getting slow
dt = New Table("test",
	Add Rows(row_count),
	New Column("Die X", Numeric, Nominal),
	New Column("Die Y", Numeric, Nominal),&lt;BR /&gt;invisible
);

dt &amp;lt;&amp;lt; Begin Data Update;
For Each Row(dt, 
	:Die X = Random Integer(1, N Rows(dt));
	:Die Y = Random Integer(1, N Rows(dt) * 2);
);
dt &amp;lt;&amp;lt; End Data Update;
wait(0);

start = HP Time();
dt &amp;lt;&amp;lt; New Column("Formula", Numeric, Nominal, Formula(
	Contains(:Die X &amp;lt;&amp;lt; Get Values, :Die Y) &amp;gt; 0;
));
dt &amp;lt;&amp;lt; Run Formulas;
Show(HP Time() - start);

start = HP Time();
dt &amp;lt;&amp;lt; New Column("Formula As Constant", Numeric, Nominal, Formula(
	As Constant(x_m = :Die X &amp;lt;&amp;lt; get values);
	Contains(x_m, :Die Y) &amp;gt; 0;
));
dt &amp;lt;&amp;lt; Run Formulas;
Show(HP Time() - start);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 10:21:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Differentiate-between-entire-column-and-current-row/m-p/677710#M86405</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-09-14T10:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: Differentiate between entire column and current row</title>
      <link>https://community.jmp.com/t5/Discussions/Differentiate-between-entire-column-and-current-row/m-p/677713#M86406</link>
      <description>&lt;P&gt;and how about table updates?&lt;BR /&gt;If Jmp updates the entries in col 1 , all &lt;STRIKE&gt;3&lt;/STRIKE&gt; 4 *) variants get updated - so everything seems to be fine ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;edit:&amp;nbsp;&lt;BR /&gt;I added a 4th version similar to the first one, but&amp;nbsp; with the formula split into 2 steps.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

row_count = 10;
dt = New Table("test",
	Add Rows(row_count),
	New Column("col1", set each value(row())),
	New Column("col2", set each value(Random Integer(1,row_count*2))));

wait(0);

New Column( "compact Formula",	Formula( Contains( :col1 &amp;lt;&amp;lt; Get Values, :col2 ) &amp;gt; 0 ),	Set Property("Color Gradient",{"Stoplight Bad to Good"(1), Range( {0, 1, 0.5} )}),Color Cell by Value);
New Column( "Formula with 2 steps",	Formula( myList = :col1 &amp;lt;&amp;lt; Get Values ; Contains( myList, :col2 ) &amp;gt; 0 ),Set Property("Color Gradient",{"Stoplight Bad to Good"(1), Range( {0, 1, 0.5} )}),Color Cell by Value);
New Column( "Formula with local variable",	Formula( Local( {t0 = :col1 &amp;lt;&amp;lt; get values()}, Contains( t0, :col2 ) &amp;gt; 0 ) ),Set Property("Color Gradient",{"Stoplight Bad to Good"(1), Range( {0, 1, 0.5} )}),Color Cell by Value);
New Column( "Formula As Constant",	Formula(As Constant( t_1 = :col1 &amp;lt;&amp;lt; get values );		Contains( t_1, :col2 ) &amp;gt; 0),Set Property("Color Gradient",{"Stoplight Bad to Good"(1), Range( {0, 1, 0.5} )}),Color Cell by Value);

new window("info", &amp;lt;&amp;lt; modal,Text Box ("Please confirm: after the first evaluation,
all values are correct.
And  after running the next 2 lines of code, the values are correctly updated.
But now, let's try to change values in col1 manually. will the computed columns be updated?"));
:col1 &amp;lt;&amp;lt; set each value(-10);
:col1[1] = :col2[2];&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;edit:&lt;BR /&gt;added &lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;EM&gt;color cell by value&lt;/EM&gt; &lt;/STRONG&gt;&lt;/FONT&gt;to make the issue better visible&lt;BR /&gt;green: match is found&lt;/P&gt;&lt;P&gt;red: no match is found&lt;BR /&gt;the column&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Formula with local variable&lt;/EM&gt;&lt;/STRONG&gt; works. It can be used as a reference to judge the result of the other columns.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Nov 2023 16:23:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Differentiate-between-entire-column-and-current-row/m-p/677713#M86406</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-11-05T16:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: Differentiate between entire column and current row</title>
      <link>https://community.jmp.com/t5/Discussions/Differentiate-between-entire-column-and-current-row/m-p/677715#M86407</link>
      <description>&lt;P&gt;... till you try it manually.&lt;/P&gt;&lt;P&gt;I was interested if the &lt;FONT face="courier new,courier"&gt;as constant&lt;/FONT&gt; notices the update. No issue here.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;But somehow surprising, there is an issue with&amp;nbsp;the "Formula" Column which I actually did not expect:&lt;/P&gt;&lt;P&gt;After a first, correct calculation, the &lt;STRONG&gt;first&lt;/STRONG&gt; of the calculated columns stops working properly and starts to compare the column entries 1 by 1 !?!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;(my code is correct, isn't it?)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;According to Jmp manual, the first argument of &lt;STRONG&gt;contains&lt;/STRONG&gt; has to be&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1694881904509.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/56695i540CC158E06251D7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1694881904509.png" alt="hogi_0-1694881904509.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good news: contains also support matrices as first argument&amp;nbsp;&amp;nbsp;:)&lt;/img&gt;&lt;/P&gt;&lt;P&gt;But it doesn't seem to be comfortable with an expression like&amp;nbsp;&lt;/P&gt;&lt;PRE class="language-jsl"&gt;&lt;CODE&gt;:col1 &amp;lt;&amp;lt; Get Values&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6337287468112w800h540r239" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6337287468112" data-account="6058004218001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6058004218001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6337287468112w800h540r239');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.jmp.com/t5/video/gallerypage/video-id/6337287468112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Sep 2023 16:35:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Differentiate-between-entire-column-and-current-row/m-p/677715#M86407</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-09-16T16:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: Differentiate between entire column and current row</title>
      <link>https://community.jmp.com/t5/Discussions/Differentiate-between-entire-column-and-current-row/m-p/678464#M86478</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/610"&gt;@Jed_Campbell&lt;/a&gt;&amp;nbsp;,&amp;nbsp; &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/4386"&gt;@Byron_JMP&lt;/a&gt;&amp;nbsp;, this is the community discussion we talked about on Wednesday.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After our discussion I added a version with "Formula as 2 steps" which works fine on my system&amp;nbsp;(without any delay) - see the video. This was the version with the severe delay when you tried it on Wednesday.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With the&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="jsl"&gt;:col1 &amp;lt;&amp;lt; Get Values&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;inside Contains, after each manual change in :col1, one needs a&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;current data table() &amp;lt;&amp;lt; rerun formulas&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;to get the formula column updated.&lt;BR /&gt;Interesting that there is a difference between manual changes and changes via JSL ...&lt;/P&gt;</description>
      <pubDate>Sat, 11 May 2024 17:08:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Differentiate-between-entire-column-and-current-row/m-p/678464#M86478</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-05-11T17:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: Differentiate between entire column and current row</title>
      <link>https://community.jmp.com/t5/Discussions/Differentiate-between-entire-column-and-current-row/m-p/678469#M86479</link>
      <description>&lt;P&gt;Your code performs the &amp;lt;&amp;lt;get values for each row.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;As Constant( colList = :Column 1 &amp;lt;&amp;lt; get values );
Contains( colList, :Column 2 ) &amp;gt; 0;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;only runs the &amp;lt;&amp;lt;get values&amp;nbsp; &amp;nbsp; once.&amp;nbsp; With a large data table, this code will be far more efficient.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Sep 2023 18:51:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Differentiate-between-entire-column-and-current-row/m-p/678469#M86479</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-09-16T18:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Differentiate between entire column and current row</title>
      <link>https://community.jmp.com/t5/Discussions/Differentiate-between-entire-column-and-current-row/m-p/694595#M87971</link>
      <description>&lt;P&gt;I wondered why sometimes a column gets updated and sometimes not. At first sight, I thought the difference is caused by using&amp;nbsp; different versions of Jmp.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Now I found out that the version with&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;As Constant( t_1 = :col1 &amp;lt;&amp;lt; get values );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;just updates the values if the variable t_1 is defined before generating the formula column.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;This video shows how the column behaves when&amp;nbsp; t_1 is not defined before:&lt;/P&gt;&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6340565023112w636h336r898" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6340565023112" data-account="6058004218001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6058004218001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6340565023112w636h336r898');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.jmp.com/t5/video/gallerypage/video-id/6340565023112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

row_count = 10;
dt = New Table("test",
	Add Rows(row_count),
	New Column("col1", set each value(0)),
	New Column("col2", set each value(Random Integer(1,row_count*2))));

wait(0);

t_1 = {};

// disable the next line if you want the column "Formula as column"" to get updated after manual changes of column 1
delete symbols(t_1);

New Column( "compact Formula",	Formula( Contains( :col1 &amp;lt;&amp;lt; Get Values, :col2 ) &amp;gt; 0 ),	Set Property("Color Gradient",{"Stoplight Bad to Good"(1), Range( {0, 1, 0.5} )}),Color Cell by Value);
New Column( "Formula with 2 steps",	Formula( myList = :col1 &amp;lt;&amp;lt; Get Values ; Contains( myList, :col2 ) &amp;gt; 0 ),Set Property("Color Gradient",{"Stoplight Bad to Good"(1), Range( {0, 1, 0.5} )}),Color Cell by Value);
New Column( "Formula with local variable",	Formula( Local( {t0 = :col1 &amp;lt;&amp;lt; get values()}, Contains( t0, :col2 ) &amp;gt; 0 ) ),Set Property("Color Gradient",{"Stoplight Bad to Good"(1), Range( {0, 1, 0.5} )}),Color Cell by Value);
New Column( "Formula As Constant",	Formula(As Constant( t_1 = :col1 &amp;lt;&amp;lt; get values );		Contains( t_1, :col2 ) &amp;gt; 0),Set Property("Color Gradient",{"Stoplight Bad to Good"(1), Range( {0, 1, 0.5} )}),Color Cell by Value);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Nov 2023 16:49:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Differentiate-between-entire-column-and-current-row/m-p/694595#M87971</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-11-05T16:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: Differentiate between entire column and current row</title>
      <link>https://community.jmp.com/t5/Discussions/Differentiate-between-entire-column-and-current-row/m-p/798277#M97402</link>
      <description>&lt;P&gt;JMP18.1 -&amp;gt; same.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2024 14:35:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Differentiate-between-entire-column-and-current-row/m-p/798277#M97402</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-09-12T14:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: Differentiate between entire column and current row</title>
      <link>https://community.jmp.com/t5/Discussions/Differentiate-between-entire-column-and-current-row/m-p/929874#M108691</link>
      <description>&lt;P&gt;JMP 19.0.4 -&amp;gt; the same issues.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Feb 2026 17:49:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Differentiate-between-entire-column-and-current-row/m-p/929874#M108691</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2026-02-09T17:49:23Z</dc:date>
    </item>
  </channel>
</rss>

