<?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 Master Calendar for Multiple Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Master-Calendar-for-Multiple-Table/m-p/215000#M68480</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be you can use the following code for calender:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P style="font-style: italic"&gt;&lt;/P&gt;&lt;P style="font-style: italic"&gt;CalendarRaw:&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;load&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date(makedate(2008)+recno()-1,'DD-MM-YYYY') &lt;B&gt;as&lt;/B&gt; Calendar&lt;/P&gt;&lt;P&gt;&lt;B&gt;autogenerate&lt;/B&gt; 365&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;;&lt;/P&gt;&lt;P style="font-style: italic"&gt;&lt;/P&gt;&lt;P style="font-style: italic"&gt;Calendar:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Load&lt;/P&gt;&lt;P&gt;Calendar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;day&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;(Calendar) &lt;B&gt;as&lt;/B&gt; Day &lt;P&gt;,&lt;/P&gt;&lt;P&gt;month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;(Calendar) &lt;B&gt;as&lt;/B&gt; Month &lt;P&gt;,&lt;/P&gt;&lt;P&gt;year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;(Calendar) &lt;B&gt;as&lt;/B&gt; Year &lt;P&gt;,&lt;/P&gt;&lt;P&gt;weekday&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;(Calendar) &lt;B&gt;as&lt;/B&gt; WeekDay &lt;P&gt;,&lt;/P&gt;&lt;P&gt;week&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;(Calendar) &lt;B&gt;as&lt;/B&gt; Week &lt;P&gt;,&lt;/P&gt;&lt;P&gt;if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;(weekday(Calendar)='Sun' &lt;B&gt;or&lt;/B&gt; HDay_Flag='1','1','0') &lt;B&gt;as&lt;/B&gt; &lt;P&gt;HDay_Flag&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Jan 2010 08:04:45 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-01-19T08:04:45Z</dc:date>
    <item>
      <title>Master Calendar for Multiple Table</title>
      <link>https://community.qlik.com/t5/QlikView/Master-Calendar-for-Multiple-Table/m-p/214999#M68479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;I need to use one master calendar for multiple date fields from different databases. I read forum topics which are related with this but cannot conclude a solution. Would you please guide me. Here is my code:&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;SET ThousandSep='.';&lt;BR /&gt;SET DecimalSep=',';&lt;BR /&gt;SET MoneyThousandSep='.';&lt;BR /&gt;SET MoneyDecimalSep=',';&lt;BR /&gt;SET MoneyFormat='#.##0,00 TL;-#.##0,00 TL';&lt;BR /&gt;SET TimeFormat='hh:mm:ss';&lt;BR /&gt;SET DateFormat='DD.MM.YYYY';&lt;BR /&gt;SET TimestampFormat='DD.MM.YYYY hh:mm:ss[.fff]';&lt;BR /&gt;SET MonthNames='Oca;?ub;Mar;Nis;May;Haz;Tem;A?u;Eyl;Eki;Kas;Ara';&lt;BR /&gt;SET DayNames='Pzt;Sal;Çar;Per;Cum;Cmt;Paz';&lt;BR /&gt;&lt;BR /&gt;CONNECT TO [Provider=OraOLEDB.Oracle.1;Persist Security Info=False;User ID=username;Data Source=INTDB;Extended Properties=""] (XPassword is ****);&lt;BR /&gt;EXCEL1:&lt;BR /&gt;LOAD ID,&lt;BR /&gt; TIP,&lt;BR /&gt; TARIH,&lt;BR /&gt; ACILAN,&lt;BR /&gt; COZULEN,&lt;BR /&gt; ACIK,&lt;BR /&gt; SUREC,&lt;BR /&gt; "SUREC_AD";&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM MDBADMIN."ZRAPOR_GENEL";&lt;BR /&gt;OrderedDatesTable: //Changed&lt;BR /&gt;LOAD TARIH RESIDENT EXCEL1 ORDER BY TARIH ASC;&lt;BR /&gt;LET varMinDate = Num(Peek('TARIH', 0, 'OrderedDatesTable'));&lt;BR /&gt;LET varMaxDate = Num(Peek('TARIH', -1, 'OrderedDatesTable'));&lt;BR /&gt;LET vToday = Num(today());&lt;BR /&gt;//*************** Temporary Calendar ***************&lt;BR /&gt;TempCalendar:&lt;BR /&gt;LOAD&lt;BR /&gt;$(varMinDate) + rowno() - 1 AS Num,&lt;BR /&gt;date($(varMinDate) + rowno() - 1) AS TempDate&lt;BR /&gt;AUTOGENERATE $(varMaxDate) - $(varMinDate) + 1;&lt;BR /&gt;&lt;BR /&gt;//*************** Master Calendar ***************&lt;BR /&gt;MasterCalendar:&lt;BR /&gt;LOAD TempDate as TARIH,&lt;BR /&gt; week(TempDate) AS Week,&lt;BR /&gt; year(TempDate) AS Year,&lt;BR /&gt; month(TempDate) AS Month,&lt;BR /&gt; day(TempDate) AS Day,&lt;BR /&gt; weekday(TempDate) AS WeekDay,&lt;BR /&gt; 'Q' &amp;amp; Ceil(Month(TempDate)/3) AS Quarter,&lt;BR /&gt; date(monthstart(TempDate), 'MMM-YYYY') AS MonthYear,&lt;BR /&gt; week(TempDate)&amp;amp;'-'&amp;amp;Year(TempDate) AS WeekYear,&lt;BR /&gt; Year2Date(TempDate, 0, 1, $(vToday))*-1 AS CurYTDFlag,&lt;BR /&gt; Year2Date(TempDate,-1, 1, $(vToday))*-1 AS LastYTDFlag&lt;BR /&gt;RESIDENT TempCalendar&lt;BR /&gt;ORDER BY TempDate Asc;&lt;BR /&gt;DROP TABLE TempCalendar;&lt;BR /&gt;DROP TABLE OrderedDatesTable;&lt;BR /&gt;CONNECT TO [Provider=OraOLEDB.Oracle.1;Persist Security Info=False;User ID=TK_REP_USR;Data Source=TK103;Extended Properties=""] (XPassword is ****);&lt;BR /&gt;CQ_DB1:&lt;BR /&gt;LOAD //DBID,&lt;BR /&gt; ID AS ID_CQ,&lt;BR /&gt; "ISTEKTE_BULUNAN",&lt;BR /&gt; "MISC_INFO",&lt;BR /&gt; KONU,&lt;BR /&gt; STATUS,&lt;BR /&gt; PRIORITY,&lt;BR /&gt; PROJE,&lt;BR /&gt; NAME,&lt;BR /&gt; //"SUBMIT_DATE",&lt;BR /&gt; Date("SUBMIT_DATE") as TARIH,&lt;BR /&gt; ACTUALMANHOUR,&lt;BR /&gt; "GERCEK_ADAMSAAT_ANALIZ",&lt;BR /&gt; PLANNEDMANHOUR,&lt;BR /&gt; "PLANLANAN_ADAMSAAT_ANALIZ",&lt;BR /&gt; YONETICI,&lt;BR /&gt; "COZUM_GRUBU";&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM "TK_REP_USR"."OZSEV_RAPOR1";&lt;BR /&gt;CQ_DB2:&lt;BR /&gt;LOAD //DBID,&lt;BR /&gt; ID AS ID_CQ,&lt;BR /&gt; "ACTION_TIMESTAMP",&lt;BR /&gt; "ACTION_NAME",&lt;BR /&gt; "NEW_STATE";&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM "TK_REP_USR"."OZSEV_RAPOR2_TARIHCE";&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2010 13:38:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-Calendar-for-Multiple-Table/m-p/214999#M68479</guid>
      <dc:creator />
      <dc:date>2010-01-18T13:38:01Z</dc:date>
    </item>
    <item>
      <title>Master Calendar for Multiple Table</title>
      <link>https://community.qlik.com/t5/QlikView/Master-Calendar-for-Multiple-Table/m-p/215000#M68480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be you can use the following code for calender:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P style="font-style: italic"&gt;&lt;/P&gt;&lt;P style="font-style: italic"&gt;CalendarRaw:&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;load&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date(makedate(2008)+recno()-1,'DD-MM-YYYY') &lt;B&gt;as&lt;/B&gt; Calendar&lt;/P&gt;&lt;P&gt;&lt;B&gt;autogenerate&lt;/B&gt; 365&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;;&lt;/P&gt;&lt;P style="font-style: italic"&gt;&lt;/P&gt;&lt;P style="font-style: italic"&gt;Calendar:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Load&lt;/P&gt;&lt;P&gt;Calendar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;day&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;(Calendar) &lt;B&gt;as&lt;/B&gt; Day &lt;P&gt;,&lt;/P&gt;&lt;P&gt;month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;(Calendar) &lt;B&gt;as&lt;/B&gt; Month &lt;P&gt;,&lt;/P&gt;&lt;P&gt;year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;(Calendar) &lt;B&gt;as&lt;/B&gt; Year &lt;P&gt;,&lt;/P&gt;&lt;P&gt;weekday&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;(Calendar) &lt;B&gt;as&lt;/B&gt; WeekDay &lt;P&gt;,&lt;/P&gt;&lt;P&gt;week&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;(Calendar) &lt;B&gt;as&lt;/B&gt; Week &lt;P&gt;,&lt;/P&gt;&lt;P&gt;if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;(weekday(Calendar)='Sun' &lt;B&gt;or&lt;/B&gt; HDay_Flag='1','1','0') &lt;B&gt;as&lt;/B&gt; &lt;P&gt;HDay_Flag&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 08:04:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-Calendar-for-Multiple-Table/m-p/215000#M68480</guid>
      <dc:creator />
      <dc:date>2010-01-19T08:04:45Z</dc:date>
    </item>
  </channel>
</rss>

