<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: IntervalMatch com Critério in Brasil</title>
    <link>https://community.qlik.com/t5/Brasil/IntervalMatch-com-Crit%C3%A9rio/m-p/1177699#M41345</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FATO:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * Inline&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;tipo,rota&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;carro,5&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;carro,7&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;caminhao,3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;caminhao,8&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DIMENSAO:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * Inline&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;rota_in,rota_fn,tipo,origem,destino,viagem&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1,5,carro,SP,RJ,Interestadual&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;6,10,carro,SP,SP,Estadual&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1,5,caminhao,SP,SP,Estadual&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;6,10,caminhao,SP,SP,Interestadual&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Left Join (DIMENSAO)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IntervalMatch(rota, tipo)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD rota_in,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; rota_fn,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; tipo&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident DIMENSAO;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table FATO;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/128925_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Jun 2016 04:16:50 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-06-23T04:16:50Z</dc:date>
    <item>
      <title>IntervalMatch com Critério</title>
      <link>https://community.qlik.com/t5/Brasil/IntervalMatch-com-Crit%C3%A9rio/m-p/1177698#M41344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Boa Noite,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Estou tentando consolidar em uma tabela fato alguns campos de um tabela de dimensão.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FATO:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="fato.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/128921_fato.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DIMENSÃO:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="dimensao.JPG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/128922_dimensao.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Para realizar esse operação preciso fazer um busca da rota entre as rotas inicias e finais respeitando o tipo de veiculo afim de obter o resultado abaixo:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RESULTADO:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="resultado.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/128920_resultado.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Já revirei a internet em busca de soluções mas não consegui encontrar nenhuma, e o intervalmatch simples sempre duplica as as linhas pois não estou conseguindo respeitar o critério tipo e as faixas de rota se repetem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Por favor, alguém já passou por esse problema pode ajudar?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Anexo o .qvw com um InLine das tabelas Fato e Dimensão e um modelo em .xlsx para quem preferir.&lt;/P&gt;&lt;P&gt;**Me pergunto se criar uma função em java seria uma solução mais assertiva.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Desde já, meu muito obrigado pela ajuda!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2016 00:49:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/IntervalMatch-com-Crit%C3%A9rio/m-p/1177698#M41344</guid>
      <dc:creator />
      <dc:date>2016-06-23T00:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: IntervalMatch com Critério</title>
      <link>https://community.qlik.com/t5/Brasil/IntervalMatch-com-Crit%C3%A9rio/m-p/1177699#M41345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FATO:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * Inline&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;tipo,rota&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;carro,5&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;carro,7&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;caminhao,3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;caminhao,8&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DIMENSAO:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * Inline&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;rota_in,rota_fn,tipo,origem,destino,viagem&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1,5,carro,SP,RJ,Interestadual&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;6,10,carro,SP,SP,Estadual&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1,5,caminhao,SP,SP,Estadual&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;6,10,caminhao,SP,SP,Interestadual&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Left Join (DIMENSAO)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IntervalMatch(rota, tipo)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD rota_in,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; rota_fn,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; tipo&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident DIMENSAO;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table FATO;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/128925_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2016 04:16:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/IntervalMatch-com-Crit%C3%A9rio/m-p/1177699#M41345</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-23T04:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: IntervalMatch com Critério</title>
      <link>https://community.qlik.com/t5/Brasil/IntervalMatch-com-Crit%C3%A9rio/m-p/1177700#M41346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alternatively, you can try this also:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FATO:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; tipo&amp;amp;rota as Key&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Inline&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;tipo,rota&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;carro,5&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;carro,7&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;caminhao,3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;caminhao,8&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DIMENSAO:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where Exists(Key, tipo&amp;amp;rota);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; rota_in + IterNo() - 1 as rota&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;While rota_in + IterNo() - 1 &amp;lt;= rota_fn;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * Inline&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;rota_in,rota_fn,tipo,origem,destino,viagem&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1,5,carro,SP,RJ,Interestadual&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;6,10,carro,SP,SP,Estadual&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1,5,caminhao,SP,SP,Estadual&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;6,10,caminhao,SP,SP,Interestadual&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table FATO;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2016 04:41:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/IntervalMatch-com-Crit%C3%A9rio/m-p/1177700#M41346</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-23T04:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: IntervalMatch com Critério</title>
      <link>https://community.qlik.com/t5/Brasil/IntervalMatch-com-Crit%C3%A9rio/m-p/1177701#M41347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Veja esse post: &lt;A href="https://blogdonicolett.com.br/2015/05/03/intervalmatch-estendido-na-pratica/" title="https://blogdonicolett.com.br/2015/05/03/intervalmatch-estendido-na-pratica/"&gt;https://blogdonicolett.com.br/2015/05/03/intervalmatch-estendido-na-pratica/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2016 14:14:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/IntervalMatch-com-Crit%C3%A9rio/m-p/1177701#M41347</guid>
      <dc:creator>nicolett_yuri</dc:creator>
      <dc:date>2016-06-23T14:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: IntervalMatch com Critério</title>
      <link>https://community.qlik.com/t5/Brasil/IntervalMatch-com-Crit%C3%A9rio/m-p/1177702#M41348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Obrigado pela ajuda.&lt;/P&gt;&lt;P&gt;Essa técnica&amp;nbsp; amplia muito a aplicabilidade do QlikView !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2016 02:10:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/IntervalMatch-com-Crit%C3%A9rio/m-p/1177702#M41348</guid>
      <dc:creator />
      <dc:date>2016-06-29T02:10:41Z</dc:date>
    </item>
  </channel>
</rss>

