<?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: Sections in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sections/m-p/342926#M126657</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Intervalmatch should works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLE:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Descripcion,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Desde,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //since&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hasta&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //to&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;tableX;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don´t have the intervals in a table you must create it with an Inline or write it in an excel to read it after,&lt;/P&gt;&lt;P&gt;if you&amp;nbsp; make an inline would be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLE:&lt;/P&gt;&lt;P&gt;Load inline&lt;/P&gt;&lt;P&gt;[ ID, Descripcion, Desde, Hasta&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1,&amp;nbsp; 'No debt', 0, 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 2, '1-30', 1 , 30&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;&amp;nbsp; &lt;/P&gt;&lt;P&gt;INNER JOIN INTERVALMATCH(DiasMora)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Desde,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hasta&lt;/P&gt;&lt;P&gt;RESIDENT TABLE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I you need to make calculation you can do it grouping by the ID&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Aug 2012 16:57:09 GMT</pubDate>
    <dc:creator>chematos</dc:creator>
    <dc:date>2012-08-07T16:57:09Z</dc:date>
    <item>
      <title>Sections</title>
      <link>https://community.qlik.com/t5/QlikView/Sections/m-p/342922#M126653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have many databases with the same columns importants. 2 of them contain dates like debt date (for month... in this case May) the other column contains endmonth(31/05/2012). Extracting debt Days I do the next 31/05/2012 - Debt date (can be 01 until 20 of may) example 31/05/2012 - 15/05/2012 = 16 days.&lt;/P&gt;&lt;P&gt;I have a new column with many days 1,2,3,4,5,6,7,etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to do a stratification with thouse days. When the debt date = endMonth (No debt) 41060 = 31/05/2012&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Estratificacion:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;If(DiasMora = 41060,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dual('No debt',1),&lt;/P&gt;&lt;P&gt;If(DiasMora&amp;gt;=1&amp;nbsp; And&amp;nbsp;&amp;nbsp; DiasMora &amp;lt;=30,&amp;nbsp; Dual('1-30 Días',2),&lt;/P&gt;&lt;P&gt;If(DiasMora&amp;gt;=31&amp;nbsp; And&amp;nbsp; DiasMora &amp;lt;=60,&amp;nbsp; Dual('31-60 Días',3),&lt;/P&gt;&lt;P&gt;if(DiasMora&amp;gt;=31&amp;nbsp; And&amp;nbsp; DiasMora&amp;lt;=60,&amp;nbsp;&amp;nbsp; Dual('31-60 Días',3),&lt;/P&gt;&lt;P&gt;if(DiasMora&amp;gt;=61&amp;nbsp; And&amp;nbsp; DiasMora&amp;lt;=90,&amp;nbsp;&amp;nbsp; Dual('61-90 Días',4),&lt;/P&gt;&lt;P&gt;if(DiasMora&amp;gt;=91&amp;nbsp; And&amp;nbsp; DiasMora&amp;lt;=120,&amp;nbsp; Dual('91-120 Días',5),&lt;/P&gt;&lt;P&gt;if(DiasMora&amp;gt;=121 And&amp;nbsp; DiasMora&amp;lt;=150,&amp;nbsp; Dual('121-150 Días',6),&lt;/P&gt;&lt;P&gt;if(DiasMora&amp;gt;=151 And&amp;nbsp; DiasMora&amp;lt;=180,&amp;nbsp; Dual('151-180 Días',7),&lt;/P&gt;&lt;P&gt;if(DiasMora&amp;gt;=181 And&amp;nbsp; DiasMora&amp;lt;=210,&amp;nbsp; Dual('181-210 Días',8)))))))))) as Estratificacion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I create the tables (Dimenssion: Estratificacion)&amp;nbsp; (expression Total_Debt)&lt;/P&gt;&lt;P&gt;Appears:&lt;/P&gt;&lt;P&gt;No debt 10000&lt;/P&gt;&lt;P&gt;1-30&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10000&lt;/P&gt;&lt;P&gt;31-60&amp;nbsp;&amp;nbsp;&amp;nbsp; 10000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;10000 is the total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to get the real stratification. This work if I put this formula with aggr in the expression. But QlikView its getting too slow. I need this work into the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2012 13:37:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sections/m-p/342922#M126653</guid>
      <dc:creator>pgalvezt</dc:creator>
      <dc:date>2012-08-07T13:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: Sections</title>
      <link>https://community.qlik.com/t5/QlikView/Sections/m-p/342923#M126654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use Interval Match in your load script to bucket your items rather than an if statement then just use the new item as a dimension&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2012 13:43:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sections/m-p/342923#M126654</guid>
      <dc:creator />
      <dc:date>2012-08-07T13:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: Sections</title>
      <link>https://community.qlik.com/t5/QlikView/Sections/m-p/342924#M126655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply. Could you please put an example with my intervals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2012 15:48:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sections/m-p/342924#M126655</guid>
      <dc:creator>pgalvezt</dc:creator>
      <dc:date>2012-08-07T15:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sections</title>
      <link>https://community.qlik.com/t5/QlikView/Sections/m-p/342925#M126656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any Help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2012 16:13:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sections/m-p/342925#M126656</guid>
      <dc:creator>pgalvezt</dc:creator>
      <dc:date>2012-08-07T16:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: Sections</title>
      <link>https://community.qlik.com/t5/QlikView/Sections/m-p/342926#M126657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Intervalmatch should works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLE:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Descripcion,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Desde,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //since&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hasta&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //to&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;tableX;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don´t have the intervals in a table you must create it with an Inline or write it in an excel to read it after,&lt;/P&gt;&lt;P&gt;if you&amp;nbsp; make an inline would be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLE:&lt;/P&gt;&lt;P&gt;Load inline&lt;/P&gt;&lt;P&gt;[ ID, Descripcion, Desde, Hasta&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1,&amp;nbsp; 'No debt', 0, 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 2, '1-30', 1 , 30&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;&amp;nbsp; &lt;/P&gt;&lt;P&gt;INNER JOIN INTERVALMATCH(DiasMora)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Desde,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hasta&lt;/P&gt;&lt;P&gt;RESIDENT TABLE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I you need to make calculation you can do it grouping by the ID&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2012 16:57:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sections/m-p/342926#M126657</guid>
      <dc:creator>chematos</dc:creator>
      <dc:date>2012-08-07T16:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: Sections</title>
      <link>https://community.qlik.com/t5/QlikView/Sections/m-p/342927#M126658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok Im gonna to do that and let you know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2012 17:41:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sections/m-p/342927#M126658</guid>
      <dc:creator>pgalvezt</dc:creator>
      <dc:date>2012-08-07T17:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: Sections</title>
      <link>https://community.qlik.com/t5/QlikView/Sections/m-p/342928#M126659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works! Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2012 19:13:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sections/m-p/342928#M126659</guid>
      <dc:creator>pgalvezt</dc:creator>
      <dc:date>2012-08-07T19:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: Sections</title>
      <link>https://community.qlik.com/t5/QlikView/Sections/m-p/342929#M126660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;INNER JOIN INTERVALMATCH(DiasMora)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Descripción&lt;/P&gt;&lt;P&gt;RESIDENT Estratificacion;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eso deberia ser así:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INNER JOIN INTERVALMATCH(DiasMora)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Inicio, &lt;/P&gt;&lt;P&gt;Fin&lt;/P&gt;&lt;P&gt;RESIDENT Estratificacion;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;En la tabla de estratificación debes tener un ID para identificar cada rango que quieras, un INICIO, un FIN y la DESCRIPCION de cada rango.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luego puedes usar DiasMora con el intervalmatch que te he puesto y si quieres agregar otro campo junto con DiasMora, puedes usar el intervalmatch así:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INNER JOIN INTERVALMATCH(DiasMora, CampoValor)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Inicio, &lt;/P&gt;&lt;P&gt;Fin&lt;/P&gt;&lt;P&gt;RESIDENT Estratificacion;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;así tendrás el valor para hacer el sum() asociado con cada ID de cada rango, sino, tienes que hacer un left join o relacionar el ID de Estratificacion con la tabla donde tengas los valores que quieres sumar para calcular los totales.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2012 20:24:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sections/m-p/342929#M126660</guid>
      <dc:creator>chematos</dc:creator>
      <dc:date>2012-08-07T20:24:37Z</dc:date>
    </item>
  </channel>
</rss>

