<?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 Help needed on history data with deltas/diffs, to calculate complete totals in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-needed-on-history-data-with-deltas-diffs-to-calculate/m-p/155287#M31593</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Then Try &lt;B&gt;"Flag Method",&lt;/B&gt;&lt;/P&gt;&lt;P&gt;You are arriving the difference/ delta,&lt;/P&gt;&lt;P&gt;If your delta &amp;gt; 0, then alias a field &lt;B&gt;"IsUpdated"&lt;/B&gt; , and set it to 1 otherwise 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, based on the &lt;B&gt;"IsUpdated"&lt;/B&gt; flag, you try to count the orders.&lt;/P&gt;&lt;P&gt;Hope it helps. &lt;IMG alt="Smile" src="http://community.qlik.com/emoticons/emotion-1.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Feb 2010 16:40:46 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-02-22T16:40:46Z</dc:date>
    <item>
      <title>Help needed on history data with deltas/diffs, to calculate complete totals</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-on-history-data-with-deltas-diffs-to-calculate/m-p/155283#M31589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a set of Data I imported which contains data in this format:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH&gt;UID&lt;/TH&gt;&lt;TH&gt;CLIENT_ID&lt;/TH&gt;&lt;TH&gt;STATUS&lt;/TH&gt;&lt;TH&gt;UPDATE_DATE&lt;/TH&gt;&lt;TH&gt;INFO1&lt;/TH&gt;&lt;TH&gt;INFO2&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;001&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;2010-02-02&lt;/TD&gt;&lt;TD&gt;Some info 1&lt;/TD&gt;&lt;TD&gt;Some info 2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;002&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;2010-02-02&lt;/TD&gt;&lt;TD&gt;Some info 1&lt;/TD&gt;&lt;TD&gt;Some info 2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;003&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;2010-02-05&lt;/TD&gt;&lt;TD&gt;Some info 123&lt;/TD&gt;&lt;TD&gt;Some info 245&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;004&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;2010-02-05&lt;/TD&gt;&lt;TD&gt;Some info ABC&lt;/TD&gt;&lt;TD&gt;Some info DEF&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Essentially, it contains the changes that are happening to a clients table, keeping the history data for the client changes (active, inactive).&lt;/P&gt;&lt;P&gt;Based on this table I need to extract the active clients for the dates where the updates occurred.&lt;/P&gt;&lt;P&gt;My problem is that I only have the changes (diffs or deltas as I usually refer to) and I can't figure out a way to calculate the number of clients which are active for a given date.&lt;/P&gt;&lt;P&gt;What happens is that if I select just one of the dates I get the count for that date, which will only contain those that were updated on that date and no the ones that are active but didn't have a change on that date (which is most of them).&lt;/P&gt;&lt;P&gt;I was wondering if someone could help me out on this.&lt;/P&gt;&lt;P&gt;The output should be something similar to this:&lt;/P&gt;&lt;P&gt;2010-02-02 2010-02-05&lt;/P&gt;&lt;P&gt;Active 80 85&lt;/P&gt;&lt;P&gt;Inactive 10 5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I'm getting after several attempts will eventually get similar to this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2010-02-02 2010-02-05&lt;/P&gt;&lt;P&gt;Active 80 5&lt;/P&gt;&lt;P&gt;Inactive 10 -&lt;/P&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2010 15:35:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-on-history-data-with-deltas-diffs-to-calculate/m-p/155283#M31589</guid>
      <dc:creator />
      <dc:date>2010-02-22T15:35:57Z</dc:date>
    </item>
    <item>
      <title>Help needed on history data with deltas/diffs, to calculate complete totals</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-on-history-data-with-deltas-diffs-to-calculate/m-p/155284#M31590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As I believe the solution should be the same, I'll post also another example that I'm working on and that I can't get the values correct either.&lt;/P&gt;&lt;P&gt;The data looks similar to the previous example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH&gt;UID&lt;/TH&gt;&lt;TH&gt;ORDER_ID&lt;/TH&gt;&lt;TH&gt;CLIENT_ID&lt;/TH&gt;&lt;TH&gt;STATUS&lt;/TH&gt;&lt;TH&gt;UPDATE_DATE&lt;/TH&gt;&lt;TH&gt;INFO1&lt;/TH&gt;&lt;TH&gt;INFO2&lt;/TH&gt;&lt;/TR&gt;&lt;TR class="even"&gt;&lt;TD&gt;001&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;2010-02-02&lt;/TD&gt;&lt;TD&gt;Some info 1&lt;/TD&gt;&lt;TD&gt;Some info 2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;002&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;2010-02-02&lt;/TD&gt;&lt;TD&gt;Some info 1&lt;/TD&gt;&lt;TD&gt;Some info 2&lt;/TD&gt;&lt;/TR&gt;&lt;TR class="even"&gt;&lt;TD&gt;003&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;2010-02-05&lt;/TD&gt;&lt;TD&gt;Some info 123&lt;/TD&gt;&lt;TD&gt;Some info 245&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;004&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;2010-02-05&lt;/TD&gt;&lt;TD&gt;Some info ABC&lt;/TD&gt;&lt;TD&gt;Some info DEF&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;005&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;2010-02-05&lt;/TD&gt;&lt;TD&gt;Some info ABC&lt;/TD&gt;&lt;TD&gt;Some info DEF&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;The data comprises orders information for a client and I need to do the same thing as previously, but for the orders.&lt;/P&gt;&lt;P&gt;The output expected is something similar to this:&lt;/P&gt;&lt;P&gt;2010-02-02 2010-02-05&lt;/P&gt;&lt;P&gt;A B A B&lt;/P&gt;&lt;P&gt;Client 1 10 2 13 1&lt;/P&gt;&lt;P&gt;Client 2 20 0 10 0&lt;/P&gt;&lt;P&gt;Client 3 5 1 6 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any help on this.&lt;/P&gt;&lt;P&gt;I've been using a Pivot Table to try and get the proper results, using some set expressions, but nothing came close to the expected results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2010 15:52:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-on-history-data-with-deltas-diffs-to-calculate/m-p/155284#M31590</guid>
      <dc:creator />
      <dc:date>2010-02-22T15:52:09Z</dc:date>
    </item>
    <item>
      <title>Help needed on history data with deltas/diffs, to calculate complete totals</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-on-history-data-with-deltas-diffs-to-calculate/m-p/155285#M31591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Filter the Status in the Expression itself,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;count({$&amp;lt;Status={'Active'}&amp;gt;} Date)&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above expression will only counts the date which are in active status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abdul Rahman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2010 16:04:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-on-history-data-with-deltas-diffs-to-calculate/m-p/155285#M31591</guid>
      <dc:creator />
      <dc:date>2010-02-22T16:04:28Z</dc:date>
    </item>
    <item>
      <title>Help needed on history data with deltas/diffs, to calculate complete totals</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-on-history-data-with-deltas-diffs-to-calculate/m-p/155286#M31592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi abdulrahman ,&lt;/P&gt;&lt;P&gt;I already tried that, the problem is that I only have the differences to the days after the status change has happened, and not the whole set of data to compare to.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2010 16:16:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-on-history-data-with-deltas-diffs-to-calculate/m-p/155286#M31592</guid>
      <dc:creator />
      <dc:date>2010-02-22T16:16:12Z</dc:date>
    </item>
    <item>
      <title>Help needed on history data with deltas/diffs, to calculate complete totals</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-on-history-data-with-deltas-diffs-to-calculate/m-p/155287#M31593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Then Try &lt;B&gt;"Flag Method",&lt;/B&gt;&lt;/P&gt;&lt;P&gt;You are arriving the difference/ delta,&lt;/P&gt;&lt;P&gt;If your delta &amp;gt; 0, then alias a field &lt;B&gt;"IsUpdated"&lt;/B&gt; , and set it to 1 otherwise 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, based on the &lt;B&gt;"IsUpdated"&lt;/B&gt; flag, you try to count the orders.&lt;/P&gt;&lt;P&gt;Hope it helps. &lt;IMG alt="Smile" src="http://community.qlik.com/emoticons/emotion-1.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2010 16:40:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-on-history-data-with-deltas-diffs-to-calculate/m-p/155287#M31593</guid>
      <dc:creator />
      <dc:date>2010-02-22T16:40:46Z</dc:date>
    </item>
    <item>
      <title>Help needed on history data with deltas/diffs, to calculate complete totals</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-on-history-data-with-deltas-diffs-to-calculate/m-p/155288#M31594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I already tried something similar and it doesn't work.&lt;/P&gt;&lt;P&gt;I can flag the data, but it will be the same set as using a set expression for the {"=update_date = max(update_date)"}, it will only give me the changes that happened in that day and not the total orders still active for the client on that specific day.&lt;/P&gt;&lt;P&gt;Thanks for the suggestion though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2010 16:54:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-on-history-data-with-deltas-diffs-to-calculate/m-p/155288#M31594</guid>
      <dc:creator />
      <dc:date>2010-02-22T16:54:36Z</dc:date>
    </item>
    <item>
      <title>Help needed on history data with deltas/diffs, to calculate complete totals</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-on-history-data-with-deltas-diffs-to-calculate/m-p/155289#M31595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am a wee bit confused. Let me try and figure out what you want to do...Here's your input data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH&gt;UID&lt;/TH&gt;&lt;TH&gt;ORDER_ID&lt;/TH&gt;&lt;TH&gt;CLIENT_ID&lt;/TH&gt;&lt;TH&gt;STATUS&lt;/TH&gt;&lt;TH&gt;UPDATE_DATE&lt;/TH&gt;&lt;TH&gt;INFO1&lt;/TH&gt;&lt;TH&gt;INFO2&lt;/TH&gt;&lt;/TR&gt;&lt;TR class="even"&gt;&lt;TD&gt;001&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;2010-02-02&lt;/TD&gt;&lt;TD&gt;Some info 1&lt;/TD&gt;&lt;TD&gt;Some info 2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;002&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;2010-02-02&lt;/TD&gt;&lt;TD&gt;Some info 1&lt;/TD&gt;&lt;TD&gt;Some info 2&lt;/TD&gt;&lt;/TR&gt;&lt;TR class="even"&gt;&lt;TD&gt;003&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;2010-02-05&lt;/TD&gt;&lt;TD&gt;Some info 123&lt;/TD&gt;&lt;TD&gt;Some info 245&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;004&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;2010-02-05&lt;/TD&gt;&lt;TD&gt;Some info ABC&lt;/TD&gt;&lt;TD&gt;Some info DEF&lt;/TD&gt;&lt;/TR&gt;&lt;TR class="even"&gt;&lt;TD&gt;005&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;2010-02-05&lt;/TD&gt;&lt;TD&gt;Some info ABC&lt;/TD&gt;&lt;TD&gt;Some info DEF&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Would the output based on "just" this above provided data be as follows? I am having a disconnect between your example data and the output you provided.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2010-02-02 2010-02-05&lt;/P&gt;&lt;P&gt;A B A B&lt;/P&gt;&lt;P&gt;Client 1 2 0 1 1&lt;/P&gt;&lt;P&gt;Client 2 0 0 1 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2010 17:24:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-on-history-data-with-deltas-diffs-to-calculate/m-p/155289#M31595</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-22T17:24:29Z</dc:date>
    </item>
    <item>
      <title>Help needed on history data with deltas/diffs, to calculate complete totals</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-on-history-data-with-deltas-diffs-to-calculate/m-p/155290#M31596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The samples were disconnected, yes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2010 17:28:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-on-history-data-with-deltas-diffs-to-calculate/m-p/155290#M31596</guid>
      <dc:creator />
      <dc:date>2010-02-22T17:28:14Z</dc:date>
    </item>
    <item>
      <title>Help needed on history data with deltas/diffs, to calculate complete totals</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-on-history-data-with-deltas-diffs-to-calculate/m-p/155291#M31597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second sample should then be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2010-02-02 2010-02-05&lt;/P&gt;&lt;P&gt;A B A B&lt;/P&gt;&lt;P&gt;Client 1 2 0 2 1&lt;/P&gt;&lt;P&gt;Client 2 0 0 1 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry about that.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2010 17:31:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-on-history-data-with-deltas-diffs-to-calculate/m-p/155291#M31597</guid>
      <dc:creator />
      <dc:date>2010-02-22T17:31:37Z</dc:date>
    </item>
    <item>
      <title>Help needed on history data with deltas/diffs, to calculate complete totals</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-on-history-data-with-deltas-diffs-to-calculate/m-p/155292#M31598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lol, OK! But did I get it right? Based on just the five rows of data you provided, is the following output what you'd expect?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2010-02-02 2010-02-05&lt;/P&gt;&lt;P&gt;A B A B&lt;/P&gt;&lt;P&gt;Client 1 2 0 1 1&lt;/P&gt;&lt;P&gt;Client 2 0 0 1 0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2010 17:32:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-on-history-data-with-deltas-diffs-to-calculate/m-p/155292#M31598</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-22T17:32:04Z</dc:date>
    </item>
    <item>
      <title>Help needed on history data with deltas/diffs, to calculate complete totals</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-on-history-data-with-deltas-diffs-to-calculate/m-p/155293#M31599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;There should be two active orders for Client 1 on the 5th, since a new order came in, and another one was still active.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2010 17:34:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-on-history-data-with-deltas-diffs-to-calculate/m-p/155293#M31599</guid>
      <dc:creator />
      <dc:date>2010-02-22T17:34:41Z</dc:date>
    </item>
    <item>
      <title>Help needed on history data with deltas/diffs, to calculate complete totals</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-on-history-data-with-deltas-diffs-to-calculate/m-p/155294#M31600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Really? I count two total records for client 1 on the 5th. One is A (I assume active) and the other B (inactive I guess). Either way, something like this should work&lt;/P&gt;&lt;P&gt;load client_id, update_date, sum(if(status='A',1,0)) as Active, sum(if(status='B',1,0)) as Inactive&lt;BR /&gt;resient YourSourceData group by client_id, update_date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2010 17:41:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-on-history-data-with-deltas-diffs-to-calculate/m-p/155294#M31600</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-22T17:41:30Z</dc:date>
    </item>
    <item>
      <title>Help needed on history data with deltas/diffs, to calculate complete totals</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-on-history-data-with-deltas-diffs-to-calculate/m-p/155295#M31601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;As I mentioned in the post, the data only contains the differences, so if you look at it you will find that order nr 2 is still active on day 5, but since there were no changes, there wasn't a record created for order nr 2 on day 5, yet it should still be accounted as active. And this is what is taking my time, trying to figure out a solution for this.&lt;/P&gt;&lt;P&gt;I will see if I can do something with what you mention, but from a quick view I think probably not.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2010 17:48:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-on-history-data-with-deltas-diffs-to-calculate/m-p/155295#M31601</guid>
      <dc:creator />
      <dc:date>2010-02-22T17:48:29Z</dc:date>
    </item>
    <item>
      <title>Help needed on history data with deltas/diffs, to calculate complete totals</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-on-history-data-with-deltas-diffs-to-calculate/m-p/155296#M31602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In logical terms here is what you need:&lt;/P&gt;&lt;P&gt;1-All records where the date is bigger than the update date minus all the records where the date is smaller than the update date;&lt;/P&gt;&lt;P&gt;2-All records with Active status to true.&lt;/P&gt;&lt;P&gt;Here is something that might work:&lt;/P&gt;&lt;P&gt;count({&amp;lt;STATUS={'A'}, UPDATE_DATE={"&amp;lt;= $(vDate)"}-{&amp;gt;$(vDate)}&amp;gt;}CLIENT_ID)&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2010 19:53:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-on-history-data-with-deltas-diffs-to-calculate/m-p/155296#M31602</guid>
      <dc:creator>RicardoRamos</dc:creator>
      <dc:date>2010-02-22T19:53:08Z</dc:date>
    </item>
    <item>
      <title>Help needed on history data with deltas/diffs, to calculate complete totals</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-on-history-data-with-deltas-diffs-to-calculate/m-p/155297#M31603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ricardo,&lt;/P&gt;&lt;P&gt;This should work for the client scenario.&lt;/P&gt;&lt;P&gt;Did you get the chance to look into the order scenario?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2010 20:11:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-on-history-data-with-deltas-diffs-to-calculate/m-p/155297#M31603</guid>
      <dc:creator />
      <dc:date>2010-02-22T20:11:34Z</dc:date>
    </item>
  </channel>
</rss>

