<?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: Convert tab headers in tabulate to column groups JMP19 in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Convert-tab-headers-in-tabulate-to-column-groups-JMP19/m-p/919845#M107882</link>
    <description>&lt;P&gt;But do it in scripting it suits me also, but I didn't get a JSL command to retrieve the list of all current tags in the table or something else to achieve the result I wanted&lt;/P&gt;</description>
    <pubDate>Tue, 16 Dec 2025 14:20:07 GMT</pubDate>
    <dc:creator>SophieCuvillier</dc:creator>
    <dc:date>2025-12-16T14:20:07Z</dc:date>
    <item>
      <title>Convert tab headers in tabulate to column groups JMP19</title>
      <link>https://community.jmp.com/t5/Discussions/Convert-tab-headers-in-tabulate-to-column-groups-JMP19/m-p/919810#M107880</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In JMP19 there is very nice new functionality where grouping columns create column headers in the data table.&lt;/P&gt;
&lt;P&gt;Thus, we wanted to know if when we do a tabulate , and we do "Make into data table" , can we keep the headers ?&lt;/P&gt;
&lt;P&gt;I know we can keep the headers as tags, but otherwise can I transform the tags to group columns?&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/Car Poll.jmp" );
obj = dt &amp;lt;&amp;lt; Tabulate(
	Add Table(
		Column Table( Grouping Columns( :sex, :marital status ) ),
		Row Table( Grouping Columns( :country, :size ) )
	)
);

tbl = obj &amp;lt;&amp;lt; make into data table();&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Dec 2025 11:14:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Convert-tab-headers-in-tabulate-to-column-groups-JMP19/m-p/919810#M107880</guid>
      <dc:creator>SophieCuvillier</dc:creator>
      <dc:date>2025-12-16T11:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: Convert tab headers in tabulate to column groups JMP19</title>
      <link>https://community.jmp.com/t5/Discussions/Convert-tab-headers-in-tabulate-to-column-groups-JMP19/m-p/919832#M107881</link>
      <description>&lt;P&gt;I don't think you can do it without scripting, but you could make a wish list item?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Dec 2025 13:00:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Convert-tab-headers-in-tabulate-to-column-groups-JMP19/m-p/919832#M107881</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-12-16T13:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Convert tab headers in tabulate to column groups JMP19</title>
      <link>https://community.jmp.com/t5/Discussions/Convert-tab-headers-in-tabulate-to-column-groups-JMP19/m-p/919845#M107882</link>
      <description>&lt;P&gt;But do it in scripting it suits me also, but I didn't get a JSL command to retrieve the list of all current tags in the table or something else to achieve the result I wanted&lt;/P&gt;</description>
      <pubDate>Tue, 16 Dec 2025 14:20:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Convert-tab-headers-in-tabulate-to-column-groups-JMP19/m-p/919845#M107882</guid>
      <dc:creator>SophieCuvillier</dc:creator>
      <dc:date>2025-12-16T14:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Convert tab headers in tabulate to column groups JMP19</title>
      <link>https://community.jmp.com/t5/Discussions/Convert-tab-headers-in-tabulate-to-column-groups-JMP19/m-p/919858#M107884</link>
      <description>&lt;P&gt;You could build them from column properties (there definitely should be &amp;lt;&amp;lt; Get Tags or something similar)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Car Poll.jmp");
tab = dt &amp;lt;&amp;lt; Tabulate(
	Add Table(
		Column Table(Grouping Columns(:sex, :marital status)),
		Row Table(Grouping Columns(:country, :size))
	)
);

dt_tab = tab &amp;lt;&amp;lt; make into data table;

tags = {};
For Each({colname}, dt_tab &amp;lt;&amp;lt; Get Column Names("String"),
	prop = Column(dt_tab, colname) &amp;lt;&amp;lt; Get Property("Tags");
	If(!Is Empty(prop),
		Insert Into(tags, prop);	
	);
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And build it from there while taking into account the hierarchy of the groups.&lt;/P&gt;
&lt;P&gt;Other option could be to utilize Full Path Column Name(1) but it does affect the column names (and tags)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1765896185094.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/89037iDDCA99A3BBD6E2C1/image-size/large?v=v2&amp;amp;px=999" role="button" title="jthi_0-1765896185094.png" alt="jthi_0-1765896185094.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Dec 2025 14:43:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Convert-tab-headers-in-tabulate-to-column-groups-JMP19/m-p/919858#M107884</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-12-16T14:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: Convert tab headers in tabulate to column groups JMP19</title>
      <link>https://community.jmp.com/t5/Discussions/Convert-tab-headers-in-tabulate-to-column-groups-JMP19/m-p/920986#M107976</link>
      <description>&lt;P&gt;Thank you I will do that and add in the wishlist&lt;/P&gt;</description>
      <pubDate>Mon, 22 Dec 2025 08:29:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Convert-tab-headers-in-tabulate-to-column-groups-JMP19/m-p/920986#M107976</guid>
      <dc:creator>SophieCuvillier</dc:creator>
      <dc:date>2025-12-22T08:29:06Z</dc:date>
    </item>
  </channel>
</rss>

