<?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: Column Group with variable Column Count in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Column-Group-with-variable-Column-Count/m-p/559909#M77343</link>
    <description>&lt;P&gt;75 is the number of columns to include in the group.&amp;nbsp; Your code worked perfectly.&amp;nbsp; Thank you!&lt;/P&gt;</description>
    <pubDate>Tue, 25 Oct 2022 13:28:50 GMT</pubDate>
    <dc:creator>Phil_Nash</dc:creator>
    <dc:date>2022-10-25T13:28:50Z</dc:date>
    <item>
      <title>Column Group with variable Column Count</title>
      <link>https://community.jmp.com/t5/Discussions/Column-Group-with-variable-Column-Count/m-p/559877#M77339</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Query_DT &amp;lt;&amp;lt; GROUP COLUMNS("WEEKS",COLUMN(12),&lt;STRONG&gt;75&lt;/STRONG&gt;);
COLGRP = Query_DT &amp;lt;&amp;lt; GET COLUMN GROUP ("WEEKS");

Query_Stack = Query_DT &amp;lt;&amp;lt; STACK(columns(COLGRP),
	Source Label Column( "Label" ),
	Stacked Data Column( "Data" )
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I need to group columns to create a stacked table..&amp;nbsp; the problem is that the number of columns can vary.&amp;nbsp; This code works fine, except in the Group Columns function I need the 75 to be a variable count of columns from that same starting position.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't seem to find exactly what I'm looking for in either the Scripting Library or the search here.&amp;nbsp; Any ideas?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 16:00:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Column-Group-with-variable-Column-Count/m-p/559877#M77339</guid>
      <dc:creator>Phil_Nash</dc:creator>
      <dc:date>2023-06-09T16:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: Column Group with variable Column Count</title>
      <link>https://community.jmp.com/t5/Discussions/Column-Group-with-variable-Column-Count/m-p/559886#M77340</link>
      <description>&lt;P&gt;What is the number 75 based on?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Script below will group columns starting from start_idx column to the last column&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
start_idx = 4;
dt &amp;lt;&amp;lt; Group Columns(Column(start_idx), N Cols(dt) - start_idx + 1);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 25 Oct 2022 12:23:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Column-Group-with-variable-Column-Count/m-p/559886#M77340</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-10-25T12:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: Column Group with variable Column Count</title>
      <link>https://community.jmp.com/t5/Discussions/Column-Group-with-variable-Column-Count/m-p/559909#M77343</link>
      <description>&lt;P&gt;75 is the number of columns to include in the group.&amp;nbsp; Your code worked perfectly.&amp;nbsp; Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 13:28:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Column-Group-with-variable-Column-Count/m-p/559909#M77343</guid>
      <dc:creator>Phil_Nash</dc:creator>
      <dc:date>2022-10-25T13:28:50Z</dc:date>
    </item>
  </channel>
</rss>

