<?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: How to count # of subscriptions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-count-of-subscriptions/m-p/514099#M192065</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thx swuehl, that was very helpfull.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Jul 2013 07:57:40 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-07-24T07:57:40Z</dc:date>
    <item>
      <title>How to count # of subscriptions</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-of-subscriptions/m-p/514092#M192058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just started to work with qlikview and am still in a learning curve...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've a question about counting the # of available subscriptions in comparison with the # of expirations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my table I have year(expirationdate) as dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each year I want to see the # of expirations&amp;nbsp; and the # of subscriptions which are left.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for instance :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;year&amp;nbsp; subscriptions&amp;nbsp;&amp;nbsp; expirations&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2013&amp;nbsp;&amp;nbsp;&amp;nbsp; 100000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10000&lt;/P&gt;&lt;P&gt;2014&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 90000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12000&lt;/P&gt;&lt;P&gt;2015&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 78000&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; 8000&lt;/P&gt;&lt;P&gt;2016&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 70000&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; etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With &lt;EM&gt;Count({1} subscription) &lt;/EM&gt;i'm getting the 10.000, 12000 and 8000 for the respective year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But how do I get the # of subscriptions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To be more specific I added a test file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are 12 subscriptions. In 2014 2 will expire, so I'd like to see in 2015 at the # of subscriptions column 10 subscriptions.&lt;/P&gt;&lt;P&gt;In 2018 - 7, in 2021 - 6&amp;nbsp;&amp;nbsp; etc...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2013 13:17:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-of-subscriptions/m-p/514092#M192058</guid>
      <dc:creator />
      <dc:date>2013-07-23T13:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to count # of subscriptions</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-of-subscriptions/m-p/514093#M192059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi tbeenders,&lt;/P&gt;&lt;P&gt;Do you have subscription Id and Expiration Id? &lt;/P&gt;&lt;P&gt;when Using Count it is suggested to use Count(Distinct [Unique ID])&lt;/P&gt;&lt;P&gt;So, for both subscription Id and Expiration the expression should be similar:&lt;/P&gt;&lt;P&gt; Count(Distinct [subscription ID])&lt;/P&gt;&lt;P&gt;&amp;nbsp; Count(Distinct [expression ID])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this help?&lt;/P&gt;&lt;P&gt;If not - it will be easier to help you if you attach your example&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2013 13:27:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-of-subscriptions/m-p/514093#M192059</guid>
      <dc:creator>orital81</dc:creator>
      <dc:date>2013-07-23T13:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to count # of subscriptions</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-of-subscriptions/m-p/514094#M192060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check &lt;A _jive_internal="true" href="https://community.qlik.com/message/345822#345822"&gt;this &lt;/A&gt;solution (I assume it's matching your setting and requirement)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2013 13:28:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-of-subscriptions/m-p/514094#M192060</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-07-23T13:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to count # of subscriptions</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-of-subscriptions/m-p/514095#M192061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;count(Distinct subscriptions)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;count(Distinct expirations)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2013 13:38:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-of-subscriptions/m-p/514095#M192061</guid>
      <dc:creator />
      <dc:date>2013-07-23T13:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to count # of subscriptions</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-of-subscriptions/m-p/514096#M192062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ori,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the quick reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont have a subscription Id and&amp;nbsp; Expiration Id.&amp;nbsp; I have a subscription Id and a expiration date.&lt;/P&gt;&lt;P&gt;And to count the # of subscriptions I need to know if the subscription hasnt expired yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the 90000 subscriptions of 2014 are the total number of subscriptions -/- the one which expired in 2013.&lt;/P&gt;&lt;P&gt;And the # of subscriptions in 2015 are the total number of subscriptions -/- expirations 2013/2014.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Etc..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2013 13:42:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-of-subscriptions/m-p/514096#M192062</guid>
      <dc:creator />
      <dc:date>2013-07-23T13:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to count # of subscriptions</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-of-subscriptions/m-p/514097#M192063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Vishwaranjan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This doesnt work as I dont have seperate fields for them. A subscription is still valid if the expiration date is not met.&lt;/P&gt;&lt;P&gt;See above where i explained it to Ori.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2013 13:45:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-of-subscriptions/m-p/514097#M192063</guid>
      <dc:creator />
      <dc:date>2013-07-23T13:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to count # of subscriptions</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-of-subscriptions/m-p/514098#M192064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try chart inter record functions, something along these lines:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({$} TOTAL Polisnummer) - RangeSum(above(count({1} Polisnummer),1,rowno()-1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2013 14:18:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-of-subscriptions/m-p/514098#M192064</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-07-23T14:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to count # of subscriptions</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-of-subscriptions/m-p/514099#M192065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thx swuehl, that was very helpfull.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2013 07:57:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-of-subscriptions/m-p/514099#M192065</guid>
      <dc:creator />
      <dc:date>2013-07-24T07:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to count # of subscriptions</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-of-subscriptions/m-p/514100#M192066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm I thought I was going on the right track, but when I added months as a dimension I got confused again... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works fine if you dont drill down to the months, but if you go to the months level it starts each year with the same total again.&lt;/P&gt;&lt;P&gt;E.g.: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On year dimenstion: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2013&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 90 subscriptions&amp;nbsp; ,&amp;nbsp; 4 expirations&lt;/P&gt;&lt;P&gt;2014&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 86 subscriptions&amp;nbsp; ,&amp;nbsp; 1 expiration&lt;/P&gt;&lt;P&gt;2015&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 85 subscriptions&amp;nbsp; ,&amp;nbsp; 0 expirations&lt;/P&gt;&lt;P&gt;2016&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 85 subscriptions&amp;nbsp; ,&amp;nbsp; 16 expirations&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;ETC..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On month dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2013&amp;nbsp;&amp;nbsp; 90 subscriptions ,&amp;nbsp; 4 expirations&lt;/P&gt;&lt;P&gt;2014&amp;nbsp;&amp;nbsp; 90 subscriptions ,&amp;nbsp; 1 expiration&lt;/P&gt;&lt;P&gt;2015&amp;nbsp;&amp;nbsp; 90 subscriptions ,&amp;nbsp; 0 expirations&lt;/P&gt;&lt;P&gt;2016&amp;nbsp;&amp;nbsp; 90 subscriptions ,&amp;nbsp; 16 expirations&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What should the expression look like to get the months correctly?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2013 10:05:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-of-subscriptions/m-p/514100#M192066</guid>
      <dc:creator />
      <dc:date>2013-07-26T10:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to count # of subscriptions</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-of-subscriptions/m-p/514101#M192067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;above() will only consider dimension values in the same column segment, that's why you get a reset at year bounderies. You can use the TOTAL qualifier to get around this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2013 10:30:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-of-subscriptions/m-p/514101#M192067</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-07-26T10:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to count # of subscriptions</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-of-subscriptions/m-p/514102#M192068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx for the quick reply, but it seems that in your example the years are now messed up. Is there a possibility to have both?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2013 11:13:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-of-subscriptions/m-p/514102#M192068</guid>
      <dc:creator />
      <dc:date>2013-07-26T11:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to count # of subscriptions</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-of-subscriptions/m-p/514103#M192069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am probably missing something more simple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The numbers should be right with month values all collapsed or all expanded, it seems you get an issue with partial expanded months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can get what you want using advanced aggregation. To make this work, your dimensions year and month needs to be in chronological load order.&lt;/P&gt;&lt;P&gt;Since your initial load doesn't fulfill this requirement, I stored your table into a QVD and started from scratch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2013 11:46:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-of-subscriptions/m-p/514103#M192069</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-07-26T11:46:25Z</dc:date>
    </item>
  </channel>
</rss>

