<?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: Two calendars in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Two-calendars/m-p/1204794#M876608</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your wellcome.&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Oct 2016 10:48:24 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-10-20T10:48:24Z</dc:date>
    <item>
      <title>Two calendars</title>
      <link>https://community.qlik.com/t5/QlikView/Two-calendars/m-p/1204786#M876592</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;It´s a simple question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two calendars realted in a table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In_calendar&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; Out_calendar&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Workers&lt;/P&gt;&lt;P&gt;Date_in ,&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt; Date_out,&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;&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;&amp;nbsp; Date_in&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;In_year,&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Out_year&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;&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;&amp;nbsp;&amp;nbsp; Date_out&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;In_Month,&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Out_month&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;&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; ID&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I would like to have in one calendar the two calendars, I would select for exemple January 2016 and see all the dates for Date_in and all the dates for Date_out for the select month and year.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thank you!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-calendars/m-p/1204786#M876592</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Two calendars</title>
      <link>https://community.qlik.com/t5/QlikView/Two-calendars/m-p/1204787#M876594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guillermo,&lt;/P&gt;&lt;P&gt;Although you could create indeed the two calendars, I think that the solution you are looking for is closer to this one:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/12152"&gt;help using a 'BETWEEN' join on tables from different datasources&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 10:24:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-calendars/m-p/1204787#M876594</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2016-10-19T10:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Two calendars</title>
      <link>https://community.qlik.com/t5/QlikView/Two-calendars/m-p/1204788#M876598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Miguel, thanks for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I´ve understood your solution, I should do an Interval match between my start date and end date with wich data? &lt;/P&gt;&lt;P&gt;I mean, I your exemple, in the Fact table you have a Date, but in my case, my only dates are IN and OUT. There isn´t any "central" data in my fact table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I´m wrong please let me know &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 11:41:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-calendars/m-p/1204788#M876598</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-19T11:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Two calendars</title>
      <link>https://community.qlik.com/t5/QlikView/Two-calendars/m-p/1204789#M876600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can concatenate the tables something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;In_calendar:&lt;BR /&gt;Load&amp;nbsp; &lt;BR /&gt;Date_in ,&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;In_year as Year,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;In_Month as Month&lt;BR /&gt;from yourtable...;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Out_calendar&lt;BR /&gt;concatenate(In_calendar)&lt;BR /&gt;Load&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Date_out,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Out_year as Year,&lt;BR /&gt;&amp;nbsp; Out_month&amp;nbsp; as Month&lt;BR /&gt;from YourOtherTable...;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you select the Year and Month you should get In and Out Dates !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 11:51:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-calendars/m-p/1204789#M876600</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-19T11:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: Two calendars</title>
      <link>https://community.qlik.com/t5/QlikView/Two-calendars/m-p/1204790#M876603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look at the example I am sending.&lt;/P&gt;&lt;P&gt;I have several dates but I can control them by a generic.&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 11:55:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-calendars/m-p/1204790#M876603</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-19T11:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: Two calendars</title>
      <link>https://community.qlik.com/t5/QlikView/Two-calendars/m-p/1204791#M876605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Marcio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can´t open local qvw documents, I don´t have the licence.&lt;/P&gt;&lt;P&gt;But thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 12:10:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-calendars/m-p/1204791#M876605</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-19T12:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: Two calendars</title>
      <link>https://community.qlik.com/t5/QlikView/Two-calendars/m-p/1204792#M876606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you do have a "central" date in the fact table. Those are Date_in and Date_out, since you want to click on any given month i.e.: "January" and see all Date_in and Date_out which match with that range (a month is "just" a starting and an end date).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But since you also have both dates in the Workers table, you can just add the Month(), Year(), etc. functions in the fact table, along with the dates. However, when you click on "January", you will see either dates in or dates out, not both, that's why you need that IntervalMatch() using both in and out dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I don't know which charts you will use or further, which type of analysis you want to perform, it could be done too if you have your Workers table split into two and then concatenated to have one single date per row in the fact table, and you can easily add a "Type" field with values "In" and "Out", and then apply the Month(), Year() and other date functions on that single date field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Schematically, it would read in the script like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14769108791121493" jivemacro_uid="_14769108791121493" modifiedtitle="true"&gt;
&lt;P&gt;WorkersTemp:&lt;/P&gt;
&lt;P&gt;LOAD *,&lt;/P&gt;
&lt;P&gt;Date_in AS Date,&lt;/P&gt;
&lt;P&gt;'In' AS Type&lt;/P&gt;
&lt;P&gt;FROM Workers.qvd (qvd)&lt;/P&gt;
&lt;P&gt;WHERE Len(Trim(Date_in)) &amp;gt; 0;&lt;/P&gt;
&lt;P&gt;CONCATENATE (WorkersTemp) LOAD *,&lt;/P&gt;
&lt;P&gt;Date_out AS Date,&lt;/P&gt;
&lt;P&gt;'Out' AS Type&lt;/P&gt;
&lt;P&gt;FROM Workers.qvd (qvd)&lt;/P&gt;
&lt;P&gt;WHERE Len(Trim(Date_out)) &amp;gt; 0;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP FIELDS Date_in, Date_out;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;STORE WorkersTemp INTO Workers_Single_Date.qvd (qvd);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP TABLE WorkersTemp;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Workers:&lt;/P&gt;
&lt;P&gt;LOAD *,&lt;/P&gt;
&lt;P&gt;Month(Date) AS Month,&lt;/P&gt;
&lt;P&gt;Year(Date) AS Date&lt;/P&gt;
&lt;P&gt;FROM Workers_Single_Date.qvd (qvd);&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 21:00:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-calendars/m-p/1204792#M876606</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2016-10-19T21:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: Two calendars</title>
      <link>https://community.qlik.com/t5/QlikView/Two-calendars/m-p/1204793#M876607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It worked! &lt;/P&gt;&lt;P&gt; Very good explain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much Miguel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 05:39:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-calendars/m-p/1204793#M876607</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-20T05:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: Two calendars</title>
      <link>https://community.qlik.com/t5/QlikView/Two-calendars/m-p/1204794#M876608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your wellcome.&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 10:48:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-calendars/m-p/1204794#M876608</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-20T10:48:24Z</dc:date>
    </item>
  </channel>
</rss>

