<?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: Master Calendar with 2 Date Fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Master-Calendar-with-2-Date-Fields/m-p/603009#M1118373</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;also the Qlikview Deployment Framework has a very good function to create date dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/group/1224"&gt;QlikView Deployment Framework&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Feb 2014 05:46:58 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-02-04T05:46:58Z</dc:date>
    <item>
      <title>Master Calendar with 2 Date Fields</title>
      <link>https://community.qlik.com/t5/QlikView/Master-Calendar-with-2-Date-Fields/m-p/603006#M1118370</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 have the following Master Calendar:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LK_DATE_TMP:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp; DATE( MAKEDATE(ID_TIE_AÑO,ID_TIE_MES,ID_TIE_DIA),'YYYYMMDD') AS &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;KEY_PERIODO&lt;/STRONG&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; DATE( MAKEDATE(ID_TIE_AÑO,ID_TIE_MES),'YYYYMM') AS ID_TIE_AÑOMES,&lt;/P&gt;&lt;P&gt;&amp;nbsp; DATE( MAKEDATE(ID_TIE_AÑO,ID_TIE_MES),'MMM-YY') AS ID_TIE_AÑOMESDESC,&lt;/P&gt;&lt;P&gt;&amp;nbsp; DATE( MAKEDATE(ID_TIE_AÑO,ID_TIE_MES,ID_TIE_DIA),'YYYYMMDD') AS ID_TIE_AÑOMESDIA,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'Q'&amp;amp;ceil(ID_TIE_MES/3) AS ID_TIE_TRIMESTRE;&lt;/P&gt;&lt;P&gt;LOAD ID_TIE_FECHA,&lt;/P&gt;&lt;P&gt;&amp;nbsp; YEAR(ID_TIE_FECHA) AS ID_TIE_AÑO,&lt;/P&gt;&lt;P&gt;&amp;nbsp; MONTH(ID_TIE_FECHA) AS ID_TIE_MES,&lt;/P&gt;&lt;P&gt;&amp;nbsp; NUM(MONTH(ID_TIE_FECHA)) AS ID_TIE_MES#,&lt;/P&gt;&lt;P&gt;&amp;nbsp; NUM(DAY(ID_TIE_FECHA)) AS ID_TIE_DIA,&lt;/P&gt;&lt;P&gt;&amp;nbsp; WEEKDAY(ID_TIE_FECHA) AS ID_TIE_DIA_SEMANA,&lt;/P&gt;&lt;P&gt;&amp;nbsp; NUM(ID_TIE_FECHA) AS ID_TIE_FECHA#;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; DATE(MAKEDATE(2007,1,1)+(ITERNO()-1),'YYYYMMDD') AS ID_TIE_FECHA&lt;/P&gt;&lt;P&gt;AUTOGENERATE 1&lt;/P&gt;&lt;P&gt;WHILE DATE(MAKEDATE(2007,1,1)+(ITERNO()-1)) &amp;lt;= DATE(MAKEDATE(YEAR(TODAY()),MONTH(TODAY()),DAY(TODAY())));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MASTER_CALENDAR:&lt;/P&gt;&lt;P&gt;NOCONCATENATE&lt;/P&gt;&lt;P&gt;LOAD DISTINCT&lt;/P&gt;&lt;P&gt;&amp;nbsp; *&lt;/P&gt;&lt;P&gt;RESIDENT LK_FECHA_TMP&lt;/P&gt;&lt;P&gt;WHERE EXISTS(&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;FECHA_GESTION&lt;/STRONG&gt;&lt;/SPAN&gt;,ID_TIE_FECHA);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP FIELD FECHA_GESTION;&lt;/P&gt;&lt;P&gt;DROP TABLE LK_FECHA_TMP;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I have my transactional table with all the information related to the Tasks.&lt;/P&gt;&lt;P&gt;The Master Calendar is asociated to the Tasks table by the "Complete Date":&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TASKS:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Field1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Field2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Field3,&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp; DATE (FLOOR (COMPLETE_DTTM), 'YYYYMMDD')&lt;/TD&gt;&lt;TD&gt;as &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;KEY_PERIODO&lt;/STRONG&gt;&lt;/SPAN&gt;,&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp; DATE (FLOOR (COMPLETE_DTTM), 'YYYYMMDD')&lt;/TD&gt;&lt;TD&gt;as &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;FECHA_GESTION&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everything works okay so far, but the thing is that now I have another table, Pays, which has a field named "Pay Date" and Amounts, and I'd like to use the same Master Calendar to see my information by both, the "Complete Date" and also by the "Pay Date" if I select a particular date, to visualize the associated data. How could I do that? Should I add the following?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PAYS:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Field1_Pay,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Field2_Pay,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Field3_Pay,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Amounts,&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp; DATE (FLOOR (PAY_DT), 'YYYYMMDD')&lt;/TD&gt;&lt;TD&gt;as &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;KEY_PERIODO_PAY&lt;/STRONG&gt;&lt;/SPAN&gt;,&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp; DATE (FLOOR (PAY_DT), 'YYYYMMDD')&lt;/TD&gt;&lt;TD&gt;as &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;FECHA_GESTION_PAY&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But then how could I modify the Master Calendar code? It would work like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LK_DATE_TMP:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp; DATE( MAKEDATE(ID_TIE_AÑO,ID_TIE_MES,ID_TIE_DIA),'YYYYMMDD') AS &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;KEY_PERIODO&lt;/STRONG&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp; DATE( MAKEDATE(ID_TIE_AÑO,ID_TIE_MES,ID_TIE_DIA),'YYYYMMDD') AS &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;KEY_PERIODO_PAY&lt;/STRONG&gt;&lt;/SPAN&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MASTER_CALENDAR:&lt;/P&gt;&lt;P&gt;NOCONCATENATE&lt;/P&gt;&lt;P&gt;LOAD DISTINCT *&lt;/P&gt;&lt;P&gt;RESIDENT LK_FECHA_TMP&lt;/P&gt;&lt;P&gt;WHERE EXISTS(&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;FECHA_GESTION&lt;/STRONG&gt;&lt;/SPAN&gt;,ID_TIE_FECHA)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;AND EXISTS(&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;FECHA_GESTION_PAY&lt;/STRONG&gt;&lt;/SPAN&gt;,ID_TIE_FECHA);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really need your help with this!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2014 03:57:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-Calendar-with-2-Date-Fields/m-p/603006#M1118370</guid>
      <dc:creator>microwin88x</dc:creator>
      <dc:date>2014-02-04T03:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Master Calendar with 2 Date Fields</title>
      <link>https://community.qlik.com/t5/QlikView/Master-Calendar-with-2-Date-Fields/m-p/603007#M1118371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;have you read this?&lt;/P&gt;&lt;P&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;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/65373" title="http://community.qlik.com/thread/65373"&gt;http://community.qlik.com/thread/65373&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2014 04:07:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-Calendar-with-2-Date-Fields/m-p/603007#M1118371</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-04T04:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: Master Calendar with 2 Date Fields</title>
      <link>https://community.qlik.com/t5/QlikView/Master-Calendar-with-2-Date-Fields/m-p/603008#M1118372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I have to deal with multiple date fields I typically make a Master Calendar for each date field.&amp;nbsp; You can speed up this process by using an already defined Sub Function that builds the Calendar for you.&amp;nbsp; You can find a very good one here " code.google.com/p/qlikview-components/&amp;nbsp; ".&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2014 04:55:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-Calendar-with-2-Date-Fields/m-p/603008#M1118372</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-04T04:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: Master Calendar with 2 Date Fields</title>
      <link>https://community.qlik.com/t5/QlikView/Master-Calendar-with-2-Date-Fields/m-p/603009#M1118373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;also the Qlikview Deployment Framework has a very good function to create date dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/group/1224"&gt;QlikView Deployment Framework&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2014 05:46:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-Calendar-with-2-Date-Fields/m-p/603009#M1118373</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-04T05:46:58Z</dc:date>
    </item>
  </channel>
</rss>

