<?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: set analysis - período de datas in Brasil</title>
    <link>https://community.qlik.com/t5/Brasil/set-analysis-per%C3%ADodo-de-datas/m-p/1326392#M48065</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Abraço.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Jul 2017 20:04:38 GMT</pubDate>
    <dc:creator>mario_sergio_ti</dc:creator>
    <dc:date>2017-07-04T20:04:38Z</dc:date>
    <item>
      <title>set analysis - período de datas</title>
      <link>https://community.qlik.com/t5/Brasil/set-analysis-per%C3%ADodo-de-datas/m-p/1326387#M48060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ola, boa tarde!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tenho uma planilha com as seguintes informações.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="print.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/169048_print.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;É um controle de entrada e saída. Preciso pegar a primeira entrada, no caso as 12:14 e a ultima saída 15:17, desse dia 17/01/13&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Um set analysis que me traga isso, em um gráfico de barras com uma dimensão de datas por exemplo.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="grafico.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/169073_grafico.PNG" style="height: 221px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;poderiam me ajudar?.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obrigado!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jul 2017 19:12:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/set-analysis-per%C3%ADodo-de-datas/m-p/1326387#M48060</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-04T19:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis - período de datas</title>
      <link>https://community.qlik.com/t5/Brasil/set-analysis-per%C3%ADodo-de-datas/m-p/1326388#M48061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Amigo;&lt;/P&gt;&lt;P&gt;Creio que poderá simplificar esta situação via script, poderá fazer algo assim;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14991964164076739 jive_text_macro" jivemacro_uid="_14991964164076739"&gt;
&lt;P&gt;TAB_Hour_In_Out:&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Load&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Data,&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Time(Min(Pick( Match(Tipo, 'entrada'), Hora))) As 'Hora Entrada Min',&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Time(Max(Pick( Match(Tipo, 'saida'), Hora))) As 'Hora Saida Max'&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Resident TAB_Data&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Group By Data;&amp;nbsp; &lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obs.:&lt;/P&gt;&lt;P&gt;Considerei campo Data sem extensão de horas, se estiver, utilize Floor() para remover as horas.&lt;/P&gt;&lt;P&gt;TAB_Data é a tabela de origem com os atributos, ajuste para o seu o modelo de dados.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jul 2017 19:27:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/set-analysis-per%C3%ADodo-de-datas/m-p/1326388#M48061</guid>
      <dc:creator>mario_sergio_ti</dc:creator>
      <dc:date>2017-07-04T19:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis - período de datas</title>
      <link>https://community.qlik.com/t5/Brasil/set-analysis-per%C3%ADodo-de-datas/m-p/1326389#M48062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mario,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;O campo data esta sem extensão de horas mesmo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ocorreu o seguinte erro:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="169074" alt="erro.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/169074_erro.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eu quase consegui chegar no resultado, porem fiz de forma diferente, apenas utilizando o gráfico e set analysis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;set analysis:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;entrada = Aggr(Min({$&amp;lt;Tipo = {'entrada'}&amp;gt;}Horas), Tipo)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;saida = Aggr(Max({$&amp;lt;Tipo = {'saida'}&amp;gt;}Horas), Tipo)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Dimensão = Dia&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;IMG __jive_id="169075" alt="com filtro.PNG" class="jive-image image-2" src="/legacyfs/online/169075_com filtro.PNG" style="height: 358px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Porem, se limpo os filtros ele só aparece o dia 16 e 17 aleatorio, veja na print&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;IMG __jive_id="169076" alt="Capturar.PNG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/169076_Capturar.PNG" style="height: 352px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jul 2017 19:52:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/set-analysis-per%C3%ADodo-de-datas/m-p/1326389#M48062</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-04T19:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis - período de datas</title>
      <link>https://community.qlik.com/t5/Brasil/set-analysis-per%C3%ADodo-de-datas/m-p/1326390#M48063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Amigo, tente desta forma:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14991981547579207" jivemacro_uid="_14991981547579207"&gt;
