<?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: Count/distinct over time in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-distinct-over-time/m-p/866404#M995698</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe in the script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;a:&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;Order, Date, Premise&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2312323, 3/2/2015, 5/3/2015&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2312323, 3/3/2015, 5/6/2015&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2312323, 3/4/2015, 5/10/2015&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1234324, 3/2/2015, 6/3/2015, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1234324, 3/3/2015, 6/3/2015&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1234324, 3/4/2015, 6/3/2015&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;5678901, 3/2/2015, 4/16/2015&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;5678901, 3/3/2015, 4/19/2015&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;5678901, 3/4/2015, 4/16/2015&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;EM&gt;f:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load *, if(Order=Peek(Order) and Premise&amp;lt;&amp;gt;peek(Premise), 1, 0) as FlagChanged&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident a&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;order by Order, Date;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;drop Table a;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then the chart is just a sum(FlagChanged)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/91531_1.png" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Jul 2015 19:12:55 GMT</pubDate>
    <dc:creator>maxgro</dc:creator>
    <dc:date>2015-07-01T19:12:55Z</dc:date>
    <item>
      <title>Count/distinct over time</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-over-time/m-p/866403#M995697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on counting how many times the promise date for an order changed over time. The pivot table I made looks like this:\\\&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Order&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;3/2/2015&lt;BR /&gt;&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;3/3/2015&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;3/4/2015&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2312323&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5/3/2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5/6/2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5/10/2015&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1234324&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;6/3/2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;6/3/2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;6/3/2015&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;5678901&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4/16/2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4/19/2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4/16/2015&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dates in the data cells are the promise dates. My question is if there's a way of counting how many times each order's promise dates changed during the life of the order? Currently I am using Count(Distinct()) but in a case like Order #&lt;SPAN style="font-size: 13.3333330154419px;"&gt;5678901, it would only count that it changed once because it went back to the same promise date. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my current expression in the table where I am counting: if((count(distinct([Promise Date]))-1)&amp;gt;=0,(count(distinct([Promise Date]))-1),'-')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The results I would want in this example would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Order, # of Changes&lt;/P&gt;&lt;P&gt;2312323, 2&lt;/P&gt;&lt;P&gt;1234324,0&lt;/P&gt;&lt;P&gt;5678901,2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure if this is possible but I would appreciate any help I can get.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 18:56:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-over-time/m-p/866403#M995697</guid>
      <dc:creator />
      <dc:date>2015-07-01T18:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: Count/distinct over time</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-over-time/m-p/866404#M995698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe in the script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;a:&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;Order, Date, Premise&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2312323, 3/2/2015, 5/3/2015&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2312323, 3/3/2015, 5/6/2015&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2312323, 3/4/2015, 5/10/2015&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1234324, 3/2/2015, 6/3/2015, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1234324, 3/3/2015, 6/3/2015&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1234324, 3/4/2015, 6/3/2015&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;5678901, 3/2/2015, 4/16/2015&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;5678901, 3/3/2015, 4/19/2015&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;5678901, 3/4/2015, 4/16/2015&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;EM&gt;f:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load *, if(Order=Peek(Order) and Premise&amp;lt;&amp;gt;peek(Premise), 1, 0) as FlagChanged&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident a&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;order by Order, Date;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;drop Table a;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then the chart is just a sum(FlagChanged)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/91531_1.png" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 19:12:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-over-time/m-p/866404#M995698</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-07-01T19:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: Count/distinct over time</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-over-time/m-p/866405#M995699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you could include another field to make promise date unique:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count(distinct [Promise Date]&amp;amp;[Another Field])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not you will need some within the script, maybe a rowno() or calculate it directly within an ordered resident-load with peek() or previous(): &lt;A href="https://community.qlik.com/qlik-blogpost/3048"&gt;Peek() vs Previous() – When to Use Each&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 19:16:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-over-time/m-p/866405#M995699</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-07-01T19:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Count/distinct over time</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-over-time/m-p/866406#M995700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't make an inline table like that in the script though, mainly because this data in my pivot table is being pulled from many files and has thousands of orders in each file. The table I created in this discussion pretty much just outlines what I am looking at for data. Sorry I didn't make that clear! So I'm not sure if I can do the rest of your suggestion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 19:17:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-over-time/m-p/866406#M995700</guid>
      <dc:creator />
      <dc:date>2015-07-01T19:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: Count/distinct over time</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-over-time/m-p/866407#M995701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Inline from &lt;A href="https://community.qlik.com/qlik-users/10670"&gt;maxgro&lt;/A&gt; was also just an example. You could simply use your table-load - maybe you need to load them twice if your table isn't ordered properly for the peek()-function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 19:24:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-over-time/m-p/866407#M995701</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-07-01T19:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Count/distinct over time</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-over-time/m-p/866408#M995702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All of the files I am loading look more like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Aged Orders - March]:&lt;/P&gt;&lt;P&gt;LOAD Date(Date#(Mid(FileName(),6,6),'MMDDYY')) as Date,&lt;/P&gt;&lt;P&gt;//Above line is for pulling date from file name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sales Doc.],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Item,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; Upper(Status) as Status,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Promise Date],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sales Doc.] &amp;amp; Item as [Order],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Since the Date is created from an expression in the script, can you still use Peek and Premise like &lt;A href="https://community.qlik.com/qlik-users/10670"&gt;maxgro&lt;/A&gt;‌ suggested? I'm just confused on how to use Peek, Previous, Premise, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, the pivot table was created from the Date and Order fields, with the Promise Date in the data cells.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 19:46:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-over-time/m-p/866408#M995702</guid>
      <dc:creator />
      <dc:date>2015-07-01T19:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: Count/distinct over time</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-over-time/m-p/866409#M995703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alex,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script will look somehow like this. (Adding the piece of code suggested by &lt;SPAN style="font-size: 11.6999998092651px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;A href="https://community.qlik.com/people/maxgro"&gt;maxgro&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&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;[Aged Orders - March&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;_temp&lt;/SPAN&gt;]:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD Date(Date#(Mid(FileName(),6,6),'MMDDYY')) as Date,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;//Above line is for pulling date from file name&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sales Doc.],&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Item,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; Upper(Status) as Status,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Promise Date],&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sales Doc.] &amp;amp; Item as [Order],&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bla bla... FROM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bla bla&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&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Aged Orders - March]&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-family: inherit;"&gt;&lt;EM&gt;load *,&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-family: inherit;"&gt;&lt;EM&gt; if(Order=Peek(Order) and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Promise Date]&lt;/SPAN&gt;&amp;lt;&amp;gt;peek(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Promise Date]&lt;/SPAN&gt;), 1, 0) as FlagChanged&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-family: inherit;"&gt;&lt;EM&gt;Resident&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Aged Orders - March&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;_temp&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;]&lt;/SPAN&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-family: inherit;"&gt;&lt;EM&gt;order by Order, Date;&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-family: inherit;"&gt;&lt;EM&gt;drop Table &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Aged Orders - March&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;_temp&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;]&lt;/SPAN&gt;;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-family: inherit;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: inherit; line-height: 1.5em; font-weight: inherit;"&gt;&lt;EM&gt;After Reloading the script,&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: inherit; line-height: 1.5em; font-weight: inherit;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: inherit; line-height: 1.5em; font-weight: inherit;"&gt;&lt;EM&gt; Add the expression&amp;nbsp;&amp;nbsp; '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sum(FlagChanged)&lt;/SPAN&gt; '&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;&amp;nbsp;&amp;nbsp; to your pivot table.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: inherit; line-height: 1.5em; font-weight: inherit;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: inherit; line-height: 1.5em; font-weight: inherit;"&gt;&lt;EM&gt;Note : Premise is not a qlikview function, its a field name used here.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: inherit; line-height: 1.5em; font-weight: inherit;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: inherit; line-height: 1.5em; font-weight: inherit;"&gt;&lt;EM&gt;Thanks&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: inherit; line-height: 1.5em; font-weight: inherit;"&gt;&lt;EM&gt;krishna&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;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 20:03:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-over-time/m-p/866409#M995703</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2015-07-01T20:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Count/distinct over time</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-over-time/m-p/866410#M995704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I load both of those right? The [Aged Orders - March]_temp and the second one as well?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 20:13:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-over-time/m-p/866410#M995704</guid>
      <dc:creator />
      <dc:date>2015-07-01T20:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Count/distinct over time</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-over-time/m-p/866411#M995705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;[Aged Orders - March]&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;load *,&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;if(Order=Peek(Order) and &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;[Promise Date]&lt;/SPAN&gt;&amp;lt;&amp;gt;peek(&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;[Promise Date]&lt;/SPAN&gt;), 1, 0) as FlagChanged&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;Resident&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;[Aged Orders - March]_temp&lt;/SPAN&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;order by Order, Date;&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;&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;&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;STRONG&gt;until here,it pulls fields from the temp table and performs&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;&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;&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;&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;&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; the if() stmnt condition&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;drop Table &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;[Aged Orders - March]_temp&lt;/SPAN&gt;;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&lt;/EM&gt;&lt;STRONG&gt;this piece drops the temp table from memory.&lt;/STRONG&gt;&lt;/SPAN&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;By writing the above script you will be loading only one table &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Aged Orders - March].&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 20:20:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-over-time/m-p/866411#M995705</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2015-07-01T20:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: Count/distinct over time</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-over-time/m-p/866412#M995706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;If the above confuses you,Just Add&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&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;SPAN style="font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;EM&gt;load *,&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;EM&gt;if(Order=Peek(Order) and &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;[Promise Date]&lt;/SPAN&gt;&amp;lt;&amp;gt;peek(&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;[Promise Date]&lt;/SPAN&gt;), 1, 0) as FlagChanged;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;EM&gt;above your existing script and reload. &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;[Aged Orders - March]:&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;SPAN style="font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;EM&gt;load *,&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;EM&gt;if(Order=Peek(Order) and &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;[Promise Date]&lt;/SPAN&gt;&amp;lt;&amp;gt;peek(&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;[Promise Date]&lt;/SPAN&gt;), 1, 0) as FlagChanged;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD Date(Date#(Mid(FileName(),6,6),'MMDDYY')) as Date,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;//Above line is for pulling date from file name&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sales Doc.],&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Item,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; Upper(Status) as Status,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Promise Date],&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sales Doc.] &amp;amp; Item as [Order],&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bla bla... FROM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bla bla&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 20:24:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-over-time/m-p/866412#M995706</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2015-07-01T20:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: Count/distinct over time</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-over-time/m-p/866413#M995707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe I put it in correctly but it came up with 0... I put it in the pivot table with the Date and Order as dimensions and I put it in a straight table with the Order as a dimension and it came up with 0 both times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried both ways in the script too and each came up with 0 for all the values for each Order...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 21:03:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-over-time/m-p/866413#M995707</guid>
      <dc:creator />
      <dc:date>2015-07-01T21:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: Count/distinct over time</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-over-time/m-p/866414#M995708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please attach the sample qvw?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 21:07:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-over-time/m-p/866414#M995708</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2015-07-01T21:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: Count/distinct over time</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-over-time/m-p/866415#M995709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;reload the attached file and let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 21:33:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-over-time/m-p/866415#M995709</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2015-07-01T21:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: Count/distinct over time</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-over-time/m-p/866416#M995710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it worked! What did you change? I'll keep you posted as a use it further/add more data, but thank you so much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 21:43:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-over-time/m-p/866416#M995710</guid>
      <dc:creator />
      <dc:date>2015-07-01T21:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: Count/distinct over time</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-over-time/m-p/866417#M995711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome.Please mark this post as 'Answered'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 21:47:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-over-time/m-p/866417#M995711</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2015-07-01T21:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Count/distinct over time</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-over-time/m-p/866418#M995712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Krishna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So this works for the most part, but really only in the times when it says there are 3 promise date changes is when it gets messed up. When I just select the ones with 3 changes, and then go to the "do not open w/o filter" tab, you can see across that 3 is not the correct number for a few of those. I have really only found issues with a few of those ones. The ones with 2 promise dates don't seem to have issues, but I'm not sure.I am attaching another sample file to this post.I have tried to change Peek to Previous and it hasn't change anything.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2015 15:36:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-over-time/m-p/866418#M995712</guid>
      <dc:creator />
      <dc:date>2015-07-02T15:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: Count/distinct over time</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-over-time/m-p/866419#M995713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alex,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having a hard time in opening the App and the app is too slow(figure out the expressions once which are responsible for this).&lt;/P&gt;&lt;P&gt;Could you please remove all the sheets except the one which we are discussing and send me the qvw again.?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2015 16:41:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-over-time/m-p/866419#M995713</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2015-07-02T16:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: Count/distinct over time</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-over-time/m-p/866420#M995714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alex,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see the below screenshot, the expression is giving expected correct result.&lt;/P&gt;&lt;P&gt;check the script or the business rule where you might have forgot to apply for the&amp;nbsp; on the promise date in the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;note: even though i try to change the script, i cannot reload and check for the correctness unless i have the source data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/91672_Capture1.PNG" style="height: 98px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above screenshot, there are 3 date changes as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2015 17:30:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-over-time/m-p/866420#M995714</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2015-07-02T17:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: Count/distinct over time</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-over-time/m-p/866421#M995715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What I was looking for is would be 1 change because the promise date changed from 3/9/2015 to 3/27/2015, so that would be one change. I'm not sure if it is possible to manipulate it to do that.&amp;nbsp; I would try putting -1 at the end of the sum but then it would affect the ones that are already correct. However the script that you gave previously does work for when I am trying to track how many times the status changed! I am going to keep looking at the Promise Dates part though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2015 18:24:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-over-time/m-p/866421#M995715</guid>
      <dc:creator />
      <dc:date>2015-07-02T18:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: Count/distinct over time</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-over-time/m-p/866422#M995716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check for the IDs which has date changes# 3.&lt;/P&gt;&lt;P&gt;As in the above picture, i see there are 3 date changes but m not sure what exactly is happening within data model as i cannot reload unless i have source data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2015 18:28:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-over-time/m-p/866422#M995716</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2015-07-02T18:28:00Z</dc:date>
    </item>
  </channel>
</rss>

