<?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 Socorro! in Brasil</title>
    <link>https://community.qlik.com/t5/Brasil/Socorro/m-p/1439825#M52776</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Bom dia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sou usuária nova no Qlik Sense, e preciso de uma ajuda urgente.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Preciso gerar um tabela, através de outra tabela já carregada.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Tenho os campos:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Nome ( indica o nome da pessoa), dia, dias de produção (onde 0 indica que a pessoa não trabalhou e 1 que trabalhou), e o grupo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Na tabela que tenho que gerar, precisava fazer um loop para que todo vez que mudasse o nome ou o grupo ou&amp;nbsp; quando a pessoa não trabalhasse ( que é indicado pelo número 0) ela pegasse a data de inicio e fim desse período.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Vou tentar exemplificar genericamente, pois são muitos os meus dados&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Tenho uma tabela parecida com esta carregada:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="border: 0px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;" width="303"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl65" height="40" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;" width="64"&gt;Nome&lt;/TD&gt;&lt;TD class="xl65" style="padding-right: 4px; padding-left: 4px; border-top: 0 solid black; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;" width="75"&gt;Dia&lt;/TD&gt;&lt;TD class="xl65" style="padding-right: 4px; padding-left: 4px; border-top: 0 solid black; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;" width="82"&gt;Dias de Produção&lt;/TD&gt;&lt;TD class="xl65" style="padding-right: 4px; padding-left: 4px; border-top: 0 solid black; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;" width="82"&gt;Grupo&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl63" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;João&lt;/TD&gt;&lt;TD class="xl64" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;12/12/2017&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;1&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;Grupo 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl63" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;João&lt;/TD&gt;&lt;TD class="xl64" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;12/12/2017&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;0&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl63" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;João&lt;/TD&gt;&lt;TD class="xl64" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;13/12/2017&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;1&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;Grupo 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl63" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;João&lt;/TD&gt;&lt;TD class="xl64" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;13/12/2017&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;1&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;Grupo 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl63" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;João&lt;/TD&gt;&lt;TD class="xl64" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;14/12/2017&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;1&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;Grupo 2&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl63" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;Maria&lt;/TD&gt;&lt;TD class="xl64" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;12/12/2017&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;0&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl63" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;Maria&lt;/TD&gt;&lt;TD class="xl64" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;12/12/2017&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;1&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;Grupo 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl63" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;Maria&lt;/TD&gt;&lt;TD class="xl64" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;14/12/2017&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;1&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;Grupo 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl63" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;Maria&lt;/TD&gt;&lt;TD class="xl64" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;14/12/2017&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;1&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;Grupo 2&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl63" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;Maria&lt;/TD&gt;&lt;TD class="xl64" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;14/12/2017&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;0&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl63" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;Maria&lt;/TD&gt;&lt;TD class="xl64" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;15/12/2017&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;1&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;Grupo 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl63" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;Ana&lt;/TD&gt;&lt;TD class="xl64" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;15/12/2017&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;1&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;Grupo 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl63" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;Ana&lt;/TD&gt;&lt;TD class="xl64" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;16/12/2017&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;1&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;Grupo 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl63" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;Ana&lt;/TD&gt;&lt;TD class="xl64" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;17/12/2017&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;0&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl63" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;Ana&lt;/TD&gt;&lt;TD class="xl64" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;18/12/2017&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;1&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;Grupo 2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;E através dela precisava gerar uma igual esta:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="border: 0px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl65" height="40" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;" width="80"&gt;Nome&lt;/TD&gt;&lt;TD class="xl65" style="padding-right: 4px; padding-left: 4px; border-top: 0 solid black; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;" width="88"&gt;Data Início&lt;/TD&gt;&lt;TD class="xl65" style="padding-right: 4px; padding-left: 4px; border-top: 0 solid black; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;" width="86"&gt;Data Fim&lt;/TD&gt;&lt;TD class="xl65" style="padding-right: 4px; padding-left: 4px; border-top: 0 solid black; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;" width="69"&gt;Grupo&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl66" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;João&lt;/TD&gt;&lt;TD align="right" class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;12/12/2017&lt;/TD&gt;&lt;TD align="right" class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;12/12/2017&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;Grupo 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl66" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;João&lt;/TD&gt;&lt;TD align="right" class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;13/12/2047&lt;/TD&gt;&lt;TD align="right" class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;13/12/2017&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;Grupo 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl66" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;João&lt;/TD&gt;&lt;TD align="right" class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;14/12/2017&lt;/TD&gt;&lt;TD align="right" class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;14/12/2017&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;Grupo 2&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl66" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;Maria&lt;/TD&gt;&lt;TD align="right" class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;12/12/2017&lt;/TD&gt;&lt;TD align="right" class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;14/12/2017&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;Grupo 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl66" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;Maria&lt;/TD&gt;&lt;TD align="right" class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;14/12/2017&lt;/TD&gt;&lt;TD align="right" class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;14/12/2017&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;Grupo 2&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl66" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;Maria&lt;/TD&gt;&lt;TD align="right" class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;15/12/2017&lt;/TD&gt;&lt;TD align="right" class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;15/12/2017&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;Grupo 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl66" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;Ana&lt;/TD&gt;&lt;TD align="right" class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;15/12/2017&lt;/TD&gt;&lt;TD align="right" class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;16/12/2017&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;Grupo 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl66" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;Ana&lt;/TD&gt;&lt;TD align="right" class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;18/12/2017&lt;/TD&gt;&lt;TD align="right" class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;18/12/2017&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;Grupo 2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Já pesquisei, mas ainda não achei nada por completo que me ajudasse.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;E estou precisando urgentemente, se alguém pudesse me ajudar ficaria muito grata.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Dec 2017 14:23:11 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-12-20T14:23:11Z</dc:date>
    <item>
      <title>Socorro!</title>
      <link>https://community.qlik.com/t5/Brasil/Socorro/m-p/1439825#M52776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Bom dia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sou usuária nova no Qlik Sense, e preciso de uma ajuda urgente.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Preciso gerar um tabela, através de outra tabela já carregada.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Tenho os campos:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Nome ( indica o nome da pessoa), dia, dias de produção (onde 0 indica que a pessoa não trabalhou e 1 que trabalhou), e o grupo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Na tabela que tenho que gerar, precisava fazer um loop para que todo vez que mudasse o nome ou o grupo ou&amp;nbsp; quando a pessoa não trabalhasse ( que é indicado pelo número 0) ela pegasse a data de inicio e fim desse período.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Vou tentar exemplificar genericamente, pois são muitos os meus dados&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Tenho uma tabela parecida com esta carregada:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="border: 0px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;" width="303"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl65" height="40" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;" width="64"&gt;Nome&lt;/TD&gt;&lt;TD class="xl65" style="padding-right: 4px; padding-left: 4px; border-top: 0 solid black; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;" width="75"&gt;Dia&lt;/TD&gt;&lt;TD class="xl65" style="padding-right: 4px; padding-left: 4px; border-top: 0 solid black; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;" width="82"&gt;Dias de Produção&lt;/TD&gt;&lt;TD class="xl65" style="padding-right: 4px; padding-left: 4px; border-top: 0 solid black; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;" width="82"&gt;Grupo&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl63" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;João&lt;/TD&gt;&lt;TD class="xl64" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;12/12/2017&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;1&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;Grupo 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl63" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;João&lt;/TD&gt;&lt;TD class="xl64" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;12/12/2017&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;0&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl63" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;João&lt;/TD&gt;&lt;TD class="xl64" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;13/12/2017&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;1&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;Grupo 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl63" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;João&lt;/TD&gt;&lt;TD class="xl64" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;13/12/2017&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;1&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;Grupo 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl63" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;João&lt;/TD&gt;&lt;TD class="xl64" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;14/12/2017&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;1&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;Grupo 2&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl63" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;Maria&lt;/TD&gt;&lt;TD class="xl64" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;12/12/2017&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;0&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl63" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;Maria&lt;/TD&gt;&lt;TD class="xl64" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;12/12/2017&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;1&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;Grupo 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl63" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;Maria&lt;/TD&gt;&lt;TD class="xl64" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;14/12/2017&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;1&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;Grupo 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl63" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;Maria&lt;/TD&gt;&lt;TD class="xl64" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;14/12/2017&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;1&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;Grupo 2&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl63" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;Maria&lt;/TD&gt;&lt;TD class="xl64" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;14/12/2017&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;0&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl63" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;Maria&lt;/TD&gt;&lt;TD class="xl64" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;15/12/2017&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;1&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;Grupo 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl63" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;Ana&lt;/TD&gt;&lt;TD class="xl64" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;15/12/2017&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;1&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;Grupo 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl63" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;Ana&lt;/TD&gt;&lt;TD class="xl64" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;16/12/2017&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;1&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;Grupo 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl63" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;Ana&lt;/TD&gt;&lt;TD class="xl64" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;17/12/2017&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;0&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl63" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;Ana&lt;/TD&gt;&lt;TD class="xl64" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;18/12/2017&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;1&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;Grupo 2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;E através dela precisava gerar uma igual esta:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="border: 0px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl65" height="40" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;" width="80"&gt;Nome&lt;/TD&gt;&lt;TD class="xl65" style="padding-right: 4px; padding-left: 4px; border-top: 0 solid black; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;" width="88"&gt;Data Início&lt;/TD&gt;&lt;TD class="xl65" style="padding-right: 4px; padding-left: 4px; border-top: 0 solid black; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;" width="86"&gt;Data Fim&lt;/TD&gt;&lt;TD class="xl65" style="padding-right: 4px; padding-left: 4px; border-top: 0 solid black; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;" width="69"&gt;Grupo&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl66" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;João&lt;/TD&gt;&lt;TD align="right" class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;12/12/2017&lt;/TD&gt;&lt;TD align="right" class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;12/12/2017&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;Grupo 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl66" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;João&lt;/TD&gt;&lt;TD align="right" class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;13/12/2047&lt;/TD&gt;&lt;TD align="right" class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;13/12/2017&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;Grupo 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl66" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;João&lt;/TD&gt;&lt;TD align="right" class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;14/12/2017&lt;/TD&gt;&lt;TD align="right" class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;14/12/2017&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;Grupo 2&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl66" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;Maria&lt;/TD&gt;&lt;TD align="right" class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;12/12/2017&lt;/TD&gt;&lt;TD align="right" class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;14/12/2017&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;Grupo 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl66" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;Maria&lt;/TD&gt;&lt;TD align="right" class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;14/12/2017&lt;/TD&gt;&lt;TD align="right" class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;14/12/2017&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;Grupo 2&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl66" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;Maria&lt;/TD&gt;&lt;TD align="right" class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;15/12/2017&lt;/TD&gt;&lt;TD align="right" class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;15/12/2017&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;Grupo 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl66" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;Ana&lt;/TD&gt;&lt;TD align="right" class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;15/12/2017&lt;/TD&gt;&lt;TD align="right" class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;16/12/2017&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;Grupo 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl66" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;Ana&lt;/TD&gt;&lt;TD align="right" class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;18/12/2017&lt;/TD&gt;&lt;TD align="right" class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;18/12/2017&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;Grupo 2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Já pesquisei, mas ainda não achei nada por completo que me ajudasse.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;E estou precisando urgentemente, se alguém pudesse me ajudar ficaria muito grata.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2017 14:23:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Socorro/m-p/1439825#M52776</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-20T14:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: Socorro!</title>
      <link>https://community.qlik.com/t5/Brasil/Socorro/m-p/1439826#M52777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Boa tarde Victória,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Veja se é assim que você precisa:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ORIGEM:&lt;/P&gt;&lt;P&gt;LOAD * Inline [&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NOME,DATA,DIAS_PRODUCAO,GRUPO&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; João, 12/12/2017, 1, Grupo 1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; João, 12/12/2017, 0, ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; João, 13/12/2017, 1, Grupo 1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; João, 13/12/2017, 1, Grupo 1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; João, 14/12/2017, 1, Grupo 2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Maria, 12/12/2017, 0, ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Maria, 12/12/2017, 1, Grupo 1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Maria, 14/12/2017, 1, Grupo 1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Maria, 14/12/2017, 1, Grupo 2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Maria, 14/12/2017, 0, ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Maria, 15/12/2017, 1, Grupo 1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ana, 15/12/2017, 1, Grupo 1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ana, 16/12/2017, 1, Grupo 1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ana, 17/12/2017, 0, ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ana, 18/12/2017, 1, Grupo 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FINAL:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;IF(DIAS_PRODUCAO=0,Previous(GRUPO),GRUPO) AS GRUPO&lt;/P&gt;&lt;P&gt;RESIDENT ORIGEM;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT JOIN(FINAL)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;DATE(MAX(DATA))&amp;nbsp; AS DATA_FIM,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATE(MIN(DATA)) AS DATA_INICIO,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NOME,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; GRUPO&lt;/P&gt;&lt;P&gt;RESIDENT ORIGEM GROUP BY NOME,GRUPO;&lt;/P&gt;&lt;P&gt;DROP TABLE ORIGEM;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Tabela Final.PNG" class="jive-image image-1" src="/legacyfs/online/187765_Tabela Final.PNG" style="height: 175px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2017 17:43:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Socorro/m-p/1439826#M52777</guid>
      <dc:creator>Thiago_Justen_</dc:creator>
      <dc:date>2017-12-20T17:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Socorro!</title>
      <link>https://community.qlik.com/t5/Brasil/Socorro/m-p/1439827#M52778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Victória,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Não deixe de marcar como resposta correta se isso te ajudou.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Abraços e sucesso!!&lt;/P&gt;&lt;P&gt;Thiago&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2017 19:20:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Socorro/m-p/1439827#M52778</guid>
      <dc:creator>Thiago_Justen_</dc:creator>
      <dc:date>2017-12-20T19:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: Socorro!</title>
      <link>https://community.qlik.com/t5/Brasil/Socorro/m-p/1439828#M52779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thiago,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Testei o Scrip aqui e ele quase deu certo. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Poderia me explicar exatamente o que faz esse seu scrip. Estou começando a usar o Qlik agora, então estou bem no início.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ele está retornando a data de início e fim literalmente de todos os grupos.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Por exemplo, se alguém não trabalhou em algum dia em um determinado grupo, mas no dia seguinte voltou a trabalhar no mesmo grupo, teria que haver uma pausa ai. Como se cada vez que aparecesse um 0, também fosse um determinante para anotar a data de Início e Fim para aquele nome e aquele grupo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Além disso, existe outra variável que também deve ser considerada d mesmo jeito, que é o porte (P,M,G) e caso mude o porte também, deve ser anotado a Data de Início e Fim, esse porte deve ser adicionado a minha nova tabela.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Saberia me ajudar novamente?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Muito obrigada pela ajuda!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2017 19:31:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Socorro/m-p/1439828#M52779</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-20T19:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: Socorro!</title>
      <link>https://community.qlik.com/t5/Brasil/Socorro/m-p/1439829#M52780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ola...Eu ja ajudei alguem com caso semelhante entao que voce consegue ajustar e usar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/280949"&gt;Modelagem no cálculo do tempo de indisponibilidade.&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2017 12:53:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Socorro/m-p/1439829#M52780</guid>
      <dc:creator>srchagas</dc:creator>
      <dc:date>2017-12-21T12:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: Socorro!</title>
      <link>https://community.qlik.com/t5/Brasil/Socorro/m-p/1439830#M52781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ola Thiago,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Não consegui abrir seu scrip nesse post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Será que poderia me enviar?&lt;/P&gt;&lt;P&gt;Estou precisando resolver esse problema urgentemente.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obrigada pela ajuda!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2017 13:03:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Socorro/m-p/1439830#M52781</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-21T13:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: Socorro!</title>
      <link>https://community.qlik.com/t5/Brasil/Socorro/m-p/1439831#M52782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15138615605957661" jivemacro_uid="_15138615605957661" modifiedtitle="true"&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Segue :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;acho que isso deve te ajudar se voce precisa colocar mias parametros para definir voce so precisa adicionar no Load do MIn e do max e no order by o trque esta no Order By&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;se quiser as folgas junto, eu aconselho 2 coisas:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;repetir esse codigo com Dias producao = 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ou que acho melhor , colocar o dias de producao no Load e no Order by e claro no load da tabela modelada&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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_15138615942499674" jivemacro_uid="_15138615942499674" modifiedtitle="true"&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;/************************************************************************/&lt;/P&gt;
