<?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: Re: Chart with counts on the regular dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Chart-with-counts-on-the-regular-dates/m-p/604421#M478743</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved for me. I've built an isolated calendar, have taken it's &lt;STRONG&gt;MonthStart(Temp_Date) as MStart&lt;/STRONG&gt; and main table's &lt;STRONG&gt;type&lt;/STRONG&gt; as dimensions and &lt;STRONG&gt;Count(Distinct if(([BegDate]&amp;lt;=MStart)and(IsNull([EndDate])or([EndDate]&amp;gt;MStart)),CID)) &lt;/STRONG&gt;as the expression. It seems to count OK.&lt;/P&gt;&lt;P&gt;The main idea was taken from the author's comments to the topic here &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;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Mar 2014 14:39:42 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-03-12T14:39:42Z</dc:date>
    <item>
      <title>Chart with counts on the regular dates</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-with-counts-on-the-regular-dates/m-p/604410#M478732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a table with structure like the follows:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13940211964091042" jivemacro_uid="_13940211964091042"&gt;
&lt;P&gt;table:&lt;/P&gt;
&lt;P&gt;load * inline&lt;/P&gt;
&lt;P&gt;[&lt;/P&gt;
&lt;P&gt;&amp;nbsp; CID, Type, BegDate, EndDate&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 1,1,01.01.2010,31.01.2014&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 2,2,01.01.2010,25.05.2010&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 3,2,18.03.2011,24.06.2013&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 4,2,13.02.2012,14.03.2013&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 5,1,11.03.2011,15.02.2014&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 6,1,13.04.2013,16.11.2013&lt;/P&gt;
&lt;P&gt;]&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;It contains the data about contracts. BegDate can't be null, EndDate can (that means, the contract is active). I need a line chart displaying the number of active contracts of every type on the 1st day of every month beginning from, say, 01.01.2010 and till Today(). If during the month there is no new contracts and no ending contracts it still has to be displayed, it's values are the same as the previous month. As far as I know, I'll have to autogenerate a table with desired dates (the 1st days of months). And what should I do next? Try to populate it with count values during the load process? If yes, how? Or use it as dimension to draw a chart and use set analysis to apply count conditions? Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 12:30:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-with-counts-on-the-regular-dates/m-p/604410#M478732</guid>
      <dc:creator />
      <dc:date>2014-03-05T12:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: Chart with counts on the regular dates</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-with-counts-on-the-regular-dates/m-p/604411#M478733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you upload your sample data file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 12:41:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-with-counts-on-the-regular-dates/m-p/604411#M478733</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-03-05T12:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: Chart with counts on the regular dates</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-with-counts-on-the-regular-dates/m-p/604412#M478734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't upload real task file, because it contains personal data, but you may use the inline table and provide a solution based on it. I think I'll face no difficulties transfering the solution to real database.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 12:58:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-with-counts-on-the-regular-dates/m-p/604412#M478734</guid>
      <dc:creator />
      <dc:date>2014-03-05T12:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: Chart with counts on the regular dates</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-with-counts-on-the-regular-dates/m-p/604413#M478735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you provide some sample data without attaching the actual file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 13:28:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-with-counts-on-the-regular-dates/m-p/604413#M478735</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-03-05T13:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: Chart with counts on the regular dates</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-with-counts-on-the-regular-dates/m-p/604414#M478736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The data itself is a kinda personal. Ok, I'll try to refine it to make the publishing possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 13:45:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-with-counts-on-the-regular-dates/m-p/604414#M478736</guid>
      <dc:creator />
      <dc:date>2014-03-05T13:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Chart with counts on the regular dates</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-with-counts-on-the-regular-dates/m-p/604415#M478737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's sample file with part of data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 13:59:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-with-counts-on-the-regular-dates/m-p/604415#M478737</guid>
      <dc:creator />
      <dc:date>2014-03-05T13:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: Chart with counts on the regular dates</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-with-counts-on-the-regular-dates/m-p/604416#M478738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This document by &lt;A href="https://community.qlik.com/qlik-users/4003"&gt;Henric Cronström&lt;/A&gt; has the answer you are looking for.&lt;/P&gt;&lt;P&gt;See the example on page 9. Creating one record per day that a contract is valid&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-3786"&gt;http://community.qlik.com/docs/DOC-3786&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 14:00:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-with-counts-on-the-regular-dates/m-p/604416#M478738</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2014-03-05T14:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Chart with counts on the regular dates</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-with-counts-on-the-regular-dates/m-p/604417#M478739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check enclosed file.&lt;/P&gt;&lt;P&gt;Hope this helps...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 15:03:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-with-counts-on-the-regular-dates/m-p/604417#M478739</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-03-05T15:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: Chart with counts on the regular dates</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-with-counts-on-the-regular-dates/m-p/604418#M478740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this one also...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 15:20:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-with-counts-on-the-regular-dates/m-p/604418#M478740</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-03-05T15:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Chart with counts on the regular dates</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-with-counts-on-the-regular-dates/m-p/604419#M478741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This one does not take into account the amount of the contracts that came to an end. And it doesn't have type field as a dimension. If I add it, I get unexpected results. I'll try to modify your solution so it would meet my requirements.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2014 12:57:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-with-counts-on-the-regular-dates/m-p/604419#M478741</guid>
      <dc:creator />
      <dc:date>2014-03-11T12:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Chart with counts on the regular dates</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-with-counts-on-the-regular-dates/m-p/604420#M478742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In other words the Doc, you pointed at, suggests that I would build an extra table with intersections of CIDs and all the dates when these CIDs are valid, am I rigth? And maybe I can build the table with dates corresponding to the beginnings of the months to reduce the data load. But building a new table just to make some counts over it... Damn, didn't expect that...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2014 13:46:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-with-counts-on-the-regular-dates/m-p/604420#M478742</guid>
      <dc:creator />
      <dc:date>2014-03-11T13:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Chart with counts on the regular dates</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-with-counts-on-the-regular-dates/m-p/604421#M478743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved for me. I've built an isolated calendar, have taken it's &lt;STRONG&gt;MonthStart(Temp_Date) as MStart&lt;/STRONG&gt; and main table's &lt;STRONG&gt;type&lt;/STRONG&gt; as dimensions and &lt;STRONG&gt;Count(Distinct if(([BegDate]&amp;lt;=MStart)and(IsNull([EndDate])or([EndDate]&amp;gt;MStart)),CID)) &lt;/STRONG&gt;as the expression. It seems to count OK.&lt;/P&gt;&lt;P&gt;The main idea was taken from the author's comments to the topic here &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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2014 14:39:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-with-counts-on-the-regular-dates/m-p/604421#M478743</guid>
      <dc:creator />
      <dc:date>2014-03-12T14:39:42Z</dc:date>
    </item>
  </channel>
</rss>

