<?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 with multiple intervals in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/intervalmatch-with-multiple-intervals/m-p/404279#M701426</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look into the extended syntax of intervalmatch, where you can add a [Person in Household] as key to the interval match:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Key:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD * INLINE [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Persons in Household/IncomeStart/IncomeEnd/IntervalName&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1/24000/30000/&amp;lt;30%&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1/30001/40000/31-40%&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1/40001/50000/41-50%&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2/25000/31000/&amp;lt;30%&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2/31001/41000/31-40%&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2/41001/51000/41-50%&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;] (delimiter is '/');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Population:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD * INLINE [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Persons in Household/IncomeLevel&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1/24020&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2/45000&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1/45500&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;4/35000&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;] (delimiter is '/');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;IntervalMatch (IncomeLevel,[Persons in Household]) LOAD IncomeStart, IncomeEnd, [Persons in Household] Resident Key;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Nov 2012 22:32:05 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2012-11-05T22:32:05Z</dc:date>
    <item>
      <title>intervalmatch with multiple intervals</title>
      <link>https://community.qlik.com/t5/QlikView/intervalmatch-with-multiple-intervals/m-p/404278#M701425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hope someone can help me on this one.&amp;nbsp; I have table with income intervals, however there are different sets of intervals depending on the number of persons in the household.&amp;nbsp; For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Key:&lt;/P&gt;&lt;P&gt;Persons in Household/IncomeStart/IncomeEnd/IntervalName&lt;/P&gt;&lt;P&gt;1/24000/30000/&amp;lt;30%&lt;/P&gt;&lt;P&gt;1/30001/40000/31-40%&lt;/P&gt;&lt;P&gt;1/40001/50000/41-50%&lt;/P&gt;&lt;P&gt;2/25000/31000/&amp;lt;30%&lt;/P&gt;&lt;P&gt;2/31001/41000/31-40%&lt;/P&gt;&lt;P&gt;2/41001/51000/41-50%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and so on...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have another table that has persons in household and incomes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Population:&lt;/P&gt;&lt;P&gt;Persons in Household/IncomeLevel&lt;/P&gt;&lt;P&gt;1/24020&lt;/P&gt;&lt;P&gt;2/45000&lt;/P&gt;&lt;P&gt;1/45500&lt;/P&gt;&lt;P&gt;4/35000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and so on...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how do i script an intervalmatch that will match the IntervalName in the Key table to the IncomeLevel in the Population table, based on persons in household?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 20:20:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/intervalmatch-with-multiple-intervals/m-p/404278#M701425</guid>
      <dc:creator />
      <dc:date>2012-11-05T20:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: intervalmatch with multiple intervals</title>
      <link>https://community.qlik.com/t5/QlikView/intervalmatch-with-multiple-intervals/m-p/404279#M701426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look into the extended syntax of intervalmatch, where you can add a [Person in Household] as key to the interval match:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Key:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD * INLINE [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Persons in Household/IncomeStart/IncomeEnd/IntervalName&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1/24000/30000/&amp;lt;30%&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1/30001/40000/31-40%&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1/40001/50000/41-50%&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2/25000/31000/&amp;lt;30%&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2/31001/41000/31-40%&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2/41001/51000/41-50%&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;] (delimiter is '/');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Population:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD * INLINE [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Persons in Household/IncomeLevel&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1/24020&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2/45000&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1/45500&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;4/35000&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;] (delimiter is '/');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;IntervalMatch (IncomeLevel,[Persons in Household]) LOAD IncomeStart, IncomeEnd, [Persons in Household] Resident Key;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 22:32:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/intervalmatch-with-multiple-intervals/m-p/404279#M701426</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-11-05T22:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: intervalmatch with multiple intervals</title>
      <link>https://community.qlik.com/t5/QlikView/intervalmatch-with-multiple-intervals/m-p/404280#M701427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm getting synthetic tables when I do this.&amp;nbsp; I tried to work around that by joining:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join (Population)&lt;/P&gt;&lt;P&gt;&lt;EM&gt;IntervalMatch (IncomeLevel,[Persons in Household]) LOAD IncomeStart, IncomeEnd, [Persons in Household] Resident Key;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;and then, because the IntervalName field does not carry over, I did another join after the previous:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join (Population)&lt;/P&gt;&lt;P&gt;load *&lt;/P&gt;&lt;P&gt;resident Key;&lt;/P&gt;&lt;P&gt;drop table Key;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, there seems to be some data inconsistencies when I do this.&amp;nbsp; Some fields are missing IntervalNames when they are clearly marked in the Key table.&amp;nbsp; Anyone know what's going on?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 23:25:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/intervalmatch-with-multiple-intervals/m-p/404280#M701427</guid>
      <dc:creator />
      <dc:date>2012-11-05T23:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: intervalmatch with multiple intervals</title>
      <link>https://community.qlik.com/t5/QlikView/intervalmatch-with-multiple-intervals/m-p/404281#M701428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The created synthetic table is ok, but if you want to get rid of the synthetic key, I think you can do it like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;join IntervalMatch (IncomeLevel,[Persons in Household]) LOAD IncomeStart, IncomeEnd, [Persons in Household] Resident Key;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Left join (Population) LOAD * resident Key;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;drop table Key;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure why you are missing data when they should have a link to IntervalName. Could you upload some data that demonstrate this issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2012 08:42:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/intervalmatch-with-multiple-intervals/m-p/404281#M701428</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-11-06T08:42:55Z</dc:date>
    </item>
  </channel>
</rss>

