<?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 records that fall within given date range in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/count-records-that-fall-within-a-given-date-range/m-p/543563#M203105</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok, makes sense I need to link the calendar with main table that contains the dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The question I have is what date do I link the calendar to;&amp;nbsp; the Create or Close date?&amp;nbsp; or something else?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This makes sense why nothing was working. I think my other issue is since each period has many overlapping dates how do I get my expression to evaluate them for so they get summed correctly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems this has been done but could not find any clear examples as of yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Oct 2013 02:32:29 GMT</pubDate>
    <dc:creator>b_garside</dc:creator>
    <dc:date>2013-10-11T02:32:29Z</dc:date>
    <item>
      <title>count records that fall within a given date range</title>
      <link>https://community.qlik.com/t5/QlikView/count-records-that-fall-within-a-given-date-range/m-p/543561#M203103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have about 5700 opportunity records. Each has their own &lt;STRONG&gt;Create&lt;/STRONG&gt; and &lt;STRONG&gt;Close&lt;/STRONG&gt; dates.&lt;/P&gt;&lt;P&gt;Many &lt;STRONG&gt;overlap&lt;/STRONG&gt; over months and years in active status overtime as one would expect.&lt;/P&gt;&lt;P&gt;The goal I have is to count them within a given date range. Such as &lt;STRONG&gt;Quarters&lt;/STRONG&gt;, or &lt;STRONG&gt;months periods&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;This will show a trend of how many were created within a given period.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I prefer &lt;STRONG&gt;not&lt;/STRONG&gt; to use &lt;EM&gt;IntervalMatch&lt;/EM&gt; due to the large table it generates.&lt;/P&gt;&lt;P&gt;I've tried &lt;STRONG&gt;InQuarter&lt;/STRONG&gt; and other mathematical expressions. I don't believe I need set analysis but correct me if Im wrong.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-family: 'Courier New'; font-size: 12px;"&gt;Mstr_QuarterYear = is the Dim field used for my time spread. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-family: 'Courier New'; font-size: 12px;"&gt;CountOpps = is a simple 1 for each record so it can be Summed up.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This simply counts them and accumulates as it goes it seems.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Distinct&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Mstr_QuarterYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&amp;gt;=(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;CreateDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Mstr_QuarterYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&amp;lt;=(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;CloseDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;) ,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;CountOpps&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Island Calendar I use to spread out along X axis. The problem having is I cant seem to take a group of records all having &lt;STRONG&gt;different time ranges and seeing if they fall within a time slot&lt;/STRONG&gt;.&amp;nbsp; Had no luck with the community searches.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help I plan to use the solution in many more charts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2013 21:34:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-records-that-fall-within-a-given-date-range/m-p/543561#M203103</guid>
      <dc:creator>b_garside</dc:creator>
      <dc:date>2013-10-10T21:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: count records that fall within given date range</title>
      <link>https://community.qlik.com/t5/QlikView/count-records-that-fall-within-a-given-date-range/m-p/543562#M203104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to use the Island Calendar Dimension in X axis then you need to join (link) the tables by specifying the common field in both the tables, then only you can use the Calendar Dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12px; font-family: 'Courier New';"&gt;Can you attach some sample data/file, it would be easier to understand.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12px; font-family: 'Courier New';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12px; font-family: 'Courier New';"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12px; font-family: 'Courier New';"&gt;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2013 23:38:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-records-that-fall-within-a-given-date-range/m-p/543562#M203104</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-10-10T23:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: count records that fall within given date range</title>
      <link>https://community.qlik.com/t5/QlikView/count-records-that-fall-within-a-given-date-range/m-p/543563#M203105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok, makes sense I need to link the calendar with main table that contains the dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The question I have is what date do I link the calendar to;&amp;nbsp; the Create or Close date?&amp;nbsp; or something else?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This makes sense why nothing was working. I think my other issue is since each period has many overlapping dates how do I get my expression to evaluate them for so they get summed correctly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems this has been done but could not find any clear examples as of yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2013 02:32:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-records-that-fall-within-a-given-date-range/m-p/543563#M203105</guid>
      <dc:creator>b_garside</dc:creator>
      <dc:date>2013-10-11T02:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: count records that fall within given date range</title>
      <link>https://community.qlik.com/t5/QlikView/count-records-that-fall-within-a-given-date-range/m-p/543564#M203106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you think this post applies? It seems to match my scenario. Except I wont use a inline table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/message/234561#234561"&gt;http://community.qlik.com/message/234561#234561&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2013 03:04:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-records-that-fall-within-a-given-date-range/m-p/543564#M203106</guid>
      <dc:creator>b_garside</dc:creator>
      <dc:date>2013-10-11T03:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: count records that fall within a given date range</title>
      <link>https://community.qlik.com/t5/QlikView/count-records-that-fall-within-a-given-date-range/m-p/543565#M203107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it really would help us understand your issue if you could post a small sample app or some input data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general, you have the option to use a data island calendar or create links between your calendar and the fact intervals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first approach creates a slim data model, but if you want to analyze your data, you need to use quite complex expressions that show not so good performance and needs more chart memory than with the second approach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To create a data model that somehow links your calendar to the intervals, Henric posted some excellent tutorials &lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/04/04/intervalmatch"&gt;here&lt;/A&gt; and &lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/02/12/reference-dates"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also these threads might be of interest:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/66717"&gt;Tutorial - Using Common Date Dimensions and Shared Calendars&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2012/10/16/the-master-calendar" title="http://community.qlik.com/blogs/qlikviewdesignblog/2012/10/16/the-master-calendar"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2012/10/16/the-master-calendar&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2012/08/30/master-table-with-multiple-roles" title="http://community.qlik.com/blogs/qlikviewdesignblog/2012/08/30/master-table-with-multiple-roles"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2012/08/30/master-table-with-multiple-roles&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2013 11:45:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-records-that-fall-within-a-given-date-range/m-p/543565#M203107</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-10-11T11:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: count records that fall within a given date range</title>
      <link>https://community.qlik.com/t5/QlikView/count-records-that-fall-within-a-given-date-range/m-p/543566#M203108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Stephan&lt;/P&gt;&lt;P&gt;My data looks like this;&amp;nbsp; The question I not sure is what date I use in my X axis from calendar, Create or Close? I'm leaning toward Create.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Id&amp;nbsp; |&amp;nbsp; createDate |&amp;nbsp; CloseDate&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp; CountOpps&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;11-01234&amp;nbsp;&amp;nbsp; | 01.01.2011&amp;nbsp; | 31.12.2012 | 1&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;12-02345&amp;nbsp;&amp;nbsp; | 01.05.2011&amp;nbsp; | 31.12.2012 | 1&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;13-03456&amp;nbsp;&amp;nbsp; | 01.01.2013&amp;nbsp; | 31.12.2013&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; | 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;13-03455&amp;nbsp;&amp;nbsp; | 01.05.2013&amp;nbsp; | 31.12.2013&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; | 1&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2013 12:48:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-records-that-fall-within-a-given-date-range/m-p/543566#M203108</guid>
      <dc:creator>b_garside</dc:creator>
      <dc:date>2013-10-11T12:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: count records that fall within a given date range</title>
      <link>https://community.qlik.com/t5/QlikView/count-records-that-fall-within-a-given-date-range/m-p/543567#M203109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also transform your table from a cross table to a straight table like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CROSSTABLE (DateType, Date, 2) LOAD Id, CountOpps, createDate, CloseDate RESIDENT YourTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your resulting table will have four fields, Id, CountOpps, DateType, Date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can link Date with your master calendar and use Date as dimension (or any field from the master calendar) and select the DateType in your expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;DateType = {createDate} &amp;gt;} CountOpps)&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;DateType = {CloseDate} &amp;gt;} CountOpps)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it is all a little depending on what you want to analyze.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2013 12:54:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-records-that-fall-within-a-given-date-range/m-p/543567#M203109</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-10-11T12:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: count records that fall within a given date range</title>
      <link>https://community.qlik.com/t5/QlikView/count-records-that-fall-within-a-given-date-range/m-p/543568#M203110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Stephan&lt;/P&gt;&lt;P&gt;Yeah the only analysis I'm doing is detecting Overlapping date ranges per period such as Quarters which in effct are active opportunities over time. &lt;/P&gt;&lt;P&gt;Each opportunity has a date range many overlap so I'm counting &lt;STRONG&gt;how many overlap in that Quarter, or month&lt;/STRONG&gt; depending on the chart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Oct 2013 21:58:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-records-that-fall-within-a-given-date-range/m-p/543568#M203110</guid>
      <dc:creator>b_garside</dc:creator>
      <dc:date>2013-10-12T21:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: count records that fall within a given date range</title>
      <link>https://community.qlik.com/t5/QlikView/count-records-that-fall-within-a-given-date-range/m-p/543569#M203111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Im trying to use this post for my solution: &lt;A _jive_internal="true" href="https://community.qlik.com/message/4657#4657"&gt;http://community.qlik.com/message/4657#4657&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Oct 2013 21:59:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-records-that-fall-within-a-given-date-range/m-p/543569#M203111</guid>
      <dc:creator>b_garside</dc:creator>
      <dc:date>2013-10-12T21:59:33Z</dc:date>
    </item>
  </channel>
</rss>