&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt !important; font-style: inherit; background-color: inherit; font-weight: inherit;"&gt;TAB_Hour_In_Out:&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; color: #006699; background-color: inherit; font-size: 9pt !important;"&gt;Load&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background-color: inherit; font-size: 9pt !important;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Data,&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; color: #006699; background-color: inherit; font-size: 9pt !important;"&gt;Time&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background-color: inherit; font-size: 9pt !important;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; color: #006699; background-color: inherit; font-size: 9pt !important;"&gt;Min&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background-color: inherit; font-size: 9pt !important;"&gt;(Pick( Match(Tipo, &lt;/SPAN&gt;&lt;SPAN class="string" style="font-weight: inherit; font-style: inherit; color: blue; background-color: inherit; font-size: 9pt !important;"&gt;'entrada'&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background-color: inherit; font-size: 9pt !important;"&gt;), Hora))) &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; color: #006699; background-color: inherit; font-size: 9pt !important;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background-color: inherit; font-size: 9pt !important;"&gt; &lt;/SPAN&gt;&lt;SPAN class="string" style="font-weight: inherit; font-style: inherit; color: blue; background-color: inherit; font-size: 9pt !important;"&gt;'Hora Entrada Min'&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background-color: inherit; font-size: 9pt !important;"&gt;,&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; color: #006699; background-color: inherit; font-size: 9pt !important;"&gt;Time&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background-color: inherit; font-size: 9pt !important;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; color: #006699; background-color: inherit; font-size: 9pt !important;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background-color: inherit; font-size: 9pt !important;"&gt;(Pick( Match(Tipo, &lt;/SPAN&gt;&lt;SPAN class="string" style="font-weight: inherit; font-style: inherit; color: blue; background-color: inherit; font-size: 9pt !important;"&gt;'saida'&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background-color: inherit; font-size: 9pt !important;"&gt;), Hora))) &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; color: #006699; background-color: inherit; font-size: 9pt !important;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background-color: inherit; font-size: 9pt !important;"&gt; &lt;/SPAN&gt;&lt;SPAN class="string" style="font-weight: inherit; font-style: inherit; color: blue; background-color: inherit; font-size: 9pt !important;"&gt;'Hora Saida Max'&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background-color: inherit; font-size: 9pt !important;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;Resident TAB_Data&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; color: #006699; background-color: inherit; font-size: 9pt !important;"&gt;Group&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background-color: inherit; font-size: 9pt !important;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; color: #006699; background-color: inherit; font-size: 9pt !important;"&gt;By&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background-color: inherit; font-size: 9pt !important;"&gt; Data; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt !important; font-style: inherit; background-color: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt !important; font-style: inherit; background-color: inherit; font-weight: inherit;"&gt;Eu tinha ajustado a expressão na resposta acima, pois o Max/Min não devem estar dentro do Pick e Match por conta do agrupamento.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt !important; font-style: inherit; background-color: inherit; font-weight: inherit;"&gt;Obs.: Não deixe de ajustar o nome da tabela TAB_Data para o nome real da tabela com os atributos correspondentes na estrutura Load.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jul 2017 19:55:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/set-analysis-per%C3%ADodo-de-datas/m-p/1326390#M48063</guid>
      <dc:creator>mario_sergio_ti</dc:creator>
      <dc:date>2017-07-04T19:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis - período de datas</title>
      <link>https://community.qlik.com/t5/Brasil/set-analysis-per%C3%ADodo-de-datas/m-p/1326391#M48064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfeito amigo!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Muito obrigado!!&lt;/P&gt;&lt;P&gt;Abraços&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jul 2017 20:03:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/set-analysis-per%C3%ADodo-de-datas/m-p/1326391#M48064</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-04T20:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis - período de datas</title>
      <link>https://community.qlik.com/t5/Brasil/set-analysis-per%C3%ADodo-de-datas/m-p/1326392#M48065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Abraço.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jul 2017 20:04:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/set-analysis-per%C3%ADodo-de-datas/m-p/1326392#M48065</guid>
      <dc:creator>mario_sergio_ti</dc:creator>
      <dc:date>2017-07-04T20:04:38Z</dc:date>
    </item>
  </channel>
</rss>

