<?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 Load resident table between 2 ranges in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-resident-table-between-2-ranges/m-p/184460#M49339</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if I understood the question, but tacking this onto the end of your load script appears to produce the result you asked for:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;Results:&lt;BR /&gt;LOAD num(fieldvalue('N_Fila',iterno())) as Result&lt;BR /&gt;AUTOGENERATE 1&lt;BR /&gt;WHILE len(fieldvalue('N_Fila',iterno()))&lt;BR /&gt;;&lt;BR /&gt;LEFT JOIN (Cuentas_Formula3)&lt;BR /&gt;INTERVALMATCH (Result)&lt;BR /&gt;LOAD min, max&lt;BR /&gt;RESIDENT Cuentas_Formula3&lt;BR /&gt;;&lt;BR /&gt;DROP TABLE Results;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Sep 2010 22:29:08 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2010-09-02T22:29:08Z</dc:date>
    <item>
      <title>Load resident table between 2 ranges</title>
      <link>https://community.qlik.com/t5/QlikView/Load-resident-table-between-2-ranges/m-p/184456#M49335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As you can see in the file I've updated, I have a file with 4 tables :&lt;/P&gt;&lt;P&gt;&lt;B&gt;1-&lt;/B&gt;&lt;B&gt;Origen datos (origin data) :&lt;/B&gt; Contains all the data information of some kind of scheme account. With idFile, description, type of scheme, and calculation.&lt;/P&gt;&lt;P&gt;&lt;B&gt;2-Cuenta_formula :&lt;/B&gt; Contains the Origin data filtered by the type of scheme 'F' (Formula).&lt;/P&gt;&lt;P&gt;&lt;B&gt;3- Cuenta_formula2 :&lt;/B&gt; Contains the 'Cuenta_formula' table, but I use the subfield() function to split the separators ( |, +).&lt;/P&gt;&lt;P&gt;&lt;B&gt;4- Cuenta_formula3 :&lt;/B&gt; Contains the 'Cuenta_formula2' table, but I added the minimum and the maximum of the range (..). By default if the row has no range, the minimum and maximum value would be the same.&lt;/P&gt;&lt;P&gt;What I want now is to show the whole range of numbers of each row, I mean :&lt;/P&gt;&lt;P&gt;What I have now in the last table, if I select N_Fila = '70' is :&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-2271_sourceID:2271" /&gt;&lt;/P&gt;&lt;P&gt;I want to create another table with 'N_Fila' and each number of the range, row by row.&lt;/P&gt;&lt;P&gt;In this case, if you check the original table "origen datos", you'll know that the range between "20..60" is 20,30,40,50,60.&lt;/P&gt;&lt;P&gt;And the final result would be :&lt;/P&gt;&lt;P&gt;N_Fila Result&lt;/P&gt;&lt;P&gt;70 20&lt;/P&gt;&lt;P&gt;70 30&lt;/P&gt;&lt;P&gt;70 40&lt;/P&gt;&lt;P&gt;70 50&lt;/P&gt;&lt;P&gt;70 60&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;How can I get this result?&lt;/B&gt;&lt;/P&gt;&lt;P&gt;I'm completely lost. I tried many combinations about loading two separate residents with left join, noconcatenate, for...loops and I can't get it.&lt;/P&gt;&lt;P&gt;Many thanks by advance.&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Sep 2010 23:47:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-resident-table-between-2-ranges/m-p/184456#M49335</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2010-09-01T23:47:18Z</dc:date>
    </item>
    <item>
      <title>Load resident table between 2 ranges</title>
      <link>https://community.qlik.com/t5/QlikView/Load-resident-table-between-2-ranges/m-p/184457#M49336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the original table "origen datos" has separate rows for each value - 20,30,40,50,60, within each group (e.g. N_Fila)=70 and your new table has one row for N_Fila=70, then if you do an inner join of the teo tables you will get your desired result.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;e.g.&lt;BR /&gt;&lt;BR /&gt;"origen_datos":&lt;BR /&gt;&lt;BR /&gt;n_fila, data&lt;BR /&gt;&lt;BR /&gt;70,20&lt;BR /&gt;70,30&lt;BR /&gt;70,40&lt;BR /&gt;70,50&lt;BR /&gt;70,60&lt;BR /&gt;80,10&lt;BR /&gt;80,20&lt;BR /&gt;&lt;BR /&gt;summary table (cuenta formula2?):&lt;BR /&gt;n_fila, other stuff&lt;BR /&gt;70, other1&lt;BR /&gt;80, other2&lt;BR /&gt;&lt;BR /&gt;if you innner join the two tables on n_fila you will get&lt;BR /&gt;n_fila,data,other&lt;BR /&gt;70,20,other1&lt;BR /&gt;70,30,other1&lt;BR /&gt;70,40,other1&lt;BR /&gt;70,50,other1&lt;BR /&gt;70,60,other1&lt;BR /&gt;80,10,other2&lt;BR /&gt;80,20,other2&lt;BR /&gt;&lt;BR /&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Sep 2010 00:34:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-resident-table-between-2-ranges/m-p/184457#M49336</guid>
      <dc:creator />
      <dc:date>2010-09-02T00:34:37Z</dc:date>
    </item>
    <item>
      <title>Load resident table between 2 ranges</title>
      <link>https://community.qlik.com/t5/QlikView/Load-resident-table-between-2-ranges/m-p/184458#M49337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your answer Steve. But this is not what I want, it's kind of complicated.&lt;/P&gt;&lt;P&gt;My last parsing resident table is "Cuenta_Formula3" and in there I have a number and the range of numbers that belongs to him.&lt;/P&gt;&lt;P&gt;The list of all the numbers is in the "Origen Datos" Table, so I have to do some kind of merge between "OrigenDatos" and "Cuenta_Formula3" to get the range of numbers that I want.&lt;/P&gt;&lt;P&gt;I mean, if you select N_Fila = '70' in the attached file, you'll see in the table "Cuenta_Formula3" :&lt;/P&gt;&lt;P&gt;&lt;B&gt;N_Fila Range&lt;BR /&gt;70 20..60&lt;/B&gt;&lt;BR /&gt;&lt;BR /&gt;And what I need is to get the numbers between 20 and 60, and this information is inside the "OrigenDatos" table, and the final result would be :&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;N_Fila Result&lt;/B&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;70 20&lt;/P&gt;&lt;P style="font-weight: bold"&gt;70 30&lt;/P&gt;&lt;P style="font-weight: bold"&gt;70 40&lt;/P&gt;&lt;P style="font-weight: bold"&gt;70 50&lt;/P&gt;&lt;P style="font-weight: bold"&gt;70 60&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for trying to help me Steve.&lt;/P&gt;&lt;P&gt;Anybody knows what can I do in this kind of situations? I'm completely stuck.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Sep 2010 16:44:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-resident-table-between-2-ranges/m-p/184458#M49337</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2010-09-02T16:44:48Z</dc:date>
    </item>
    <item>
      <title>Load resident table between 2 ranges</title>
      <link>https://community.qlik.com/t5/QlikView/Load-resident-table-between-2-ranges/m-p/184459#M49338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know that the solution is close, I tried left joins, right joins, inner joins, concatenates, non concatenates.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Also tried for loops triying to merge the two tables with mapping tables. But for me there is no way.&lt;/P&gt;&lt;P&gt;Anybody could help me with this stuff?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Sep 2010 19:25:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-resident-table-between-2-ranges/m-p/184459#M49338</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2010-09-02T19:25:05Z</dc:date>
    </item>
    <item>
      <title>Load resident table between 2 ranges</title>
      <link>https://community.qlik.com/t5/QlikView/Load-resident-table-between-2-ranges/m-p/184460#M49339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if I understood the question, but tacking this onto the end of your load script appears to produce the result you asked for:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;Results:&lt;BR /&gt;LOAD num(fieldvalue('N_Fila',iterno())) as Result&lt;BR /&gt;AUTOGENERATE 1&lt;BR /&gt;WHILE len(fieldvalue('N_Fila',iterno()))&lt;BR /&gt;;&lt;BR /&gt;LEFT JOIN (Cuentas_Formula3)&lt;BR /&gt;INTERVALMATCH (Result)&lt;BR /&gt;LOAD min, max&lt;BR /&gt;RESIDENT Cuentas_Formula3&lt;BR /&gt;;&lt;BR /&gt;DROP TABLE Results;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Sep 2010 22:29:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-resident-table-between-2-ranges/m-p/184460#M49339</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-09-02T22:29:08Z</dc:date>
    </item>
    <item>
      <title>Load resident table between 2 ranges</title>
      <link>https://community.qlik.com/t5/QlikView/Load-resident-table-between-2-ranges/m-p/184461#M49340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much John!! I appreciate a lot your help. I'm pretty new here and this kind of stuff is hard work for me. I got tired struggling my head.&lt;/P&gt;&lt;P&gt;I only need to add this last one resident to get the desired result :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cuentas_Formula4 :&lt;BR /&gt;&lt;BR /&gt;load distinct&lt;BR /&gt;&lt;BR /&gt;N_Fila, Result&lt;BR /&gt;&lt;BR /&gt;resident Cuentas_Formula3;&lt;/P&gt;&lt;P&gt;drop table Cuentas_Formula3;&lt;/P&gt;&lt;P&gt;Thank you. See you around!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Sep 2010 08:51:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-resident-table-between-2-ranges/m-p/184461#M49340</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2010-09-03T08:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: Load resident table between 2 ranges</title>
      <link>https://community.qlik.com/t5/QlikView/Load-resident-table-between-2-ranges/m-p/184462#M49341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;LOAD num(fieldvalue('N_Fila',iterno())) as Result&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;AUTOGENERATE 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;WHILE len(fieldvalue('N_Fila',iterno()))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;and not&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;LOAD num(fieldvalue('N_Fila',iterno())) as Result&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;AUTOGENERATE 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;WHILE fieldvalue('N_Fila',iterno())&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2012 10:45:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-resident-table-between-2-ranges/m-p/184462#M49341</guid>
      <dc:creator />
      <dc:date>2012-07-11T10:45:26Z</dc:date>
    </item>
  </channel>
</rss>

