<?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 Re: Change Where filter in Graph Builder in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Change-Where-filter-in-Graph-Builder/m-p/905843#M106421</link>
    <description>&lt;P&gt;If it's OK to create a new graph, you can work with the script,&amp;nbsp; replace the &lt;FONT face="courier new,courier"&gt;Where()&lt;/FONT&gt; expression with a new on and then evaluate the new code:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
gb = dt &amp;lt;&amp;lt; Graph Builder(
	Variables( X( :weight ), Y( :height ), Color( :sex ) ),
	Elements( Points( X, Y, Legend( 3 ) ) ),
	Where( :sex == "F" )
);
script = gb &amp;lt;&amp;lt; get script;

whereexpr= extract expr(script, Where(wildList()));

Substitute into (script, Name Expr(where expr), Expr(___W___));
&lt;BR /&gt;// later:
new whereexpr = Expr(Where( :sex == "M" ));
Substitute into (script,  Expr(___W___) , Name Expr(new whereexpr));
Eval(script)&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 03 Oct 2025 19:30:10 GMT</pubDate>
    <dc:creator>hogi</dc:creator>
    <dc:date>2025-10-03T19:30:10Z</dc:date>
    <item>
      <title>Change Where filter in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/Change-Where-filter-in-Graph-Builder/m-p/905827#M106419</link>
      <description>&lt;P&gt;If I have created a chart with a Where() clause, how do I change that filter from a script?&lt;/P&gt;
&lt;P&gt;I can do it with a local data filter, but can't seem to change the Where clause although I can read it using&amp;nbsp;&lt;FONT face="andale mono,times"&gt;&lt;SPAN&gt;&amp;lt;&amp;lt; &lt;/SPAN&gt;Get Where Expr&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Example:&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 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
gb = dt &amp;lt;&amp;lt; Graph Builder(
	Variables( X( :weight ), Y( :height ), Color( :sex ) ),
	Elements( Points( X, Y, Legend( 3 ) ) ),
	Where( :sex == "F" )
);
gb &amp;lt;&amp;lt; get where expr; // outputs :sex == "F"&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;How do change &lt;FONT face="andale mono,times"&gt;gb&lt;/FONT&gt; to be restricted to &lt;FONT face="andale mono,times"&gt;:sex == "M"&lt;/FONT&gt; later in the script?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm using JMP 18.2.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Oct 2025 16:49:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Change-Where-filter-in-Graph-Builder/m-p/905827#M106419</guid>
      <dc:creator>matth1</dc:creator>
      <dc:date>2025-10-03T16:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: Change Where filter in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/Change-Where-filter-in-Graph-Builder/m-p/905840#M106420</link>
      <description>&lt;P&gt;I don't think you can change the Where expression in already created graph builder. If you wish to change those, you could use local data filter which is hidden and update the selections on that.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Oct 2025 17:23:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Change-Where-filter-in-Graph-Builder/m-p/905840#M106420</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-10-03T17:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: Change Where filter in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/Change-Where-filter-in-Graph-Builder/m-p/905843#M106421</link>
      <description>&lt;P&gt;If it's OK to create a new graph, you can work with the script,&amp;nbsp; replace the &lt;FONT face="courier new,courier"&gt;Where()&lt;/FONT&gt; expression with a new on and then evaluate the new code:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
gb = dt &amp;lt;&amp;lt; Graph Builder(
	Variables( X( :weight ), Y( :height ), Color( :sex ) ),
	Elements( Points( X, Y, Legend( 3 ) ) ),
	Where( :sex == "F" )
);
script = gb &amp;lt;&amp;lt; get script;

whereexpr= extract expr(script, Where(wildList()));

Substitute into (script, Name Expr(where expr), Expr(___W___));
&lt;BR /&gt;// later:
new whereexpr = Expr(Where( :sex == "M" ));
Substitute into (script,  Expr(___W___) , Name Expr(new whereexpr));
Eval(script)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 03 Oct 2025 19:30:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Change-Where-filter-in-Graph-Builder/m-p/905843#M106421</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-10-03T19:30:10Z</dc:date>
    </item>
  </channel>
</rss>

