<?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 Count Open Items in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Intervalmatch-Count-Open-Items/m-p/1129269#M19773</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Basically, it looks like&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;EM&gt;DateRange:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD ID, created, If(Len(Trim(validated)),validated,Today()) as validated;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD ID, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; SetDateYear(Date#(created,'M/D'),2016) as created, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; SetDateYear(Date#(validated,'M/D'),2016) as validated &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;INLINE [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ID,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; created,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; validated&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2/1,&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; 2/5&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2/3,&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; 2/7&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;3,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2/3,&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; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;4,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2/5,&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; 2/6&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;5,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2/6,&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; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LinkTable:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD ID, Date(created+iterno()-1) as Date&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident DateRange&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;WHILE created+iterno()-1 &amp;lt;= validated;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 May 2016 23:22:31 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-05-23T23:22:31Z</dc:date>
    <item>
      <title>Intervalmatch Count Open Items</title>
      <link>https://community.qlik.com/t5/App-Development/Intervalmatch-Count-Open-Items/m-p/1129265#M19769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've been messing with this for 7+ days and I think I'm close, but could use a boost over the fence please:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are the details:&lt;/P&gt;&lt;P&gt;1 table:&amp;nbsp; id, created_when, validated_when + various other fields.&lt;/P&gt;&lt;P&gt;master calendar/island.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OBJECTIVE:&lt;/P&gt;&lt;P&gt;Combo chart with 3 elements:&lt;/P&gt;&lt;P&gt;Date as dimension&lt;/P&gt;&lt;P&gt;Line 1:&amp;nbsp; Items created that day&lt;/P&gt;&lt;P&gt;Line 2:&amp;nbsp; Items closed that day&lt;/P&gt;&lt;P&gt;...so far so good.&amp;nbsp; I created some flags, works fine.&lt;/P&gt;&lt;P&gt;Bars across the bottom, I'd like to show total OPEN(outstanding) items on that day.&lt;/P&gt;&lt;P&gt;Suffice to say, if an item is created on 2/1, closed on 2/10, then from 2/1-2/09 it would be among the counted 'open'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt; I *believe* IntervalMatch is the fix for this - but can't seem to make it work.&amp;nbsp; Again, I have 40+ hours of iterations with this, so I've read a lot and tried even more.&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Here is my code.&amp;nbsp; I originally loaded these tables to create my flags, but was hoping they'd double for intervalmatch.&amp;nbsp; maybe not?&amp;nbsp; The code produces no synthetic keys and does seem to link properly, and maybe I just don't know the fields to call in the chart measure? &lt;/DIV&gt;&lt;DIV&gt;Help??&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;OpenValidatedDate:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;id, &lt;/P&gt;&lt;P&gt;id as OVID,&lt;/P&gt;&lt;P&gt;created_when as CreatedDate,&lt;/P&gt;&lt;P&gt;created_when as Date,&lt;/P&gt;&lt;P&gt;1 as Flag_Created,&lt;/P&gt;&lt;P&gt;Resident rfi;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate (OpenValidatedDate)&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;id,&lt;/P&gt;&lt;P&gt;id as OVID, &lt;/P&gt;&lt;P&gt;validated_when as ValidatedDate,&lt;/P&gt;&lt;P&gt;validated_when as Date,&lt;/P&gt;&lt;P&gt;1 as Flag_ValidatedDate&lt;/P&gt;&lt;P&gt;Resident rfi&lt;/P&gt;&lt;P&gt;where exists (validated_when);&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;IntervalMatch:&lt;/P&gt;&lt;P&gt;IntervalMatch (Date)&lt;/P&gt;&lt;P&gt;Left join&lt;/P&gt;&lt;P&gt;Load distinct CreatedDate, ValidatedDate&lt;/P&gt;&lt;P&gt;resident OpenValidatedDate;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2016 21:22:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Intervalmatch-Count-Open-Items/m-p/1129265#M19769</guid>
      <dc:creator>joey_lutes</dc:creator>
      <dc:date>2016-05-23T21:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: Intervalmatch Count Open Items</title>
      <link>https://community.qlik.com/t5/App-Development/Intervalmatch-Count-Open-Items/m-p/1129266#M19770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at this blog post:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2940"&gt;Creating Reference Dates for Intervals&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use the reference date as dimension in your charts, then &lt;/P&gt;&lt;P&gt;=Count(DISTINCT id)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2016 21:30:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Intervalmatch-Count-Open-Items/m-p/1129266#M19770</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-05-23T21:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: Intervalmatch Count Open Items</title>
      <link>https://community.qlik.com/t5/App-Development/Intervalmatch-Count-Open-Items/m-p/1129267#M19771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Thanks for the quick response, but I don't think I must have explained myself well.&amp;nbsp; I tried that and it's not quite what I'm looking for.&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;I'll try again:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; created&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; validated&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2/1&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; 2/5&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2/3&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; 2/7&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2/3&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; -&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2/5&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; 2/6&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2/6&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; -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;I want a chart that shows all dates as the dimension (Master Calendar?) and a count of open items as such:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Open items&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;2/1&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; 1&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;2/2&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; 1&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;2/3&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; 3&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;2/4&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; 3&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;2/5&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; 3&amp;nbsp; (id 4 added, id 1 validated - ids 2, 3, 4 open)&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;2/6&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; 3&amp;nbsp; (id 5 added, id 4 validated - ids 2, 3, 5 open)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Basically, a running net total of open items per day of the year.&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Hope that makes sense?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Thanks so much for the quick reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2016 22:23:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Intervalmatch-Count-Open-Items/m-p/1129267#M19771</guid>
      <dc:creator>joey_lutes</dc:creator>
      <dc:date>2016-05-23T22:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Intervalmatch Count Open Items</title>
      <link>https://community.qlik.com/t5/App-Development/Intervalmatch-Count-Open-Items/m-p/1129268#M19772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right, I believe that's exactely what's demonstrated in HICs blog post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you apply the recipe with the WHILE loop, your table (you would need to fill in an end date for validated without value, like today())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; created&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; validated&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2/1&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; 2/5&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2/3&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; 2/7&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2/3&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; -&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2/5&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; 2/6&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2/6&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; -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;will transform to an additional table with fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ID, Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with one record per ID and date within date range between created and validated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you create a master calendar and link to Date field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use Date as dimension and &lt;/P&gt;&lt;P&gt;=Count(DISTINCT ID) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as count for the open IDs per Date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use calendar fields to drill up to week, month, year as needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW, an Intervalmatch LOAD prefix matching your master calendar to the date ranges (again, with end dates added for open intervals) will basically create the same, but I think the solution with the WHILE loop is much more simple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Stefan &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2016 23:08:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Intervalmatch-Count-Open-Items/m-p/1129268#M19772</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-05-23T23:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Intervalmatch Count Open Items</title>
      <link>https://community.qlik.com/t5/App-Development/Intervalmatch-Count-Open-Items/m-p/1129269#M19773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Basically, it looks like&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;EM&gt;DateRange:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD ID, created, If(Len(Trim(validated)),validated,Today()) as validated;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD ID, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; SetDateYear(Date#(created,'M/D'),2016) as created, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; SetDateYear(Date#(validated,'M/D'),2016) as validated &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;INLINE [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ID,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; created,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; validated&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2/1,&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; 2/5&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2/3,&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; 2/7&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;3,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2/3,&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; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;4,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2/5,&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; 2/6&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;5,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2/6,&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; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LinkTable:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD ID, Date(created+iterno()-1) as Date&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident DateRange&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;WHILE created+iterno()-1 &amp;lt;= validated;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2016 23:22:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Intervalmatch-Count-Open-Items/m-p/1129269#M19773</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-05-23T23:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: Intervalmatch Count Open Items</title>
      <link>https://community.qlik.com/t5/App-Development/Intervalmatch-Count-Open-Items/m-p/1129270#M19774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks so much Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think we're close - I appreciate the help more than I can express &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;Few questions I've come up with (as always!):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you tell me what the purpose of the SetDateYear statements are for?&lt;/P&gt;&lt;P&gt;I wonder why the 2 Load statements?&amp;nbsp; I notice if I remove the 2nd 'Load', it fails, so I left it in.&lt;/P&gt;&lt;P&gt;id is used in a variety of places, would this need to be a separate id (id as otherid) as it's a new table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's what I have with actual fieldnames.&amp;nbsp; Unfortunately, I'm getting an error that's stumping me.&amp;nbsp; error is in the bold area and reads:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-family: monospace; font-size: 13px;"&gt;Field not found - &amp;lt;created_when&amp;gt;: LOAD id, SetDateYear(Date#(created_when,'M/D'),2016) as created, SetDateYear(Date#(validated_when,'M/D'),2016) as validated resident rfi&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;created_when is the accurate fieldname and I seem to just be missing the problem.&lt;/P&gt;&lt;P&gt;rfi is the original datasource so I assumed the actual load would be a resident load of that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DateRange:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; id,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; created_when,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Len(Trim(validated_when)), validated_when, Today()) as validated;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; id,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; SetDateYear(Date#(created_when,'M/D'),2016) as created,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; SetDateYear(Date#(validated_when,'M/D'),2016) as validated&lt;/P&gt;&lt;P&gt;resident rfi;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LinkTable:&lt;/P&gt;&lt;P&gt;LOAD id, Date(created_when+iterno()-1) as Date&lt;/P&gt;&lt;P&gt;Resident DateRange&lt;/P&gt;&lt;P&gt;WHILE created_when+iterno()-1 &amp;lt;= validated;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thoughts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;....EDIT....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made a few changes which resulted in a synthetic key, then more which relieved it.&amp;nbsp; &lt;/P&gt;&lt;P&gt;The first thing I did was to comment out the 2nd load statement.&amp;nbsp; That ALMOST got us there.&amp;nbsp; The data was VERY close to being accurate, though there were areas where it wasn't as I tested it against the data source.&lt;/P&gt;&lt;P&gt;I know we're close . . .&amp;nbsp;&amp;nbsp;&amp;nbsp; Here are my iterations:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CURRENT::&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DateRange:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; id as DateRangeID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; created_when, &lt;/P&gt;&lt;P&gt;&amp;nbsp; If(Len(Trim(validated_when)), validated_when, Today()) as validated&lt;/P&gt;&lt;P&gt;// LOAD &lt;/P&gt;&lt;P&gt;// id,&lt;/P&gt;&lt;P&gt;//&amp;nbsp;&amp;nbsp; SetDateYear(Date#(created_when,'M/D'),2016) as created,&lt;/P&gt;&lt;P&gt;//&amp;nbsp;&amp;nbsp; SetDateYear(Date#(validated_when,'M/D'),2016) as validated&lt;/P&gt;&lt;P&gt;resident rfi;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LinkTable:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DateRangeID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DateRangeID as LinkID, &lt;/P&gt;&lt;P&gt;&amp;nbsp; Date(created_when+iterno()-1) as LinkCreatedDate&lt;/P&gt;&lt;P&gt;Resident DateRange&lt;/P&gt;&lt;P&gt;WHILE created_when+iterno()-1 &amp;lt;= validated;&lt;/P&gt;&lt;P&gt;------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;PREVIOUS:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;DateRange:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; id, &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; created_when, &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; If(Len(Trim(validated_when)), validated_when, Today()) as validated&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;// LOAD &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;// id,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;//&amp;nbsp;&amp;nbsp; SetDateYear(Date#(created_when,'M/D'),2016) as created,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;//&amp;nbsp;&amp;nbsp; SetDateYear(Date#(validated_when,'M/D'),2016) as validated&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;resident rfi;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LinkTable:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; id&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; Date(created_when+iterno()-1) as Date&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Resident DateRange&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;WHILE created_when+iterno()-1 &amp;lt;= validated;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I can see t his will get me where I'm going, just almost there.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 02:22:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Intervalmatch-Count-Open-Items/m-p/1129270#M19774</guid>
      <dc:creator>joey_lutes</dc:creator>
      <dc:date>2016-05-24T02:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Intervalmatch Count Open Items</title>
      <link>https://community.qlik.com/t5/App-Development/Intervalmatch-Count-Open-Items/m-p/1129271#M19775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your sample data misses year information in the date fields, so I think if you just interpret month and date, Qlik will assume 1900 as year for your sample data.&lt;/P&gt;&lt;P&gt;But to generate the accurate date range (especially when we replace missing end dates with today()!), we should explicitely state the year of your records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SetDateYear() is just a function that changes / setting the year for a date value. Have a look at the Date &amp;amp; Time functions in Qlik, there are a lot of them and there are different approaches to interpret the correct date from your text values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to take care to adapt the Date#() interpretation function to your input field format (or if they come in as numbers, just format them as date).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2954"&gt;Why don’t my dates work?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2622"&gt;Get the Dates Right&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do the transformation also in 1 LOAD step (without the preceding LOAD), which should perform better, but I tend to write it using the preceding LOAD for clarity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the field created_when is not found, have you maybe renamed the field or qualified the table in the LOAD that created rfi table? Have a look at the table viewer to see how the complete field name looks like.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would also suggest that you do the date transformation in the original rfi table LOAD (or don't forget to DROP rfi table to avoid having a mostly duplicate table in your data model).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are running into synthetic keys, then probably because other tables show same field names, assumingly Date, that link to both new rfi table and DateLink table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To help you more, you would need to post at least a screen shot of your data model.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 08:36:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Intervalmatch-Count-Open-Items/m-p/1129271#M19775</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-05-24T08:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: Intervalmatch Count Open Items</title>
      <link>https://community.qlik.com/t5/App-Development/Intervalmatch-Count-Open-Items/m-p/1129272#M19776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, thanks a lot.&lt;/P&gt;&lt;P&gt;Here's where we are today:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DateRange:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; id,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; created_when as rangecreated,&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(Len(Trim(validated_when)), validated_when, Today()) as rangevalidated&lt;/P&gt;&lt;P&gt;resident rfi;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LinkTable:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; id,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date(rangecreated+iterno()-1) as ReferenceDate&lt;/P&gt;&lt;P&gt;Resident DateRange&lt;/P&gt;&lt;P&gt;WHILE rangecreated+iterno()-1 &amp;lt;= rangevalidated;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My dates do have year - just didn't post that, so I removed that part.&lt;/P&gt;&lt;P&gt;As you see, I changed the fieldnames to make them unique, which has eliminated all synthetic errors.&lt;/P&gt;&lt;P&gt;No code issues currently, script loads fine, and when I count(distinct id), it ALMOST works!&lt;/P&gt;&lt;P&gt;The other weird issue is, when I use Date as my dimension (which is originally from the MasterCalendar, it only populates dates where events occur, not all of them now.&amp;nbsp; interesting behavior.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem I'm seeing is that in comparing the results to the actual data, it's just off in some places by a small amount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached a screenshot of my data model for you, also a spreadsheet showing what Qlik Sense is displaying (#N/A means no data displayed), and what the actual values should be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, SO close and thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="125615" alt="datamodelss.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/125615_datamodelss.JPG" style="height: 671px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="ss.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/125618_ss.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 16:05:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Intervalmatch-Count-Open-Items/m-p/1129272#M19776</guid>
      <dc:creator>joey_lutes</dc:creator>
      <dc:date>2016-05-24T16:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: Intervalmatch Count Open Items</title>
      <link>https://community.qlik.com/t5/App-Development/Intervalmatch-Count-Open-Items/m-p/1129273#M19777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to use the ReferenceDate as the dimension when you want to count the open IDs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may want to create a master calendar also for the ReferenceDate, if you want to drill up to lower granular calendar fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/283501"&gt;Tutorial - Using Common Date Dimensions and Shared Calendars&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this does not fix your issue, then could you maybe post a small sample QVD?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 16:21:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Intervalmatch-Count-Open-Items/m-p/1129273#M19777</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-05-24T16:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: Intervalmatch Count Open Items</title>
      <link>https://community.qlik.com/t5/App-Development/Intervalmatch-Count-Open-Items/m-p/1129274#M19778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I read the tutorial and chased the rabbit hole into canonical dates, multiple master calendars - just not sure which direction is correct.&amp;nbsp; Changing to using the ReferenceDate as the dimension made things worse.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm attaching my qvf so you can peek at what I have.&amp;nbsp; The actual graph is on the RFI Regional Summary tab, the sandbox I'm using is Sandbox2 &lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 17:12:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Intervalmatch-Count-Open-Items/m-p/1129274#M19778</guid>
      <dc:creator>joey_lutes</dc:creator>
      <dc:date>2016-05-24T17:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: Intervalmatch Count Open Items</title>
      <link>https://community.qlik.com/t5/App-Development/Intervalmatch-Count-Open-Items/m-p/1129275#M19779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe I have looked at the wrong charts, but I can't see that you are using ReferenceDate as dimension in you combo chart. The solution I suggested will not create the correct open count if you are using a different date field that is only linked by ID to the DateLink table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see that you also want to show the sum of created and validated IDs in your chart. To be able to do this easily, create flags for this in the DateLink table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DateRange:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD ID, created, If(Len(Trim(validated)),validated,Today()) as validated;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD ID,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; SetDateYear(Date#(created,'M/D'),2016) as created,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; SetDateYear(Date#(validated,'M/D'),2016) as validated&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;INLINE [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ID,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; created,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; validated&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2/1,&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; 2/5&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2/3,&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; 2/7&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;3,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2/3,&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; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;4,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2/5,&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; 2/6&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;5,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2/6,&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; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LinkTable:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD ID, Date(created+iterno()-1) as ReferenceDate,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;STRONG&gt; If(iterno()=1, 1,0) as CreatedFlag,&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; If(Date(created+iterno()-1) = validated, 1,0) as ValidatedFlag&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident DateRange&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;WHILE created+iterno()-1 &amp;lt;= validated;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then link your master calendar to the ReferenceDate, use ReferenceDate as dimension and as expressions&lt;/P&gt;&lt;P&gt;=Count(DISTINCT ID)&lt;/P&gt;&lt;P&gt;=Sum(CreatedFlag)&lt;/P&gt;&lt;P&gt;=Sum(ValidatedFlag)&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 23:15:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Intervalmatch-Count-Open-Items/m-p/1129275#M19779</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-05-24T23:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: Intervalmatch Count Open Items</title>
      <link>https://community.qlik.com/t5/App-Development/Intervalmatch-Count-Open-Items/m-p/1129276#M19780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok, so I took your suggestions.  Please see updated qvf.&lt;/P&gt;&lt;P&gt;If you'll look at the Sandbox2 tab, it will show you that it's close, but&lt;/P&gt;&lt;P&gt;not quite accurate.  I advise you to choose 'Port in SmartEdge &amp;amp; N&amp;amp;SIS&lt;/P&gt;&lt;P&gt;Check' as a 'Rule Name' as it narrows the data substantially.&lt;/P&gt;&lt;P&gt;If you'll noticed, there are no validated dates until 2/19, so the count&lt;/P&gt;&lt;P&gt;should be incrementing for each created item on dates prior, and it's not&lt;/P&gt;&lt;P&gt;consistently.  I'm not sure what it's doing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did make a change to the master calendar as referenced in 'Main'&lt;/P&gt;&lt;P&gt;(TempDate as ReferenceDate,)&lt;/P&gt;&lt;P&gt;Thoughts?&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>Wed, 25 May 2016 02:00:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Intervalmatch-Count-Open-Items/m-p/1129276#M19780</guid>
      <dc:creator>joey_lutes</dc:creator>
      <dc:date>2016-05-25T02:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: Intervalmatch Count Open Items</title>
      <link>https://community.qlik.com/t5/App-Development/Intervalmatch-Count-Open-Items/m-p/1129277#M19781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I currently can't see an anomaly. I count 9 created until 2/19 and the open id count shows 9 on that date.&lt;/P&gt;&lt;P&gt;Also the dates before seem ok to me. Could you point me specific to a date or ID that is not correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: note that our current script code creates a ReferenceDate for all dates between created and validated, including these dates.&lt;/P&gt;&lt;P&gt;If you don't want this, we can change it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 08:31:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Intervalmatch-Count-Open-Items/m-p/1129277#M19781</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-05-25T08:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: Intervalmatch Count Open Items</title>
      <link>https://community.qlik.com/t5/App-Development/Intervalmatch-Count-Open-Items/m-p/1129278#M19782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure what I was seeing - you are correct.&amp;nbsp; So if you select the Rule name 'Description SOEM vs Smartedge' it lays it out pretty well.&amp;nbsp; 40 (all total) created on 2/10, then slowly starts validating them.&lt;/P&gt;&lt;P&gt;What I do notice is that it shows the validation happens the day after - ie, if it validates on 2/14, it will show the reduction on 2/15.&amp;nbsp; This is an acceptable issue but if you know a quick way to solve that, theoretically the validation should reduce the total on the same day it's validated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as the dates go, I think we'll need the ability to control the dates a bit more - would we need a separate master calendar to link to all possible dates or?&amp;nbsp; I notice that my ranges are limited in some instances (due to no created/validated dates before/after certain days), and the user will prefer to limit their date dimension view themselves.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't thank you enough for all your help.&amp;nbsp; This has been a godsend.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 17:20:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Intervalmatch-Count-Open-Items/m-p/1129278#M19782</guid>
      <dc:creator>joey_lutes</dc:creator>
      <dc:date>2016-05-25T17:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: Intervalmatch Count Open Items</title>
      <link>https://community.qlik.com/t5/App-Development/Intervalmatch-Count-Open-Items/m-p/1129279#M19783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, that's good that my eyes still working &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your open count to exclude the validation date, maybe create an explicite open Flag:&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;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;LOAD ID, Date(created+iterno()-1) as ReferenceDate,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;If(iterno()=1, 1,0) as CreatedFlag,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; If(Date(created+iterno()-1) = validated, 1,0) as ValidatedFlag,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; If(&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;created+iterno()-1 &amp;lt; validated,1,0) as OpenFlag&lt;/EM&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;Resident DateRange&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;WHILE created+iterno()-1 &amp;lt;= validated;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Then Sum(OpenFlag) instead doing a Count(DISTINCT ID)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;And yes, I think you should create a master calendar for ReferenceDate, I thought you've already done this, how have you created it?&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2802"&gt;The Master Calendar&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 18:26:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Intervalmatch-Count-Open-Items/m-p/1129279#M19783</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-05-25T18:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: Intervalmatch Count Open Items</title>
      <link>https://community.qlik.com/t5/App-Development/Intervalmatch-Count-Open-Items/m-p/1129280#M19784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jury's still out on the other calendar.&amp;nbsp; I still don't quite understand how to integrate them or if I even need another one.&amp;nbsp; Another concept therein is the canonical date which I've played with, but is currently commented out.&amp;nbsp; Again, struggling with concept a bit there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on your last post, the graph is working nearly perfectly, thank you!&amp;nbsp; For some reason, 'today', &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Cleared(validated) and Open swap for some reason.&amp;nbsp; Strange behavior, and only on the current day (there is no actual data past 5/11 in this dataset).&amp;nbsp; Would you know why?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DateRange:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; id,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; created_when as createddate,&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(Len(Trim(validated_when)), validated_when, Today()) as validateddate&lt;/P&gt;&lt;P&gt;resident rfi;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LinkTable:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; id,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date(createddate+iterno()-1) as ReferenceDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(iterno()=1, 1,0) as Flag_Created,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Date(createddate+iterno()-1) = validateddate, 1,0) as Flag_Validated,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(createddate+iterno()-1 &amp;lt; validateddate,1,0) as Flag_Open&lt;/P&gt;&lt;P&gt;Resident DateRange&lt;/P&gt;&lt;P&gt;WHILE createddate+iterno()-1 &amp;lt;= validateddate;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture2.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/126410_Capture2.JPG" style="height: 494px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 22:06:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Intervalmatch-Count-Open-Items/m-p/1129280#M19784</guid>
      <dc:creator>joey_lutes</dc:creator>
      <dc:date>2016-05-31T22:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: Intervalmatch Count Open Items</title>
      <link>https://community.qlik.com/t5/App-Development/Intervalmatch-Count-Open-Items/m-p/1129281#M19785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that's due to the way that we create Today() as validateddate for every ID without a validateddate in the source data, than later on, we create the Flag_Validated for that date (though it should be still open logic wise).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe we can fix this by setting the validateddate for these ID to 1 day in the future, then filter the reference dates up to today:&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;&lt;EM&gt;DateRange:&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;LOAD&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; id,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; created_when as createddate,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;&amp;nbsp; If(Len(Trim(validated_when)), validated_when, &lt;STRONG&gt;Today()+1&lt;/STRONG&gt;) as validateddate&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;resident rfi;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;LinkTable:&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;LOAD *&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;&lt;STRONG&gt;WHERE ReferenceDate &amp;lt;= Today();&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;LOAD&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;&amp;nbsp; id,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;&amp;nbsp; Date(createddate+iterno()-1) as ReferenceDate,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(iterno()=1, 1,0) as Flag_Created,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Date(createddate+iterno()-1) = validateddate, 1,0) as Flag_Validated,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(createddate+iterno()-1 &amp;lt; validateddate,1,0) as Flag_Open&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;Resident DateRange&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;WHILE createddate+iterno()-1 &amp;lt;= validateddate;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 08:27:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Intervalmatch-Count-Open-Items/m-p/1129281#M19785</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-01T08:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: Intervalmatch Count Open Items</title>
      <link>https://community.qlik.com/t5/App-Development/Intervalmatch-Count-Open-Items/m-p/1129282#M19786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like that did the trick.&amp;nbsp; The Today()+1 makes sense, though I wouldn't have figured out the Load * where ReferenceDate &amp;lt;= Today().&amp;nbsp; Basically it's telling it to load all (only) data from yesterday and before, correct?&amp;nbsp; I would have put that statement after we set the ReferenceDate name.&amp;nbsp; I still have a lot to learn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for all your amazing help.&amp;nbsp; I think we're good &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 15:34:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Intervalmatch-Count-Open-Items/m-p/1129282#M19786</guid>
      <dc:creator>joey_lutes</dc:creator>
      <dc:date>2016-06-01T15:34:43Z</dc:date>
    </item>
  </channel>
</rss>

