<?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: Import excel spreadsheet data with data in second row in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Import-excel-spreadsheet-data-with-data-in-second-row/m-p/1949956#M78282</link>
    <description>&lt;P&gt;Paula, boa noite!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Veja se lhe atende:&lt;/P&gt;
&lt;LI-CODE lang="php"&gt;//Carga --&amp;gt; Ajustando o código (ID) do produto
T1:
LOAD
    IF(NOT ISNULL(codigo),codigo+RowNo())	AS codigo,
    nome									AS nome
FROM [lib://telegram/Pasta1.xlsx] (ooxml, embedded labels, table is Plan1);

//Completando as linhas 'codigo' em branco com o código da linha acima
NOCONCATENATE
T2:
LOAD
	ALT(codigo,PEEK('codigo'))				AS codigo,
    nome									AS nome
RESIDENT T1;

DROP TABLE T1;

//Juntando as especificações do produto que ficam na linha abaixo
NOCONCATENATE
T3:
LOAD
	codigo									AS codigo,
    CONCAT(nome,' ',-LEN(nome))				AS nome
RESIDENT T2
GROUP BY codigo;

DROP TABLE T2;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Resultado:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TiagoCardoso_0-1656547964669.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/82979i95F23410380229F7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TiagoCardoso_0-1656547964669.png" alt="TiagoCardoso_0-1656547964669.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jun 2022 00:12:54 GMT</pubDate>
    <dc:creator>TiagoCardoso</dc:creator>
    <dc:date>2022-06-30T00:12:54Z</dc:date>
    <item>
      <title>Import excel spreadsheet data with data in second row</title>
      <link>https://community.qlik.com/t5/App-Development/Import-excel-spreadsheet-data-with-data-in-second-row/m-p/1949918#M78280</link>
      <description>&lt;PRE id="tw-target-text" class="tw-data-text tw-text-large tw-ta" dir="ltr" data-placeholder="Tradução"&gt;&lt;SPAN class="Y2IQFc"&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;Preciso abrir a planilha do excel mas o nome de alguns está na segunda linha. &lt;/FONT&gt;&lt;FONT style="vertical-align: inherit;"&gt;Como eu lido com essa situação.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;PRE id="tw-target-text" class="tw-data-text tw-text-large tw-ta" dir="ltr" data-placeholder="Tradução"&gt;&lt;SPAN class="Y2IQFc"&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;planilha anexada&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;TABLE width="664px"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="74.6875px" height="25px"&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;código&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD width="61.9097px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="526.285px" height="25px"&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;nome&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="74.6875px" height="47px"&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;32131000&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD width="61.9097px" height="47px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="526.285px" height="47px"&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;Tinta Tempera Guache 250ml Ref.014-020&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="74.6875px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="61.9097px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="526.285px" height="25px"&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;Magenta&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="74.6875px" height="47px"&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;32131000&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD width="61.9097px" height="47px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="526.285px" height="47px"&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;Tinta Tempera Guache 500ml/540g Verde&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="74.6875px" height="47px"&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;32131000&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD width="61.9097px" height="47px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="526.285px" height="47px"&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;Tinta p/Tecido Fosca 37ml Ref.4140-589 Am&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="74.6875px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="61.9097px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="526.285px" height="25px"&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;Canário&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="74.6875px" height="47px"&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;32131000&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD width="61.9097px" height="47px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="526.285px" height="47px"&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;Tinta Tempera Guache 500ml/540g Amarelo&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="74.6875px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="61.9097px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="526.285px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;PRE id="tw-target-text" class="tw-data-text tw-text-large tw-ta" dir="ltr" data-placeholder="Tradução"&gt;&lt;SPAN class="Y2IQFc"&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;resultado desejado&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="524px"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="74.6875px"&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;código&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD width="61.8576px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="386.337px"&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;nome&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="74.6875px"&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;32131000&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD width="61.8576px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="386.337px"&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;Tinta Tempera Guache 250ml Ref.014-020 Magenta&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="74.6875px"&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;32131000&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD width="61.8576px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="386.337px"&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;Tinta Tempera Guache 500ml/540g Verde&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="74.6875px"&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;32131000&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD width="61.8576px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="386.337px"&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;Tinta p/Tecido Fosca 37ml Ref.4140-589 Am Canario&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="74.6875px"&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;32131000&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD width="61.8576px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="386.337px"&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;Tinta Tempera Guache 500ml/540g Amarelo&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Wed, 29 Jun 2022 20:08:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Import-excel-spreadsheet-data-with-data-in-second-row/m-p/1949918#M78280</guid>
      <dc:creator>Paula1</dc:creator>
      <dc:date>2022-06-29T20:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: Import excel spreadsheet data with data in second row</title>
      <link>https://community.qlik.com/t5/App-Development/Import-excel-spreadsheet-data-with-data-in-second-row/m-p/1949956#M78282</link>
      <description>&lt;P&gt;Paula, boa noite!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Veja se lhe atende:&lt;/P&gt;
&lt;LI-CODE lang="php"&gt;//Carga --&amp;gt; Ajustando o código (ID) do produto
T1:
LOAD
    IF(NOT ISNULL(codigo),codigo+RowNo())	AS codigo,
    nome									AS nome
FROM [lib://telegram/Pasta1.xlsx] (ooxml, embedded labels, table is Plan1);

//Completando as linhas 'codigo' em branco com o código da linha acima
NOCONCATENATE
T2:
LOAD
	ALT(codigo,PEEK('codigo'))				AS codigo,
    nome									AS nome
RESIDENT T1;

DROP TABLE T1;

//Juntando as especificações do produto que ficam na linha abaixo
NOCONCATENATE
T3:
LOAD
	codigo									AS codigo,
    CONCAT(nome,' ',-LEN(nome))				AS nome
RESIDENT T2
GROUP BY codigo;

DROP TABLE T2;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Resultado:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TiagoCardoso_0-1656547964669.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/82979i95F23410380229F7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TiagoCardoso_0-1656547964669.png" alt="TiagoCardoso_0-1656547964669.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2022 00:12:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Import-excel-spreadsheet-data-with-data-in-second-row/m-p/1949956#M78282</guid>
      <dc:creator>TiagoCardoso</dc:creator>
      <dc:date>2022-06-30T00:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: Import excel spreadsheet data with data in second row</title>
      <link>https://community.qlik.com/t5/App-Development/Import-excel-spreadsheet-data-with-data-in-second-row/m-p/1950303#M78303</link>
      <description>&lt;P&gt;OBRIGADO&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2022 13:11:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Import-excel-spreadsheet-data-with-data-in-second-row/m-p/1950303#M78303</guid>
      <dc:creator>Paula1</dc:creator>
      <dc:date>2022-06-30T13:11:14Z</dc:date>
    </item>
  </channel>
</rss>

