<?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: Create a new table from another table by column range in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Create-a-new-table-from-another-table-by-column-range/m-p/2015995#M83930</link>
    <description>&lt;P&gt;Al momento de crear una segunda tabla hazlo asi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tab2:&lt;/P&gt;
&lt;P&gt;Load&lt;/P&gt;
&lt;P&gt;Col2,&lt;/P&gt;
&lt;P&gt;Col3&lt;/P&gt;
&lt;P&gt;resident&amp;nbsp;&lt;SPAN&gt;main_tab;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Dec 2022 14:26:54 GMT</pubDate>
    <dc:creator>dserey</dc:creator>
    <dc:date>2022-12-13T14:26:54Z</dc:date>
    <item>
      <title>Create a new table from another table by column range</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-new-table-from-another-table-by-column-range/m-p/2015950#M83926</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;How can I create a new table (new_tab) from a given table (main_tab) by a given range of columns?&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;main_tab&lt;/STRONG&gt;:&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;col1&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;col2&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;col3&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;col4&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;col5&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;col6&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;aaa&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;bbb&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;ccc&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;111&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;222&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;333&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;ccc&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;ddd&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;aaa&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;222&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;111&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;555&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;first_col=2; //2nd column is col2&lt;/P&gt;
&lt;P&gt;num_columns=2; //next 2 columns from col=2 (col2) are &lt;U&gt;col2 and col3&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;new_tab&lt;/STRONG&gt;:&lt;/P&gt;
&lt;TABLE border="1"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;col2&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;col3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;bbb&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;ccc&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;ddd&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;aaa&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Tue, 13 Dec 2022 13:30:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-new-table-from-another-table-by-column-range/m-p/2015950#M83926</guid>
      <dc:creator>amaaiia</dc:creator>
      <dc:date>2022-12-13T13:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: Create a new table from another table by column range</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-new-table-from-another-table-by-column-range/m-p/2015995#M83930</link>
      <description>&lt;P&gt;Al momento de crear una segunda tabla hazlo asi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tab2:&lt;/P&gt;
&lt;P&gt;Load&lt;/P&gt;
&lt;P&gt;Col2,&lt;/P&gt;
&lt;P&gt;Col3&lt;/P&gt;
&lt;P&gt;resident&amp;nbsp;&lt;SPAN&gt;main_tab;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 14:26:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-new-table-from-another-table-by-column-range/m-p/2015995#M83930</guid>
      <dc:creator>dserey</dc:creator>
      <dc:date>2022-12-13T14:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Create a new table from another table by column range</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-new-table-from-another-table-by-column-range/m-p/2016011#M83934</link>
      <description>&lt;P&gt;Pero la elección de las columnas es dinámica. Quiero decir, en este caso ha coincidido que es col2 y col3, pero si&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;first_col&lt;/STRONG&gt;=3&lt;/EM&gt; y&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;num_columns&lt;/STRONG&gt;=4&lt;/EM&gt;, quiero que las columnas elegidas sean col3, col4, col5, col6 (las 4 columnas empezando por al que está en la posición 3). Es decir, coger la columna en la posición &lt;STRONG&gt;first_col&lt;/STRONG&gt;, y coger las &lt;STRONG&gt;num_columns&lt;/STRONG&gt; siguientes columnas.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 14:42:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-new-table-from-another-table-by-column-range/m-p/2016011#M83934</guid>
      <dc:creator>amaaiia</dc:creator>
      <dc:date>2022-12-13T14:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: Create a new table from another table by column range</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-new-table-from-another-table-by-column-range/m-p/2016487#M83952</link>
      <description>&lt;P&gt;Ok, si lo que quieres es que en el grafico sea dinamico y no en el script, puedes hacer lo siguiente:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Crear 5 variables, la primera será para seleccionar que columna quieres, y las otras 4 debes hacer un calculo para definir las siguientes columnas:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Col1= 'Col'+ ColInicial+1&lt;/P&gt;
&lt;P&gt;Col2= 'Col'+ ColInicial+2&lt;/P&gt;
&lt;P&gt;Col3= 'Col'+ ColInicial+3&lt;/P&gt;
&lt;P&gt;Col4= 'Col'+ ColInicial+4&lt;/P&gt;
&lt;P&gt;Luego lo unico que debes hacer, en las dimenciones poner estas variables en lugar de nombrar un campo.&lt;/P&gt;
&lt;P&gt;Saludos&lt;/P&gt;
&lt;P&gt;David&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 12:10:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-new-table-from-another-table-by-column-range/m-p/2016487#M83952</guid>
      <dc:creator>dserey</dc:creator>
      <dc:date>2022-12-14T12:10:11Z</dc:date>
    </item>
  </channel>
</rss>

