<?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 values that are the same in previous date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-values-that-are-the-same-in-previous-date/m-p/785872#M278030</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bill,&lt;/P&gt;&lt;P&gt;Its the first of January, the first of Feb and so on&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Feb 2015 23:40:46 GMT</pubDate>
    <dc:creator>danieloberbilli</dc:creator>
    <dc:date>2015-02-25T23:40:46Z</dc:date>
    <item>
      <title>Count values that are the same in previous date</title>
      <link>https://community.qlik.com/t5/QlikView/Count-values-that-are-the-same-in-previous-date/m-p/785867#M278025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got non-distinct IDs which can occur on several dates. I would like to identify which IDs are the same than in the date before - preferably on the dashboard to keep it most dynamic.&lt;/P&gt;&lt;P&gt;Having the ID and Date (as numeric field) I thought to solve it like that - but without success:&lt;/P&gt;&lt;P&gt;count({&amp;lt;ID=p({&amp;lt;DateNum={'$(=DateNum-1)'}&amp;gt;} ID)&amp;gt;}&amp;nbsp; ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFA the .qvw&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/79190_pastedImage_4.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2015 11:31:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-values-that-are-the-same-in-previous-date/m-p/785867#M278025</guid>
      <dc:creator>danieloberbilli</dc:creator>
      <dc:date>2015-02-25T11:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: Count values that are the same in previous date</title>
      <link>https://community.qlik.com/t5/QlikView/Count-values-that-are-the-same-in-previous-date/m-p/785868#M278026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are the dates in you InLine load supposed to be the:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;1st of Jan, Feb &amp;amp; Mar&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;or the :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;1st, 2nd &amp;amp; 3rd of Jan ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2015 11:56:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-values-that-are-the-same-in-previous-date/m-p/785868#M278026</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-25T11:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: Count values that are the same in previous date</title>
      <link>https://community.qlik.com/t5/QlikView/Count-values-that-are-the-same-in-previous-date/m-p/785869#M278027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't use set analysis for this. The set is calculated at the chart level, not the row level. Perhaps creating a flag field will work for you. See attached qvw.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2015 12:36:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-values-that-are-the-same-in-previous-date/m-p/785869#M278027</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-02-25T12:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: Count values that are the same in previous date</title>
      <link>https://community.qlik.com/t5/QlikView/Count-values-that-are-the-same-in-previous-date/m-p/785870#M278028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think your approach couldn't work because you creates an adhoc-variable which will have only one global value for the whole table - calculated once before the table-calculation and used for each row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the object is quite static you could it rather pre-calculate within the script. If not you could maybe use an approach like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concat({&amp;lt;ID=p(ID)&amp;gt;}&amp;nbsp; ID, ',') &amp;amp; ' - ' &amp;amp; above(concat({&amp;lt;ID=p(ID)&amp;gt;}&amp;nbsp; ID, ','))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I don't know a practically way to exclude the ID's from each string-side which are not into the other or something similar and in the end count the number of ','. If you don't have really many ID's per day you could match these string-parts in a if-loop maybe with match() &amp;amp; subfield() but it would be not a really nice solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe another could give some ideas to match such strings in a native qv gui-object - per scripting with real loops it's easier (is the using only with fat-client or plugin an user-defined macro-function might be a thought worth).&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, 25 Feb 2015 12:48:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-values-that-are-the-same-in-previous-date/m-p/785870#M278028</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-02-25T12:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: Count values that are the same in previous date</title>
      <link>https://community.qlik.com/t5/QlikView/Count-values-that-are-the-same-in-previous-date/m-p/785871#M278029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so far.&lt;/P&gt;&lt;P&gt;If I solve it in the script e.g. with Gysberts approach, how can I also identify and count 'new' and&amp;nbsp; 'left/no more available' beside of the count of 'same'?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2015 23:38:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-values-that-are-the-same-in-previous-date/m-p/785871#M278029</guid>
      <dc:creator>danieloberbilli</dc:creator>
      <dc:date>2015-02-25T23:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: Count values that are the same in previous date</title>
      <link>https://community.qlik.com/t5/QlikView/Count-values-that-are-the-same-in-previous-date/m-p/785872#M278030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bill,&lt;/P&gt;&lt;P&gt;Its the first of January, the first of Feb and so on&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2015 23:40:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-values-that-are-the-same-in-previous-date/m-p/785872#M278030</guid>
      <dc:creator>danieloberbilli</dc:creator>
      <dc:date>2015-02-25T23:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: Count values that are the same in previous date</title>
      <link>https://community.qlik.com/t5/QlikView/Count-values-that-are-the-same-in-previous-date/m-p/785873#M278031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At the moment I can't think of any other solution than creating a table for each month and joining them with the previous month - then I can simply flag which IDs are new, gone or the same. I also could do the count/sums in the script in an additional table. So at the end I guess I have to loop all these joins and sum-tables? Or is there a better way to solve this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 01:27:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-values-that-are-the-same-in-previous-date/m-p/785873#M278031</guid>
      <dc:creator>danieloberbilli</dc:creator>
      <dc:date>2015-02-26T01:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: Count values that are the same in previous date</title>
      <link>https://community.qlik.com/t5/QlikView/Count-values-that-are-the-same-in-previous-date/m-p/785874#M278032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's a fine solution. It's a simple variant of the AsOf table concept. You can use that in more advanced scenarios too as described in this document: &lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-4252" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3778c7;"&gt;Calculating rolling n-period totals, averages or other aggregations&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 06:44:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-values-that-are-the-same-in-previous-date/m-p/785874#M278032</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-02-26T06:44:16Z</dc:date>
    </item>
  </channel>
</rss>

