<?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: Tabulate specific values from column in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Tabulate-specific-values-from-column/m-p/422756#M67188</link>
    <description>&lt;P&gt;Hi txnelson, thank you for your response.&lt;/P&gt;&lt;P&gt;However, is it possible that the Column% values would still be like this?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="29755_0-1633045017170.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/36212i2F023A264DEC40AA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="29755_0-1633045017170.png" alt="29755_0-1633045017170.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Sep 2021 23:54:41 GMT</pubDate>
    <dc:creator>29755</dc:creator>
    <dc:date>2021-09-30T23:54:41Z</dc:date>
    <item>
      <title>Tabulate specific values from column</title>
      <link>https://community.jmp.com/t5/Discussions/Tabulate-specific-values-from-column/m-p/422442#M67153</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this Air Traffic.jmp file as my example, so what I wanted to do is to tabulate the data with only the specified values needed but it need to retain its original Column % value.&lt;/P&gt;&lt;P&gt;I tried selecting the needed values then subset into another table but ends up having 100 Column % value. I also tried hiding and excluding but also got 100 Column % value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my attached file, my needed values for tabulating are Alaska, America West and American only.&lt;/P&gt;&lt;P&gt;Is there any ways to do this?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="29755_0-1632996765607.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/36185i13DCBD8F60E604D9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="29755_0-1632996765607.png" alt="29755_0-1632996765607.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:17:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Tabulate-specific-values-from-column/m-p/422442#M67153</guid>
      <dc:creator>29755</dc:creator>
      <dc:date>2023-06-11T11:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: Tabulate specific values from column</title>
      <link>https://community.jmp.com/t5/Discussions/Tabulate-specific-values-from-column/m-p/422458#M67155</link>
      <description>&lt;P&gt;You will need to run Tabulate twice, and subset&amp;nbsp; the desired airline data between the tabulates&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Create the Tabulate as you have above&lt;/LI&gt;
&lt;LI&gt;Make the Tabulate display into a data table.&amp;nbsp; Go to the red triangle and select "Make into Data Table"&lt;/LI&gt;
&lt;LI&gt;In the new table, select the rows for Alaska, America West and American.&lt;/LI&gt;
&lt;LI&gt;Subset the data table using&amp;nbsp; &amp;nbsp;Tables=&amp;gt;Subset&amp;nbsp; and keep only the selected rows&lt;/LI&gt;
&lt;LI&gt;On the new data table run the Tabulate platform.
&lt;OL&gt;
&lt;LI&gt;Drag the Airline column to the Drop Zone for Rows&lt;/LI&gt;
&lt;LI&gt;Drag the Column % column to the N&amp;nbsp; in the Statistic column&lt;/LI&gt;
&lt;LI&gt;Right click on the Column % label and select&amp;nbsp; &amp;nbsp;"Remove Column Label"&lt;/LI&gt;
&lt;LI&gt;Right click on the Sum label and select&amp;nbsp; "Change Item Label"&lt;/LI&gt;
&lt;LI&gt;Change the label to&amp;nbsp; &amp;nbsp;"Column %"&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1633000634238.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/36187iA0FA01DC3723DF06/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1633000634238.png" alt="txnelson_0-1633000634238.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is a script that performs the above operations&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);

// Open Data Table: Air Traffic.jmp
// → Data Table( "Air Traffic" )
dt = Open( "$SAMPLE_DATA/Air Traffic.jmp" );

tab = dt &amp;lt;&amp;lt; Tabulate(
	Add Table(
		Column Table( Statistics( Column % ) ),
		Row Table( Grouping Columns( :Airline ) )
	)
);
dtCalc = tab &amp;lt;&amp;lt; make into data table;

dtCalc &amp;lt;&amp;lt; select where( :Airline == "Alaska" | :Airline == "America West" | 
	:Airline == "American"
);

dtSub = dtCalc &amp;lt;&amp;lt; Subset( selected rows( 1 ), selected columns( 0 ) );

dtSub &amp;lt;&amp;lt; Tabulate(
	Remove Column Label( Analysis Columns( Column % ) ),
	Show Control Panel( 0 ),
	Add Table(
		Column Table( Analysis Columns( :Column % ), Statistics( Column % ) ),
		Row Table( Grouping Columns( :Airline ) )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 11:28:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Tabulate-specific-values-from-column/m-p/422458#M67155</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-09-30T11:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Tabulate specific values from column</title>
      <link>https://community.jmp.com/t5/Discussions/Tabulate-specific-values-from-column/m-p/422756#M67188</link>
      <description>&lt;P&gt;Hi txnelson, thank you for your response.&lt;/P&gt;&lt;P&gt;However, is it possible that the Column% values would still be like this?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="29755_0-1633045017170.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/36212i2F023A264DEC40AA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="29755_0-1633045017170.png" alt="29755_0-1633045017170.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 23:54:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Tabulate-specific-values-from-column/m-p/422756#M67188</guid>
      <dc:creator>29755</dc:creator>
      <dc:date>2021-09-30T23:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: Tabulate specific values from column</title>
      <link>https://community.jmp.com/t5/Discussions/Tabulate-specific-values-from-column/m-p/422775#M67190</link>
      <description>&lt;P&gt;My Error or rather JMP's funky interpretation.&amp;nbsp; Because of the way Tabulate works, it uses the specific names to key actions, and by changing the label name to Column %, Tabulate recalculated the value.&amp;nbsp; So if the label is changed to "The Column %" it does not do the recalcuation.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1633053150339.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/36213iE7BD2721F199190B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1633053150339.png" alt="txnelson_0-1633053150339.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);

// Open Data Table: Air Traffic.jmp
// → Data Table( "Air Traffic" )
dt = Open( "$SAMPLE_DATA/Air Traffic.jmp" );

tab = dt &amp;lt;&amp;lt; Tabulate(
	Add Table(
		Column Table( Statistics( Column % ) ),
		Row Table( Grouping Columns( :Airline ) )
	)
);
dtCalc = tab &amp;lt;&amp;lt; make into data table;

dtCalc &amp;lt;&amp;lt; select where( :Airline == "Alaska" | :Airline == "America West" | 
	:Airline == "American"
);

dtSub = dtCalc &amp;lt;&amp;lt; Subset( selected rows( 1 ), selected columns( 0 ) );

dtSub &amp;lt;&amp;lt; Tabulate(
	Change Item Label( Statistics( Sum, "The Column %" ) ),
	Remove Column Label( Analysis Columns( Column % ) ),
	Show Control Panel( 0 ),
	Add Table(
		Column Table( Analysis Columns( :Column % ) ),
		Row Table( Grouping Columns( :Airline ) )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 01:52:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Tabulate-specific-values-from-column/m-p/422775#M67190</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-10-01T01:52:59Z</dc:date>
    </item>
  </channel>
</rss>

