<?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: Adicionando/Preenchendo intervalo de datas nos eventos in Brasil</title>
    <link>https://community.qlik.com/t5/Brasil/Adicionando-Preenchendo-intervalo-de-datas-nos-eventos/m-p/1492209#M55083</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Muito bom. Parabéns.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Mar 2017 14:59:48 GMT</pubDate>
    <dc:creator>israelcsouza</dc:creator>
    <dc:date>2017-03-10T14:59:48Z</dc:date>
    <item>
      <title>Adicionando/Preenchendo intervalo de datas nos eventos</title>
      <link>https://community.qlik.com/t5/Brasil/Adicionando-Preenchendo-intervalo-de-datas-nos-eventos/m-p/1492208#M55082</link>
      <description>&lt;P&gt;&lt;FONT size="6"&gt;&lt;STRONG&gt;Caso de uso:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Necessário gerar os intervalos de datas com os critérios de início e final dos eventos&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;FONT size="5"&gt;&lt;STRONG&gt;Cenário atual:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/155934_Capturar.JPG" border="0" alt="Capturar.JPG" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="5"&gt;&lt;STRONG&gt;Cenário desejado:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/155935_Capturar2.JPG" border="0" alt="Capturar2.JPG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="5"&gt;&lt;STRONG&gt;Solução:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;&lt;STRONG&gt;Via script:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Preenchendo_Intervalos_Datas:
LOAD
  CodEvento,DataInicio,DataFinal,Evento,
  IterNo() as 'Dia',
  DataFinal - DataInicio + 1 as 'TotalDias',
  Date( DataInicio + IterNo() - 1 ) as 'Data'
While DataInicio + IterNo() - 1 &amp;lt;= DataFinal;

Eventos_Calendario:
LOAD
    [CodEvento],
    [DataInicio],
    [DataFinal],
    [Evento]
FROM [lib://Qlik_suporte/plan_datas_eventos.xlsx] (ooxml, embedded labels, table is dados);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="5"&gt;&lt;STRONG&gt;Modelo com Inline*:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Preenchendo_Intervalos_Datas:
LOAD
  CodEvento,DataInicio,DataFinal,Evento,
  IterNo() as 'Dia',
  DataFinal - DataInicio + 1 as 'TotalDias',
  Date( DataInicio + IterNo() - 1 ) as 'Data'
While DataInicio + IterNo() - 1 &amp;lt;= DataFinal;

Eventos_Calendario:
LOAD * Inline [
  CodEvento, DataInicio, DataFinal, Evento
  1, 25/02/2017, 27/02/2017, Carnaval
  2, 12/06/2017, 13/06/2017, Festival XYZ
  3, 06/09/2017, 07/09/2017, Festa da Empresa
  4, 04/10/2017, 05/10/2017, Congresso XPTO
  5, 26/12/2017, 29/12/2017, Recesso Final de Ano
];&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;* Só copiar e colar na aplicação para testar.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;gt; Confira outras publicações de MARIO SOARES:&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Brasil/Publica%C3%A7%C3%B5es-de-MARIO-SOARES-Documentos-Aplicativos-e-Arquivos/gpm-p/1464214" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Brasil/Publica%C3%A7%C3%B5es-de-MARIO-SOARES-Documentos-Aplicativos-e-Arquivos/gpm-p/1464214&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 18:56:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Adicionando-Preenchendo-intervalo-de-datas-nos-eventos/m-p/1492208#M55082</guid>
      <dc:creator>mario_sergio_ti</dc:creator>
      <dc:date>2020-04-30T18:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: Adicionando/Preenchendo intervalo de datas nos eventos</title>
      <link>https://community.qlik.com/t5/Brasil/Adicionando-Preenchendo-intervalo-de-datas-nos-eventos/m-p/1492209#M55083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Muito bom. Parabéns.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2017 14:59:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Adicionando-Preenchendo-intervalo-de-datas-nos-eventos/m-p/1492209#M55083</guid>
      <dc:creator>israelcsouza</dc:creator>
      <dc:date>2017-03-10T14:59:48Z</dc:date>
    </item>
  </channel>
</rss>

