<?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 tables in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Master-Calendar-with-2-tables/m-p/1028989#M15713</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did and they have.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Sangram, but it is not it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Jan 2016 17:09:29 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-01-05T17:09:29Z</dc:date>
    <item>
      <title>Master Calendar with 2 tables</title>
      <link>https://community.qlik.com/t5/App-Development/Master-Calendar-with-2-tables/m-p/1028987#M15711</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;I am trying to create a dynamic table to make it easy to visualize sales engineers actual booking performance and compare it to their monthly targets.&lt;/P&gt;&lt;P&gt;The problem that I have is that the info for booking values and sales targets comes from 2 different tables. On both date format is DDMMYYYY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Booking values comes from a table called SALESTABLE and field name is CREATEDDATETIME&lt;/P&gt;&lt;P&gt;Monthly targets comes from a table called TARGETS and field name is PLANMONTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem that I have is when using dimensions YEAR AND MONTH, it creates 2 sets of dimensions YEAR(PLANMONTH) AND YEAR(CREATEDDATETIME), when I try to put both on a table it does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought the solution for that was to create a Master Calendar, with I did, but id does not work.&lt;/P&gt;&lt;P&gt;The script that I am using for the master calendar is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Helvetica; color: #454545;"&gt;/*Master Callender prepared based on all dates avaliable*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Helvetica; color: #454545;"&gt;&lt;STRONG&gt;LET&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM&gt;varMinDate&lt;/EM&gt;&lt;/STRONG&gt; = Num(rangemin(Peek(‘CREATEDDATETIME’, 0,'SALESTABLE'),Peek(‘PLANMONTH, 0,' TARGETS')));&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Helvetica; color: #454545;"&gt;&lt;STRONG&gt;LET&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM&gt;varMaxDate&lt;/EM&gt;&lt;/STRONG&gt; = Num(rangemax(Peek(&lt;SPAN style="color: #454545; font-family: Helvetica; font-size: 12px;"&gt;‘CREATEDDATETIME’, 0,'SALESTABLE'),Peek(‘PLANMONTH, 0,' TARGETS')));&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Helvetica; color: #454545;"&gt;&lt;STRONG&gt;LET&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM&gt;vToday&lt;/EM&gt;&lt;/STRONG&gt; = num(today());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Helvetica; color: #454545;"&gt;TempCalendar:&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Helvetica; color: #454545;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Helvetica; color: #454545;"&gt;&lt;STRONG&gt;&lt;EM&gt;$(varMinDate)&lt;/EM&gt;&lt;/STRONG&gt;+Iterno()-1 AS Num,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Helvetica; color: #454545;"&gt;Date(&lt;STRONG&gt;&lt;EM&gt;$(varMinDate)&lt;/EM&gt;&lt;/STRONG&gt;+Iterno()-1) AS TempDate&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Helvetica; color: #454545;"&gt;AUTOGENERATE 1 WHILE &lt;STRONG&gt;&lt;EM&gt;$(varMinDate)&lt;/EM&gt;&lt;/STRONG&gt;+Iterno()-1&amp;lt;= num(today()); &lt;/P&gt;&lt;P style="font-size: 12px; font-family: Helvetica; color: #454545;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Helvetica; color: #454545;"&gt;&lt;STRONG style="color: #454545; font-family: Helvetica; font-size: 12px;"&gt;LOAD&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Helvetica; color: #454545;"&gt;TempDate as DAILY_Date,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Helvetica; color: #454545;"&gt;week(TempDate) as Week,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Helvetica; color: #454545;"&gt;Year(TempDate) as Year,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Helvetica; color: #454545;"&gt;Month(TempDate) as Month,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Helvetica; color: #454545;"&gt;Hour (TempDate) as Hour,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Helvetica; color: #454545;"&gt;Day(TempDate) as Day,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Helvetica; color: #454545;"&gt;Year2date(TempDate)*-1 as CurYTDFlag,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Helvetica; color: #454545;"&gt;Year2date(TempDate,-1)*-1 as LastYTDFlag,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Helvetica; color: #454545;"&gt;Date(monthstart(TempDate), 'MMM-YYYY') AS MonthYear,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Helvetica; color: #454545;"&gt;Week(TempDate)&amp;amp; '-'&amp;amp;Year(TempDate) as WeekYear,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Helvetica; color: #454545;"&gt;date(Today()-1) as Yesterday,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Helvetica; color: #454545;"&gt;Week (today()) as CurrentWeek,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Helvetica; color: #454545;"&gt;(Week (today()))-1 as LastWeek,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Helvetica; color: #454545;"&gt;Weekday(TempDate) as WeekDay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Helvetica; color: #454545;"&gt;resident TempCalendar&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Helvetica; color: #454545;"&gt;order by TempDate Asc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Helvetica; color: #454545;"&gt;&lt;STRONG&gt;Drop&lt;/STRONG&gt; Table TempCalendar;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Helvetica; color: #454545;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Helvetica; color: #454545;"&gt;But it does not work. Any clues about what I am doing wrong?&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Helvetica; color: #454545;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Helvetica; color: #454545;"&gt;Renata&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2016 15:48:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Master-Calendar-with-2-tables/m-p/1028987#M15711</guid>
      <dc:creator />
      <dc:date>2016-01-05T15:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: Master Calendar with 2 tables</title>
      <link>https://community.qlik.com/t5/App-Development/Master-Calendar-with-2-tables/m-p/1028988#M15712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Renata,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you debug and and see the variables &lt;STRONG style="font-size: 12px; font-family: Helvetica; color: #454545;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;varMinDate &lt;/EM&gt;&lt;/STRONG&gt;and&lt;EM style="font-weight: inherit; font-family: inherit;"&gt; &lt;/EM&gt;&lt;STRONG style="font-size: 12px; font-family: Helvetica; color: #454545;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-size: 12px; font-family: Helvetica; color: #454545;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;varMaxDate &lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;have the values you need? This could be a possible reason where its going wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Beast Regards,&lt;/P&gt;&lt;P&gt;Sangram Reddy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2016 16:30:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Master-Calendar-with-2-tables/m-p/1028988#M15712</guid>
      <dc:creator>reddy-s</dc:creator>
      <dc:date>2016-01-05T16:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: Master Calendar with 2 tables</title>
      <link>https://community.qlik.com/t5/App-Development/Master-Calendar-with-2-tables/m-p/1028989#M15713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did and they have.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Sangram, but it is not it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2016 17:09:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Master-Calendar-with-2-tables/m-p/1028989#M15713</guid>
      <dc:creator />
      <dc:date>2016-01-05T17:09:29Z</dc:date>
    </item>
  </channel>
</rss>

