<?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: How to make group X display only certain items. in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-make-group-X-display-only-certain-items/m-p/848278#M102359</link>
    <description>&lt;P&gt;You could add local data filter if something like this what you are looking for&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1742288489764.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/73975iC19089C143E4779A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1742288489764.png" alt="jthi_0-1742288489764.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Graph Builder(
	Size(528, 500),
	Show Control Panel(0),
	Variables(X(:sex), X(:age, Position(1)), Y(:height), Group X(:age)),
	Elements(Points(X(1), X(2), Y, Legend(10))),
	Local Data Filter(
		Add Filter(
			columns(:age),
			Where(:age == {13, 16}),
			Display(:age, N Items(6))
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or if you are scripting, you can use Where&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(
	Size(528, 500),
	Show Control Panel(0),
	Variables(X(:sex), X(:age, Position(1)), Y(:height), Group X(:age)),
	Elements(Points(X(1), X(2), Y, Legend(10))),
	Where(Contains({13, 16}, :age))
);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 18 Mar 2025 09:03:08 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2025-03-18T09:03:08Z</dc:date>
    <item>
      <title>How to make group X display only certain items.</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-make-group-X-display-only-certain-items/m-p/848267#M102358</link>
      <description>&lt;P&gt;&lt;SPAN&gt;When using Group X, all sections are cut out in the table. How should I modify the following JSL so that Group X only displays 13 and 16?"&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
Graph Builder(
	Size( 528, 500 ),
	Show Control Panel( 0 ),
	Variables( X( :sex ), X( :age, Position( 1 ) ), Y( :height ), Group X( :age ) ),
	Elements( Points( X( 1 ), X( 2 ), Y, Legend( 10 ) ) )
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2025 08:59:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-make-group-X-display-only-certain-items/m-p/848267#M102358</guid>
      <dc:creator>BabyDoragon</dc:creator>
      <dc:date>2025-03-18T08:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to make group X display only certain items.</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-make-group-X-display-only-certain-items/m-p/848278#M102359</link>
      <description>&lt;P&gt;You could add local data filter if something like this what you are looking for&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1742288489764.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/73975iC19089C143E4779A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1742288489764.png" alt="jthi_0-1742288489764.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Graph Builder(
	Size(528, 500),
	Show Control Panel(0),
	Variables(X(:sex), X(:age, Position(1)), Y(:height), Group X(:age)),
	Elements(Points(X(1), X(2), Y, Legend(10))),
	Local Data Filter(
		Add Filter(
			columns(:age),
			Where(:age == {13, 16}),
			Display(:age, N Items(6))
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or if you are scripting, you can use Where&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(
	Size(528, 500),
	Show Control Panel(0),
	Variables(X(:sex), X(:age, Position(1)), Y(:height), Group X(:age)),
	Elements(Points(X(1), X(2), Y, Legend(10))),
	Where(Contains({13, 16}, :age))
);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 18 Mar 2025 09:03:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-make-group-X-display-only-certain-items/m-p/848278#M102359</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-03-18T09:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to make group X display only certain items.</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-make-group-X-display-only-certain-items/m-p/848279#M102360</link>
      <description>&lt;P&gt;In the second method you mentioned, it is a positive list, show only 13 and 16.&lt;BR /&gt;However, is it possible to make it a negative list, for example, ignoring 17 in any situation.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2025 09:14:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-make-group-X-display-only-certain-items/m-p/848279#M102360</guid>
      <dc:creator>BabyDoragon</dc:creator>
      <dc:date>2025-03-18T09:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to make group X display only certain items.</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-make-group-X-display-only-certain-items/m-p/848281#M102361</link>
      <description>&lt;P&gt;Just switch the logic by using not "!"&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(
	Size(528, 500),
	Show Control Panel(0),
	Variables(X(:sex), X(:age, Position(1)), Y(:height), Group X(:age)),
	Elements(Points(X(1), X(2), Y, Legend(10))),
	Where(!Contains({13, 16}, :age))
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 18 Mar 2025 09:44:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-make-group-X-display-only-certain-items/m-p/848281#M102361</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2025-03-18T09:44:27Z</dc:date>
    </item>
  </channel>
</rss>

