<?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 and Facts table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Master-calendar-and-Facts-table/m-p/957908#M328990</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your fact table date seems to be a timestamp with date and time. You calendar only handles dates, that's why probably the link is not working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Sep 2015 10:44:46 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2015-09-29T10:44:46Z</dc:date>
    <item>
      <title>Master calendar and Facts table</title>
      <link>https://community.qlik.com/t5/QlikView/Master-calendar-and-Facts-table/m-p/957906#M328988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I am trying to plot a graph with the month on X axis and the outage details.i.e sum of outage mins on Y axis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem i am facing is that when month field created using master calendar is not being recognised&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attaching my script of fact table and master calendar in respective txt files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached screenshot of the table showcasing the issue. When I prepare a table then month name doesnt appear for the dates.Somehow the month is not getting mapped wherever there is an outage date in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody please help what is going wrong here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 10:38:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-calendar-and-Facts-table/m-p/957906#M328988</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-29T10:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Master calendar and Facts table</title>
      <link>https://community.qlik.com/t5/QlikView/Master-calendar-and-Facts-table/m-p/957907#M328989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems there is some problem with the string and date comparision, use date# function to convert the string to date and then join...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Sreeni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 10:41:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-calendar-and-Facts-table/m-p/957907#M328989</guid>
      <dc:creator>SreeniJD</dc:creator>
      <dc:date>2015-09-29T10:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: Master calendar and Facts table</title>
      <link>https://community.qlik.com/t5/QlikView/Master-calendar-and-Facts-table/m-p/957908#M328990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your fact table date seems to be a timestamp with date and time. You calendar only handles dates, that's why probably the link is not working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 10:44:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-calendar-and-Facts-table/m-p/957908#M328990</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-09-29T10:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: Master calendar and Facts table</title>
      <link>https://community.qlik.com/t5/QlikView/Master-calendar-and-Facts-table/m-p/957909#M328991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please elaborate? I didnt understand..Attaching my base file !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 10:48:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-calendar-and-Facts-table/m-p/957909#M328991</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-29T10:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: Master calendar and Facts table</title>
      <link>https://community.qlik.com/t5/QlikView/Master-calendar-and-Facts-table/m-p/957910#M328992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do i get rid of it then?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 10:49:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-calendar-and-Facts-table/m-p/957910#M328992</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-29T10:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: Master calendar and Facts table</title>
      <link>https://community.qlik.com/t5/QlikView/Master-calendar-and-Facts-table/m-p/957911#M328993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2954"&gt;Why don’t my dates work?&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 10:50:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-calendar-and-Facts-table/m-p/957911#M328993</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-09-29T10:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: Master calendar and Facts table</title>
      <link>https://community.qlik.com/t5/QlikView/Master-calendar-and-Facts-table/m-p/957912#M328994</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;to get month use this Exp in scrapt in master Calendar Date#(Yourdatefield,'MMM-YYYY') as Month&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 10:53:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-calendar-and-Facts-table/m-p/957912#M328994</guid>
      <dc:creator>ChennaiahNallani</dc:creator>
      <dc:date>2015-09-29T10:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: Master calendar and Facts table</title>
      <link>https://community.qlik.com/t5/QlikView/Master-calendar-and-Facts-table/m-p/957913#M328995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Open_date_IST values of Outage_details table and TempDate AS Open_date_IST of MasterCalendar may not be matching.&lt;/P&gt;&lt;P&gt;Use my attached script. This will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change the script as shown in screen.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/100330_Capture.PNG" style="height: auto;" /&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;Outage_details:&lt;/P&gt;&lt;P&gt;LOAD [Incident Number], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date(Open_date_IST) as Open_date_IST , &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; monthname(Open_date_IST) as Open_Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Outage Start Date/Time(UTC/GMT)], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; regiontime, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Description, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Summary, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Configuration Item Name], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Outage Cause Factor], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Outage Type], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Outage Duration (Min)], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Outage Ref], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Outage Scope], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Platform Failure Description], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Crisis Call Duration (Min)]&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QuartersMap:&amp;nbsp; &lt;/P&gt;&lt;P&gt;MAPPING LOAD&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;rowno() as Month,&amp;nbsp; &lt;/P&gt;&lt;P&gt;'Q' &amp;amp; Ceil (rowno()/3) as Quarter&amp;nbsp; &lt;/P&gt;&lt;P&gt;AUTOGENERATE (12);&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Temp:&amp;nbsp; &lt;/P&gt;&lt;P&gt;Load&amp;nbsp; &lt;/P&gt;&lt;P&gt;min(Open_date_IST) as minDate,&amp;nbsp; &lt;/P&gt;&lt;P&gt;max(Open_date_IST) as maxDate&amp;nbsp; &lt;/P&gt;&lt;P&gt;Resident Outage_details;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Let varMinDate = Num(Peek('minDate', 0, 'Temp'));&amp;nbsp; &lt;/P&gt;&lt;P&gt;Let varMaxDate = Num(Peek('maxDate', 0, 'Temp'));&amp;nbsp; &lt;/P&gt;&lt;P&gt;DROP Table Temp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;TempCalendar:&amp;nbsp; &lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp; &lt;/P&gt;&lt;P&gt;$(varMinDate) + Iterno()-1 As Num,&amp;nbsp; &lt;/P&gt;&lt;P&gt;Date($(varMinDate) + IterNo() - 1) as TempDate&amp;nbsp; &lt;/P&gt;&lt;P&gt;AutoGenerate 1 While $(varMinDate) + IterNo() -1 &amp;lt;= $(varMaxDate);&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;MasterCalendar:&amp;nbsp; &lt;/P&gt;&lt;P&gt;Load&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; TempDate AS Open_date_IST,&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; week(TempDate) As Week,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; Year(TempDate) As Year,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; Monthname(TempDate,0) As Month,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; Day(TempDate) As Day,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; ApplyMap('QuartersMap', month(TempDate), Null()) as Quarter,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; Week(weekstart(TempDate)) &amp;amp; '-' &amp;amp; WeekYear(TempDate) as WeekYear,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; WeekDay(TempDate) as WeekDay&amp;nbsp; &lt;/P&gt;&lt;P&gt;Resident TempCalendar&amp;nbsp; &lt;/P&gt;&lt;P&gt;Order By TempDate ASC;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Drop Table TempCalendar;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 10:58:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-calendar-and-Facts-table/m-p/957913#M328995</guid>
      <dc:creator>qlikviewwizard</dc:creator>
      <dc:date>2015-09-29T10:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: Master calendar and Facts table</title>
      <link>https://community.qlik.com/t5/QlikView/Master-calendar-and-Facts-table/m-p/957914#M328996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks .. Iused the floor function and it worked like a miracle..!! Thanks for pointing me to the right blog&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 11:23:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-calendar-and-Facts-table/m-p/957914#M328996</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-29T11:23:04Z</dc:date>
    </item>
  </channel>
</rss>