&lt;P&gt;//&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;/************************************************************************/&lt;/P&gt;
&lt;P&gt;// 1 - Faco a leitura da Base Nao modelada&lt;/P&gt;
&lt;P&gt;/************************************************************************/&lt;/P&gt;
&lt;P&gt;Base_Modelada:&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [&lt;/P&gt;
&lt;P&gt;Nome, Dia, Dias de Produção, Grupo&lt;/P&gt;
&lt;P&gt;João, 12/12/2017, 1, Grupo 1&lt;/P&gt;
&lt;P&gt;João, 12/12/2017, 0, -&lt;/P&gt;
&lt;P&gt;João, 13/12/2017, 1, Grupo 1&lt;/P&gt;
&lt;P&gt;João, 13/12/2017, 1, Grupo 1&lt;/P&gt;
&lt;P&gt;João, 14/12/2017, 1, Grupo 2&lt;/P&gt;
&lt;P&gt;Maria, 12/12/2017, 0, -&lt;/P&gt;
&lt;P&gt;Maria, 12/12/2017, 1, Grupo 1&lt;/P&gt;
&lt;P&gt;Maria, 14/12/2017, 1, Grupo 1&lt;/P&gt;
&lt;P&gt;Maria, 14/12/2017, 1, Grupo 2&lt;/P&gt;
&lt;P&gt;Maria, 14/12/2017, 0, -&lt;/P&gt;
&lt;P&gt;Maria, 15/12/2017, 1, Grupo 1&lt;/P&gt;
&lt;P&gt;Ana, 15/12/2017, 1, Grupo 1&lt;/P&gt;
&lt;P&gt;Ana, 16/12/2017, 1, Grupo 1&lt;/P&gt;
&lt;P&gt;Ana, 17/12/2017, 0, -&lt;/P&gt;
&lt;P&gt;Ana, 18/12/2017, 1, Grupo 2&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;/************************************************************************/&lt;/P&gt;
&lt;P&gt;// 2 - Descobrir qual e o menor Data por grupo por pessoa &lt;/P&gt;
&lt;P&gt;//&amp;nbsp; &lt;/P&gt;
&lt;P&gt;/************************************************************************/&lt;/P&gt;
&lt;P&gt;Min_Data_Por_status:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;Min(Dia)&amp;nbsp; as&amp;nbsp; MinDtSituacaoPerDay,&lt;/P&gt;
&lt;P&gt;Grupo,&lt;/P&gt;
&lt;P&gt;Nome&lt;/P&gt;
&lt;P&gt;Resident Base_Modelada&lt;/P&gt;
&lt;P&gt;Where [Dias de Produção] = 1&lt;/P&gt;
&lt;P&gt;Group By &lt;/P&gt;
&lt;P&gt;Grupo,&lt;/P&gt;
&lt;P&gt;Nome&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;/************************************************************************/&lt;/P&gt;
&lt;P&gt;// 3 - Descobrir qual e o maior horario por Equipamento &lt;/P&gt;
&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; e e por Status&lt;/P&gt;
&lt;P&gt;/************************************************************************/&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Max_Data_Por_status:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;Max(Dia)&amp;nbsp;&amp;nbsp; as&amp;nbsp; MaxDtSituacaoPerDay,&lt;/P&gt;
&lt;P&gt;Grupo,&lt;/P&gt;
&lt;P&gt;Nome&lt;/P&gt;
&lt;P&gt;Resident Base_Modelada&lt;/P&gt;
&lt;P&gt;Where&amp;nbsp;&amp;nbsp; [Dias de Produção] = 1&lt;/P&gt;
&lt;P&gt;Group By &lt;/P&gt;
&lt;P&gt;Grupo,&lt;/P&gt;
&lt;P&gt;Nome&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;/************************************************************************/&lt;/P&gt;
&lt;P&gt;// 4 -&amp;nbsp; Crio uma tabela somente com Status e ATM para fazer&lt;/P&gt;
&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a modelagem final&lt;/P&gt;
&lt;P&gt;/************************************************************************/&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;BaseModeladaFinal:&lt;/P&gt;
&lt;P&gt;NoConcatenate&lt;/P&gt;
&lt;P&gt;LOAD Distinct&lt;/P&gt;
&lt;P&gt;Nome,&lt;/P&gt;
&lt;P&gt;Grupo&lt;/P&gt;
&lt;P&gt;Resident Base_Modelada&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP Table Base_Modelada;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;/************************************************************************/&lt;/P&gt;
&lt;P&gt;// 5 -&amp;nbsp; Faco o Join&amp;nbsp; para tabela somente na tabela com status&lt;/P&gt;
&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; assim trago o menor para a tabela final&lt;/P&gt;
&lt;P&gt;/************************************************************************/&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Left Join (BaseModeladaFinal)&lt;/P&gt;
&lt;P&gt;LOAD &lt;/P&gt;
&lt;P&gt;Nome,&lt;/P&gt;
&lt;P&gt;Grupo,&lt;/P&gt;
&lt;P&gt;MinDtSituacaoPerDay as DtInicialStatus&lt;/P&gt;
&lt;P&gt;Resident Min_Data_Por_status;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP Table&amp;nbsp; Min_Data_Por_status;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;/************************************************************************/&lt;/P&gt;
&lt;P&gt;// 6 -&amp;nbsp; Faco o Join&amp;nbsp; para tabela somente na tabela com status&lt;/P&gt;
&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; assim trago o maior para a tabela final&lt;/P&gt;
&lt;P&gt;/************************************************************************/&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Left Join(BaseModeladaFinal)&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;Nome,&lt;/P&gt;
&lt;P&gt;Grupo,&lt;/P&gt;
&lt;P&gt;MaxDtSituacaoPerDay as DtFinalStatus&lt;/P&gt;
&lt;P&gt;Resident Max_Data_Por_status&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP Table&amp;nbsp; Max_Data_Por_status;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;1 - Faco a leitura da Base Nao modelada&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2017 13:09:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Socorro/m-p/1439831#M52782</guid>
      <dc:creator>srchagas</dc:creator>
      <dc:date>2017-12-21T13:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: Socorro!</title>
      <link>https://community.qlik.com/t5/Brasil/Socorro/m-p/1439832#M52783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Com as folgas ficaria assim&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15138621007024617 jive_text_macro" jivemacro_uid="_15138621007024617"&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;/************************************************************************/&lt;/P&gt;
&lt;P&gt;// 1 - Faco a leitura da Base Nao modelada&lt;/P&gt;
&lt;P&gt;/************************************************************************/&lt;/P&gt;
&lt;P&gt;Base_Modelada:&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [&lt;/P&gt;
&lt;P&gt;Nome, Dia, Dias de Produção, Grupo&lt;/P&gt;
&lt;P&gt;João, 12/12/2017, 1, Grupo 1&lt;/P&gt;
&lt;P&gt;João, 12/12/2017, 0, -&lt;/P&gt;
&lt;P&gt;João, 13/12/2017, 1, Grupo 1&lt;/P&gt;
&lt;P&gt;João, 13/12/2017, 1, Grupo 1&lt;/P&gt;
&lt;P&gt;João, 14/12/2017, 1, Grupo 2&lt;/P&gt;
&lt;P&gt;Maria, 12/12/2017, 0, -&lt;/P&gt;
&lt;P&gt;Maria, 12/12/2017, 1, Grupo 1&lt;/P&gt;
&lt;P&gt;Maria, 14/12/2017, 1, Grupo 1&lt;/P&gt;
&lt;P&gt;Maria, 14/12/2017, 1, Grupo 2&lt;/P&gt;
&lt;P&gt;Maria, 14/12/2017, 0, -&lt;/P&gt;
&lt;P&gt;Maria, 15/12/2017, 1, Grupo 1&lt;/P&gt;
&lt;P&gt;Ana, 15/12/2017, 1, Grupo 1&lt;/P&gt;
&lt;P&gt;Ana, 16/12/2017, 1, Grupo 1&lt;/P&gt;
&lt;P&gt;Ana, 17/12/2017, 0, -&lt;/P&gt;
&lt;P&gt;Ana, 18/12/2017, 1, Grupo 2&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;/************************************************************************/&lt;/P&gt;
&lt;P&gt;// 2 - Descobrir qual e o menor Data por grupo por pessoa &lt;/P&gt;
&lt;P&gt;//&amp;nbsp; &lt;/P&gt;
&lt;P&gt;/************************************************************************/&lt;/P&gt;
&lt;P&gt;Min_Data_Por_status:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;Min(Dia)&amp;nbsp; as&amp;nbsp; MinDtSituacaoPerDay,&lt;/P&gt;
&lt;P&gt;Grupo,&lt;/P&gt;
&lt;P&gt;Nome,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; [Dias de Produção]&lt;/P&gt;
&lt;P&gt;Resident Base_Modelada&lt;/P&gt;
&lt;P&gt;Group By &lt;/P&gt;
&lt;P&gt;Grupo,&lt;/P&gt;
&lt;P&gt;Nome,&lt;/P&gt;
&lt;P&gt;[Dias de Produção]&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;/************************************************************************/&lt;/P&gt;
&lt;P&gt;// 3 - Descobrir qual e o maior horario por Equipamento &lt;/P&gt;
&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; e e por Status&lt;/P&gt;
&lt;P&gt;/************************************************************************/&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Max_Data_Por_status:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;Max(Dia)&amp;nbsp;&amp;nbsp; as&amp;nbsp; MaxDtSituacaoPerDay,&lt;/P&gt;
&lt;P&gt;Grupo,&lt;/P&gt;
&lt;P&gt;Nome,&lt;/P&gt;
&lt;P&gt;[Dias de Produção]&lt;/P&gt;
&lt;P&gt;Resident Base_Modelada&lt;/P&gt;
&lt;P&gt;Group By &lt;/P&gt;
&lt;P&gt;Grupo,&lt;/P&gt;
&lt;P&gt;Nome,&lt;/P&gt;
&lt;P&gt;[Dias de Produção]&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;/************************************************************************/&lt;/P&gt;
&lt;P&gt;// 4 -&amp;nbsp; Crio uma tabela somente com Status e ATM para fazer&lt;/P&gt;
&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a modelagem final&lt;/P&gt;
&lt;P&gt;/************************************************************************/&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;BaseModeladaFinal:&lt;/P&gt;
&lt;P&gt;NoConcatenate&lt;/P&gt;
&lt;P&gt;LOAD Distinct&lt;/P&gt;
&lt;P&gt;Nome,&lt;/P&gt;
&lt;P&gt;Grupo&lt;/P&gt;
&lt;P&gt;Resident Base_Modelada&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP Table Base_Modelada;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;/************************************************************************/&lt;/P&gt;
&lt;P&gt;// 5 -&amp;nbsp; Faco o Join&amp;nbsp; para tabela somente na tabela com status&lt;/P&gt;
&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; assim trago o menor para a tabela final&lt;/P&gt;
&lt;P&gt;/************************************************************************/&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Left Join (BaseModeladaFinal)&lt;/P&gt;
&lt;P&gt;LOAD &lt;/P&gt;
&lt;P&gt;Nome,&lt;/P&gt;
&lt;P&gt;Grupo,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; [Dias de Produção],&lt;/P&gt;
&lt;P&gt;MinDtSituacaoPerDay as DtInicialStatus&lt;/P&gt;
&lt;P&gt;Resident Min_Data_Por_status;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP Table&amp;nbsp; Min_Data_Por_status;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;/************************************************************************/&lt;/P&gt;
&lt;P&gt;// 6 -&amp;nbsp; Faco o Join&amp;nbsp; para tabela somente na tabela com status&lt;/P&gt;
&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; assim trago o maior para a tabela final&lt;/P&gt;
&lt;P&gt;/************************************************************************/&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Left Join(BaseModeladaFinal)&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;Nome,&lt;/P&gt;
&lt;P&gt;Grupo,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; [Dias de Produção],&lt;/P&gt;
&lt;P&gt;MaxDtSituacaoPerDay as DtFinalStatus&lt;/P&gt;
&lt;P&gt;Resident Max_Data_Por_status&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP Table&amp;nbsp; Max_Data_Por_status;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Ajustado:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;*,&lt;/P&gt;
&lt;P&gt;if( len(Grupo) &amp;lt;&amp;nbsp; 2 , 'Folga','Trabalhado') as Status&lt;/P&gt;
&lt;P&gt;Resident BaseModeladaFinal;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP Table BaseModeladaFinal;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2017 13:15:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Socorro/m-p/1439832#M52783</guid>
      <dc:creator>srchagas</dc:creator>
      <dc:date>2017-12-21T13:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Socorro!</title>
      <link>https://community.qlik.com/t5/Brasil/Socorro/m-p/1439833#M52784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thiago,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eu não entendi, onde no scrip ele vai estar diferenciando todas as vezes que mudar de grupo. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Meu scrip verdadeiro é esse:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;[Geral]:&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %MagistradoID,&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dia,&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; date(Dia,'DD/MM/YYYY') AS DT,&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Dias Afastdo/Designado",&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Dias Produtividade (Acumulado)",&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Dias Produtividade";&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;FROM [Geral.qvd];&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;left Join&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;[Magistrados]:&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %MagistradoID,&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Matrícula (Magistrado)",&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Sexo (Magistrado)",&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Magistrado&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;FROM [Magistrados.qvd]&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;(qvd);&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;left Join&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;[Magistrado-Orgao]:&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %MagistradoID,&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dia,&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "%Órgão JulgadorID",&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %FunçãoID&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;FROM Magistrado-Orgao.qvd]&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;(qvd);&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;left Join&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;[Orgao-Julgadores]:&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "%Órgão JulgadorID",&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Instância,&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Entrância,&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Região da Corregedoria",&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Comarca,&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Órgão Julgador",&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Tipo de Justiça",&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Especialidade (Órgão Julgador)",&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Natureza (Órgão Julgador)",&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Cluster,&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Porte,&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Data de Início da Vigência",&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Data de Fim da Vigência"&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;FROM [Orgaos-Julgadores.qvd]&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;(qvd);&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;E eu Preciso no Final uma tabela que me fale o Magistrado, Data de ínico e dia de Fim de trabalho, no Cluster e por Porte. Isso para todos os dias de trabalho, que são os dias de produtividade igual a 1. E caso haja uma folga no período, tem que ser interrompido. Como se começasse a contar de novo.&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Ou seja, toda vez que mudar o Magistrado, ou o Cluster ou o Porte, ou fosse um dia de folga, teria que ser a data fim. Mesmo que fosse o mesmo Magistrado.&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Conseguiu entender mais ou menos.&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Como sou nova no qlik sense, ainda é um bastante complexo para mim.&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Vou tentar ajustar seu scip.&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;Muito Obrigada!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2017 13:25:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Socorro/m-p/1439833#M52784</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-21T13:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: Socorro!</title>
      <link>https://community.qlik.com/t5/Brasil/Socorro/m-p/1439834#M52785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;entao eu uso na verdade o Meu Max e min por dia, ele agrupado por Grupo vai pegar sempre&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Menor data&amp;nbsp; + Grupo&lt;/P&gt;&lt;P&gt;se a pessoa muda de grupo vou pegar sisso, voce noa consegue me passa uma amostra de dados mais real ? com tudo, para que eu possa&amp;nbsp; monta pra ti melhor o codigo, pq teoricamente depois de fazer toda essa uniao ai&amp;nbsp; aplicaria meu script e calcularia , noa precisa ser muito registro so umas 10 a 15 linhas eu consigo fazer aqui rapidim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2017 13:36:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Socorro/m-p/1439834#M52785</guid>
      <dc:creator>srchagas</dc:creator>
      <dc:date>2017-12-21T13:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: Socorro!</title>
      <link>https://community.qlik.com/t5/Brasil/Socorro/m-p/1439835#M52786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Os meus registros seriam basicamente esses, peguei genericamente, porque são milhares:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="393"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="64"&gt;Nome&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="75"&gt;Dia&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="126"&gt;Dias Produtividade&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="64"&gt;Grupo&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="64"&gt;Porte&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;Maria&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;29/08/2016&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Grupo 1&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;M&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;Maria&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;30/08/2016&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Grupo 1&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;M&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;Maria&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;31/01/2017&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Grupo 1&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;M&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;Maria&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;31/01/2017&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Grupo 2&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;M&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;Maria&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;02/02/2017&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Grupo 3&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;P&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;Maria&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;03/03/2017&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Grupo 3&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;P&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;Maria&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;04/03/2017&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Grupo 3&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;P&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;Maria&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;05/03/2017&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Grupo 3&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;P&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;Maria&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;05/03/2017&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Grupo 3&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;G&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;Maria&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;06/03/2017&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Grupo 3&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;G&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;João&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;07/03/2017&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Grupo 3&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;G&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;João&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;08/03/2017&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Grupo 4&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;G&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;João&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;09/03/2017&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Grupo 3&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;G&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;João&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;09/03/2017&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Grupo 3&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;M&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No fim a tabela teria que vim assim, observa-se que quando a pessoa tem folga, é como se parasse e contasse novamente uma data de início e fim.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="342"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl68" height="20" width="64"&gt;Nome&lt;/TD&gt;&lt;TD class="xl68" style="border-left: none;" width="75"&gt;Dia Inicio&lt;/TD&gt;&lt;TD class="xl68" style="border-left: none;" width="75"&gt;Dia Fim&lt;/TD&gt;&lt;TD class="xl68" style="border-left: none;" width="64"&gt;Grupo&lt;/TD&gt;&lt;TD class="xl68" style="border-left: none;" width="64"&gt;Porte&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;Maria&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;29/08/2016&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;31/01/2017&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;Grupo 1&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;M&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;Maria&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;31/01/2017&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;31/01/2017&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;Grupo 2&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;M&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;Maria&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;02/02/2017&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;03/03/2017&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;Grupo 3&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;P&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;Maria&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;05/03/2017&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;05/03/2017&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;Grupo 3&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;P&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;Maria&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;05/03/2017&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;06/03/2017&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;Grupo 3&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;G&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;João&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;07/03/2017&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;07/03/2017&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;Grupo 3&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;G&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;João&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;09/03/2017&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;09/03/2017&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;Grupo 3&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;G&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;João&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;09/03/2017&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;09/03/2017&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;Grupo 3&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;&lt;P&gt;M&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Conseguiu entender?&lt;/P&gt;&lt;P&gt;Você não sabe o quanto está me ajudando.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Muito obrigada. Todas desta comunidade são muito solícitos!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2017 14:02:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Socorro/m-p/1439835#M52786</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-21T14:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: Socorro!</title>
      <link>https://community.qlik.com/t5/Brasil/Socorro/m-p/1439836#M52787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A resposta do Thiago das Chagas me parece o que você. Testei o script e funcionou conforme a descrição da sua necessidade.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2017 16:20:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Socorro/m-p/1439836#M52787</guid>
      <dc:creator>Thiago_Justen_</dc:creator>
      <dc:date>2017-12-21T16:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: Socorro!</title>
      <link>https://community.qlik.com/t5/Brasil/Socorro/m-p/1439837#M52788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bom Dia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e que como estou em outro pais f&lt;SPAN style="font-size: 13.3333px;"&gt;uso e diferente, mas vamos la o codigo que tu precisa&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;a unica diferenca que voce vai ver e do dia 04/04 que deixei como folga , se tu quiser quando a pessoa nao trabalhou, caso contrario voce filtra somente os trabalhados&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15139310277828798" jivemacro_uid="_15139310277828798"&gt;
&lt;P&gt;/************************************************************************/&lt;/P&gt;
&lt;P&gt;// 1 - Faco a leitura da Base Nao modelada&lt;/P&gt;
&lt;P&gt;/************************************************************************/&lt;/P&gt;
&lt;P&gt;Base_Modelada:&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [&lt;/P&gt;
&lt;P&gt;Nome , Dia , Dias Produtividade , Grupo , Porte&lt;/P&gt;
&lt;P&gt;Maria , 29/08/2016 , 1 , Grupo 1 , M&lt;/P&gt;
&lt;P&gt;Maria , 30/08/2016 , 1 , Grupo 1 , M&lt;/P&gt;
&lt;P&gt;Maria , 31/01/2017 , 1 , Grupo 1 , M&lt;/P&gt;
&lt;P&gt;Maria , 31/01/2017 , 1 , Grupo 2 , M&lt;/P&gt;
&lt;P&gt;Maria , 02/02/2017 , 1 , Grupo 3 , P&lt;/P&gt;
&lt;P&gt;Maria , 03/03/2017 , 1 , Grupo 3 , P&lt;/P&gt;
&lt;P&gt;Maria , 04/03/2017 , 0 , Grupo 3 , P&lt;/P&gt;
&lt;P&gt;Maria , 05/03/2017 , 1 , Grupo 3 , P&lt;/P&gt;
&lt;P&gt;Maria , 05/03/2017 , 1 , Grupo 3 , G&lt;/P&gt;
&lt;P&gt;Maria , 06/03/2017 , 1 , Grupo 3 , G&lt;/P&gt;
&lt;P&gt;João , 07/03/2017 , 1 , Grupo 3 , G&lt;/P&gt;
&lt;P&gt;João , 08/03/2017 , 0 , Grupo 4 , G&lt;/P&gt;
&lt;P&gt;João , 09/03/2017 , 1 , Grupo 3 , G&lt;/P&gt;
&lt;P&gt;João , 09/03/2017 , 1 , Grupo 3 , M&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;/************************************************************************/&lt;/P&gt;
&lt;P&gt;// 2 - Descobrir qual e o menor Data por grupo por pessoa&lt;/P&gt;
&lt;P&gt;// &lt;/P&gt;
&lt;P&gt;/************************************************************************/&lt;/P&gt;
&lt;P&gt;Min_Data_Por_status:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;Min(Dia)&amp;nbsp; as&amp;nbsp; MinDtSituacaoPerDay,&lt;/P&gt;
&lt;P&gt;Grupo,&lt;/P&gt;
&lt;P&gt;Nome,&lt;/P&gt;
&lt;P&gt;[Dias Produtividade],&lt;/P&gt;
&lt;P&gt;Porte&lt;/P&gt;
&lt;P&gt;Resident Base_Modelada&lt;/P&gt;
&lt;P&gt;Group By&lt;/P&gt;
&lt;P&gt;Grupo,&lt;/P&gt;
&lt;P&gt;Nome,&lt;/P&gt;
&lt;P&gt;[Dias Produtividade],&lt;/P&gt;
&lt;P&gt;Porte&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;/************************************************************************/&lt;/P&gt;
&lt;P&gt;// 3 - Descobrir qual e o maior horario por Equipamento&lt;/P&gt;
&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; e e por Status&lt;/P&gt;
&lt;P&gt;/************************************************************************/&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Max_Data_Por_status:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;Max(Dia)&amp;nbsp;&amp;nbsp; as&amp;nbsp; MaxDtSituacaoPerDay,&lt;/P&gt;
&lt;P&gt;Grupo,&lt;/P&gt;
&lt;P&gt;Nome,&lt;/P&gt;
&lt;P&gt;[Dias Produtividade],&lt;/P&gt;
&lt;P&gt;Porte&lt;/P&gt;
&lt;P&gt;Resident Base_Modelada&lt;/P&gt;
&lt;P&gt;Group By&lt;/P&gt;
&lt;P&gt;Grupo,&lt;/P&gt;
&lt;P&gt;Nome,&lt;/P&gt;
&lt;P&gt;[Dias Produtividade],&lt;/P&gt;
&lt;P&gt;Porte&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;/************************************************************************/&lt;/P&gt;
&lt;P&gt;// 4 -&amp;nbsp; Crio uma tabela somente com Status e ATM para fazer&lt;/P&gt;
&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a modelagem final&lt;/P&gt;
&lt;P&gt;/************************************************************************/&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;BaseModeladaFinal:&lt;/P&gt;
&lt;P&gt;NoConcatenate&lt;/P&gt;
&lt;P&gt;LOAD Distinct&lt;/P&gt;
&lt;P&gt;Nome,&lt;/P&gt;
&lt;P&gt;Grupo,&lt;/P&gt;
&lt;P&gt;Porte&lt;/P&gt;
&lt;P&gt;Resident Base_Modelada&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP Table Base_Modelada;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;/************************************************************************/&lt;/P&gt;
&lt;P&gt;// 5 -&amp;nbsp; Faco o Join&amp;nbsp; para tabela somente na tabela com status&lt;/P&gt;
&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; assim trago o menor para a tabela final&lt;/P&gt;
&lt;P&gt;/************************************************************************/&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Left Join (BaseModeladaFinal)&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Grupo,&lt;/P&gt;
&lt;P&gt;Nome,&lt;/P&gt;
&lt;P&gt;[Dias Produtividade],&lt;/P&gt;
&lt;P&gt;Porte,&lt;/P&gt;
&lt;P&gt;MinDtSituacaoPerDay as DtInicialStatus&lt;/P&gt;
&lt;P&gt;Resident Min_Data_Por_status;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP Table&amp;nbsp; Min_Data_Por_status;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;/************************************************************************/&lt;/P&gt;
&lt;P&gt;// 6 -&amp;nbsp; Faco o Join&amp;nbsp; para tabela somente na tabela com status&lt;/P&gt;
&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; assim trago o maior para a tabela final&lt;/P&gt;
&lt;P&gt;/************************************************************************/&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Left Join(BaseModeladaFinal)&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Grupo,&lt;/P&gt;
&lt;P&gt;Nome,&lt;/P&gt;
&lt;P&gt;[Dias Produtividade],&lt;/P&gt;
&lt;P&gt;Porte,&lt;/P&gt;
&lt;P&gt;MaxDtSituacaoPerDay as DtFinalStatus&lt;/P&gt;
&lt;P&gt;Resident Max_Data_Por_status&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP Table&amp;nbsp; Max_Data_Por_status;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Ajustado:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;*,&lt;/P&gt;
&lt;P&gt;if( [Dias Produtividade]&amp;nbsp; = 0 , 'Folga','Trabalhado') as Status&lt;/P&gt;
&lt;P&gt;Resident BaseModeladaFinal;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP Table BaseModeladaFinal;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resultado :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE bgcolor="#ffffff" border="1" cellpadding="2" cellspacing="0" style="font-size: 9pt;"&gt;&lt;TBODY&gt;&lt;TR bgcolor="#f5f5f5"&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Nome&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Grupo&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;DtInicialStatus&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;DtFinalStatus&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Status&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Porte&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Maria&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Grupo 1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;29/08/2016&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;31/01/2017&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Trabalhado&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;M&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Maria&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Grupo 2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;31/01/2017&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;31/01/2017&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Trabalhado&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;M&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Maria&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Grupo 3&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;04/03/2017&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;04/03/2017&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Folga&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;P&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Maria&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Grupo 3&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;02/02/2017&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;05/03/2017&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Trabalhado&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;P&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Maria&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Grupo 3&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;05/03/2017&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;06/03/2017&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Trabalhado&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;G&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;João&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Grupo 3&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;07/03/2017&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;09/03/2017&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Trabalhado&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;G&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;João&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Grupo 3&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;09/03/2017&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;09/03/2017&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Trabalhado&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;M&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;João&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Grupo 4&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;08/03/2017&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;08/03/2017&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Folga&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;G&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Dec 2017 08:24:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Socorro/m-p/1439837#M52788</guid>
      <dc:creator>srchagas</dc:creator>
      <dc:date>2017-12-22T08:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: Socorro!</title>
      <link>https://community.qlik.com/t5/Brasil/Socorro/m-p/1439838#M52789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oi Thiago,&lt;/P&gt;&lt;P&gt;Bom dia!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;é que nesse Scrip ainda encontro o problema que não está descontando o dia da folga.&lt;/P&gt;&lt;P&gt;Por exemplo. A maria folgou fia 04/03/2017 no grupo 3, porte P.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Então eu precisava que esse dia não fosse contato período de tempo nessa tabela. Porque depois eu vou precisar desses dias para fazer contas. Ai por exemplo, pra Maria, no grupo 3 no porte 3 ela trabalhou 3 dias.&lt;/P&gt;&lt;P&gt;De acordo com essa tabela olhando DtInicialStatus e DtFinalStatus ele trabalhou 4 dias.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Por isso, a tabela dos dias trabalhados tinha que ficar assim:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="border: 0px; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;" width="342"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl68" height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;" width="64"&gt;Nome&lt;/TD&gt;&lt;TD class="xl68" style="padding-right: 4px; padding-left: 4px; border-top: 0 solid black; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;" width="75"&gt;Dia Inicio&lt;/TD&gt;&lt;TD class="xl68" style="padding-right: 4px; padding-left: 4px; border-top: 0 solid black; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;" width="75"&gt;Dia Fim&lt;/TD&gt;&lt;TD class="xl68" style="padding-right: 4px; padding-left: 4px; border-top: 0 solid black; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;" width="64"&gt;Grupo&lt;/TD&gt;&lt;TD class="xl68" style="padding-right: 4px; padding-left: 4px; border-top: 0 solid black; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;" width="64"&gt;Porte&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;Maria&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;29/08/2016&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;31/01/2017&lt;/TD&gt;&lt;TD class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;Grupo 1&lt;/TD&gt;&lt;TD class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;M&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;Maria&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;31/01/2017&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;31/01/2017&lt;/TD&gt;&lt;TD class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;Grupo 2&lt;/TD&gt;&lt;TD class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;M&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;Maria&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;02/02/2017&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;03/03/2017&lt;/TD&gt;&lt;TD class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;Grupo 3&lt;/TD&gt;&lt;TD class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;P&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;Maria&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;05/03/2017&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;05/03/2017&lt;/TD&gt;&lt;TD class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;Grupo 3&lt;/TD&gt;&lt;TD class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;P&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;Maria&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;05/03/2017&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;06/03/2017&lt;/TD&gt;&lt;TD class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;Grupo 3&lt;/TD&gt;&lt;TD class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;G&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;João&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;07/03/2017&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;07/03/2017&lt;/TD&gt;&lt;TD class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;Grupo 3&lt;/TD&gt;&lt;TD class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;G&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;João&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;09/03/2017&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;09/03/2017&lt;/TD&gt;&lt;TD class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;Grupo 3&lt;/TD&gt;&lt;TD class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;G&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;João&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;09/03/2017&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;09/03/2017&lt;/TD&gt;&lt;TD class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;Grupo 3&lt;/TD&gt;&lt;TD class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;M&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Consigo fazer isso?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Muito obrigada!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Dec 2017 13:50:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Socorro/m-p/1439838#M52789</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-22T13:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Socorro!</title>
      <link>https://community.qlik.com/t5/Brasil/Socorro/m-p/1439839#M52790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oi &lt;A href="https://community.qlik.com/qlik-users/78113"&gt;srchagas&lt;/A&gt;‌, boa tarde!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Desculpa o incomodo, seu scrip foi bastante útil.&lt;/P&gt;&lt;P&gt;Mas ainda não consegui resolver um detalhe, como descrevi abaixo.&lt;/P&gt;&lt;P&gt;E não faço ideia de como fazer isso. Será que conseguiria me ajudar?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Desde já, fico completamente agradecida pela atenção!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Dec 2017 18:41:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Socorro/m-p/1439839#M52790</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-26T18:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Socorro!</title>
      <link>https://community.qlik.com/t5/Brasil/Socorro/m-p/1439840#M52791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Não sei se descrevi bem o meu problema, mas é como se precisasse fazer um loop e cada vez que mudasse ou o nome, ou data, ou o grupo ou o porte ou mudasse &lt;SPAN style="font-size: 13.3333px;"&gt;de 0 para 1 e vice versa &lt;/SPAN&gt;(o que ainda não consegui encaixar nesses scrips acima). &lt;/P&gt;&lt;P&gt;Precisaria parar e registrar aquele nome, aquele data de fim, aquele grupo e aquele porte. E assim Sucessivamente. Começaria anotando o próximo nome, o próximo grupo, a data, o próximo porte, até que alguma dessas variáveis mudasse novamente. E assim sucessivamente, até o fim dos meus dados. Formando uma tabela que exemplifiquei acima.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alguém conseguiria me ajudar?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Dec 2017 18:48:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Socorro/m-p/1439840#M52791</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-27T18:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: Socorro!</title>
      <link>https://community.qlik.com/t5/Brasil/Socorro/m-p/1439841#M52792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Meu script faz isso , ele marca todas as mudanças de grupo pq ele simplesmente verifica as maiores e menores entrada da pessoa por dia e por grupo&lt;/P&gt;&lt;P&gt;Então a se a pessoa muda de grupo funciona o que não entendi é o que está faltando aí sinceridade &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Dec 2017 19:07:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Socorro/m-p/1439841#M52792</guid>
      <dc:creator>srchagas</dc:creator>
      <dc:date>2017-12-27T19:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: Socorro!</title>
      <link>https://community.qlik.com/t5/Brasil/Socorro/m-p/1439842#M52793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oi Thiago,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rodei o seu scrip e ele me deu exatamente essa tabela:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 630px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="105"&gt;Nome&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="105"&gt;DtInicialStatus&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="105"&gt;DtFinalStatus&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="105"&gt;Grupo&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="105"&gt;Porte&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="105"&gt;Status&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;João&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;07/03/2017&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;09/03/2017&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Grupo 3&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;G&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Trabalhado&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;João&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;09/03/2017&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;09/03/2017&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Grupo 3&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;M&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Trabalhado&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;João&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;08/03/2017&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;08/03/2017&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Grupo 4&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;G&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Folga&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;Maria&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;29/08/2016&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;31/01/2017&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Grupo 1&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;M&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Trabalhado&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;Maria&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;31/01/2017&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;31/01/2017&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Grupo 2&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;M&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Trabalhado&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;Maria&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;04/03/2017&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;04/03/2017&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Grupo 3&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;P&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Folga&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;Maria&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;02/02/2017&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;05/03/2017&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Grupo 3&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;P&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Trabalhado&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;Maria&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;05/03/2017&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;06/03/2017&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Grupo 3&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;G&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Trabalhado&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vamos pegar o exemplo da MARIA No grupo 3 P. Ela trabalho no dia 2,3. Folgou dia 4 e voltou trabalhar dia 5.&lt;/P&gt;&lt;P&gt;Eu sei que nesta tabela eu tenho que ela folgou dia 4. Mas pelo data de Iniíco e de Fim do Grupo 3 P, é como se ela tivesse iniciado dia 2 e terminado dia 5.&lt;/P&gt;&lt;P&gt;Filtrando somente o status trabalhado é Como se ela tivesse trabalhado&amp;nbsp; 4 dias, quando na verdade trabalhou apenas 3. &lt;/P&gt;&lt;P&gt;Eu precisaria que esse grupo 3 P fosse dividido em 2. Eu nem preciso saber o dia que ela folgou. Mas precisaria para esse exemplo que a Maria no grupo 3 P tivesse dois registro para os dias trabalhados:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="border: 0px; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;" width="342"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;Maria&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;02/02/2017&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;03/03/2017&lt;/TD&gt;&lt;TD class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;Grupo 3&lt;/TD&gt;&lt;TD class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;P&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;Maria&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;05/03/2017&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;05/03/2017&lt;/TD&gt;&lt;TD class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;Grupo 3&lt;/TD&gt;&lt;TD class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;P&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Entendeu?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Como se cada dia de folga também fosse um pausa. Ou seja, um&amp;nbsp; mesmo grupo, de uma mesa pessoa, de um mesmo porte, teria mais de um registro na tabela caso tivesse uma folga no período.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Para esses dados eu precisaria uma tabela de dias trabalhados final assim (essa tabela so tem os dias trabalhados):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="border: 0px; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;" width="342"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl68" height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;" width="64"&gt;Nome&lt;/TD&gt;&lt;TD class="xl68" style="padding-right: 4px; padding-left: 4px; border-top: 0 solid black; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;" width="75"&gt;Dia Inicio&lt;/TD&gt;&lt;TD class="xl68" style="padding-right: 4px; padding-left: 4px; border-top: 0 solid black; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;" width="75"&gt;Dia Fim&lt;/TD&gt;&lt;TD class="xl68" style="padding-right: 4px; padding-left: 4px; border-top: 0 solid black; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;" width="64"&gt;Grupo&lt;/TD&gt;&lt;TD class="xl68" style="padding-right: 4px; padding-left: 4px; border-top: 0 solid black; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;" width="64"&gt;Porte&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;Maria&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;29/08/2016&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;31/01/2017&lt;/TD&gt;&lt;TD class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;Grupo 1&lt;/TD&gt;&lt;TD class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;M&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;Maria&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;31/01/2017&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;31/01/2017&lt;/TD&gt;&lt;TD class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;Grupo 2&lt;/TD&gt;&lt;TD class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;M&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;Maria&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;02/02/2017&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;03/03/2017&lt;/TD&gt;&lt;TD class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;Grupo 3&lt;/TD&gt;&lt;TD class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;P&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;Maria&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;05/03/2017&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;05/03/2017&lt;/TD&gt;&lt;TD class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;Grupo 3&lt;/TD&gt;&lt;TD class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;P&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;Maria&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;05/03/2017&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;06/03/2017&lt;/TD&gt;&lt;TD class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;Grupo 3&lt;/TD&gt;&lt;TD class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;G&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;João&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;07/03/2017&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;07/03/2017&lt;/TD&gt;&lt;TD class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;Grupo 3&lt;/TD&gt;&lt;TD class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;G&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;João&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;09/03/2017&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;09/03/2017&lt;/TD&gt;&lt;TD class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;Grupo 3&lt;/TD&gt;&lt;TD class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;G&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;João&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;09/03/2017&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;09/03/2017&lt;/TD&gt;&lt;TD class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;Grupo 3&lt;/TD&gt;&lt;TD class="xl67" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;M&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Não sei se conseguir transmitir bem a minha idéia. rsrs&lt;/P&gt;&lt;P&gt;Mas Será que é possível fazer isso no qlik?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Muito Obrigada por tentar me ajudar &lt;A href="https://community.qlik.com/qlik-users/78113"&gt;srchagas&lt;/A&gt;!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Dec 2017 19:48:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Socorro/m-p/1439842#M52793</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-27T19:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: Socorro!</title>
      <link>https://community.qlik.com/t5/Brasil/Socorro/m-p/1439843#M52794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Entendi o problema , eu estava viajando e so voltei hoje, assim que conseguir finalizar os teste lhe mando&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2018 10:37:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Socorro/m-p/1439843#M52794</guid>
      <dc:creator>srchagas</dc:creator>
      <dc:date>2018-01-03T10:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Socorro!</title>
      <link>https://community.qlik.com/t5/Brasil/Socorro/m-p/1439844#M52795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Muito obrigada Thiago!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2018 11:02:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Socorro/m-p/1439844#M52795</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-03T11:02:33Z</dc:date>
    </item>
  </channel>
</rss>

