<?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: IntervalDate and EvenDate Meassures in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/IntervalDate-and-EvenDate-Meassures/m-p/529755#M1147523</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13750839158051456" jivemacro_uid="_13750839158051456"&gt;=if(GetPossibleCount(Date),Count(distinct if(Registration_Start=Date,ID)),count(ID))&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;seems to do the job well.&lt;/P&gt;&lt;P&gt;Just out of my couriosity, in which case would the "then" part of the first if (count(ID)) come into action?&lt;/P&gt;&lt;P&gt;It seemes to work without it, as much as I tested it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;J.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Jul 2013 07:47:41 GMT</pubDate>
    <dc:creator>qw_jakub</dc:creator>
    <dc:date>2013-07-29T07:47:41Z</dc:date>
    <item>
      <title>IntervalDate and EvenDate Meassures</title>
      <link>https://community.qlik.com/t5/QlikView/IntervalDate-and-EvenDate-Meassures/m-p/529753#M1147521</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;in my data I have several tables where I need to calculate meassures for both Interval between two dates and dates as events.&lt;/P&gt;&lt;P&gt;For example I need to calculate how many new customers registered on a given date, and how many registered customers I had on that date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the sample data, I have a Master Calendar and make an IntervalMatch between the Registration_Start and Registration_End Fields.&lt;/P&gt;&lt;P&gt;Then I use the expression:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_1374861271709546" jivemacro_uid="_1374861271709546"&gt;= count(ID)&lt;/PRE&gt;&lt;P&gt;for counting registered customers (interval).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; And the set expression:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13748611125832036" jivemacro_uid="_13748611125832036"&gt;= if(isnull(getfieldselections(Date)),Count(ID), Count({$&amp;lt;[Registration_Start] = Date&amp;gt;} ID))&lt;/PRE&gt;&lt;P&gt;for counting new registration (event).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now this works fine, If i filter by a single (master)date. But if I filter by (master)month the expression for events fails.&lt;/P&gt;&lt;P&gt;For example if I select all dates from&amp;nbsp; 5.2013 I get the right count of registrations = 7.&lt;/P&gt;&lt;P&gt;But if I select just month = 5, and year = 2013, the set expression won't get linked to the date and I get a wrong count of registrations = 12.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do i need to write set expression for all master calendar fields or is there a simpler way to get to the right numberr?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any tips!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jakub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2013 18:05:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IntervalDate-and-EvenDate-Meassures/m-p/529753#M1147521</guid>
      <dc:creator>qw_jakub</dc:creator>
      <dc:date>2013-07-26T18:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: IntervalDate and EvenDate Meassures</title>
      <link>https://community.qlik.com/t5/QlikView/IntervalDate-and-EvenDate-Meassures/m-p/529754#M1147522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached qvw&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2013 18:55:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IntervalDate-and-EvenDate-Meassures/m-p/529754#M1147522</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-07-26T18:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: IntervalDate and EvenDate Meassures</title>
      <link>https://community.qlik.com/t5/QlikView/IntervalDate-and-EvenDate-Meassures/m-p/529755#M1147523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13750839158051456" jivemacro_uid="_13750839158051456"&gt;=if(GetPossibleCount(Date),Count(distinct if(Registration_Start=Date,ID)),count(ID))&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;seems to do the job well.&lt;/P&gt;&lt;P&gt;Just out of my couriosity, in which case would the "then" part of the first if (count(ID)) come into action?&lt;/P&gt;&lt;P&gt;It seemes to work without it, as much as I tested it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;J.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jul 2013 07:47:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IntervalDate-and-EvenDate-Meassures/m-p/529755#M1147523</guid>
      <dc:creator>qw_jakub</dc:creator>
      <dc:date>2013-07-29T07:47:41Z</dc:date>
    </item>
  </channel>
</rss>

