<?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 3 fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Master-Calendar-with-3-fields/m-p/665494#M676295</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a Master Calendar with Min and Max Date...&lt;/P&gt;&lt;P&gt;Now create a Temp Table with Distinct Car and do a Cartesian Join with Above Calendar Dates with All Distinct Car...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can Concatenate your original table with the Temp table with Where Not Exists condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now create a final table as per your requirements....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you still don't get the desired output, please provide us sample data file along with your required output..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;would love to help you..&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 13 Jul 2014 07:57:35 GMT</pubDate>
    <dc:creator>MK_QSL</dc:creator>
    <dc:date>2014-07-13T07:57:35Z</dc:date>
    <item>
      <title>Master Calendar with 3 fields</title>
      <link>https://community.qlik.com/t5/QlikView/Master-Calendar-with-3-fields/m-p/665493#M676294</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 have main table with Dates.&amp;nbsp;&amp;nbsp; (field names- id,date,car).&lt;/P&gt;&lt;P&gt;I have tables with Car Numbers. (field name- carnum).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are some cars that has no data rows in specific years and months in the main table.&lt;/P&gt;&lt;P&gt;And i need it to be in there for other joins with other data tables (expenses and so).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To deal with it, i thought of creating a master table that will automatically create all possible year month and car rows.&lt;/P&gt;&lt;P&gt;To be more specific- every car will appear in every year and month. and this master table with have another columnn&lt;/P&gt;&lt;P&gt;named &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; ID that will contain data in that format - 99920131212345 (999 + 2013 + 12 + 12345).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;afterwards i will join these tables. with ID field. and new rows would be in it and all my joins work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HOW to do all this i don't know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I'm opened to a different solution to my problem&lt;/STRONG&gt;.&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>Sun, 13 Jul 2014 00:23:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-Calendar-with-3-fields/m-p/665493#M676294</guid>
      <dc:creator />
      <dc:date>2014-07-13T00:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: Master Calendar with 3 fields</title>
      <link>https://community.qlik.com/t5/QlikView/Master-Calendar-with-3-fields/m-p/665494#M676295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a Master Calendar with Min and Max Date...&lt;/P&gt;&lt;P&gt;Now create a Temp Table with Distinct Car and do a Cartesian Join with Above Calendar Dates with All Distinct Car...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can Concatenate your original table with the Temp table with Where Not Exists condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now create a final table as per your requirements....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you still don't get the desired output, please provide us sample data file along with your required output..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;would love to help you..&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Jul 2014 07:57:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-Calendar-with-3-fields/m-p/665494#M676295</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-07-13T07:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: Master Calendar with 3 fields</title>
      <link>https://community.qlik.com/t5/QlikView/Master-Calendar-with-3-fields/m-p/665495#M676296</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;Look at the below script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;CalendarMaster:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(InvoiceDate) AS InvoiceDate,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(InvoiceDate) AS Year,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Q' &amp;amp; Ceil(Month(InvoiceDate) / 3) AS Quarter,&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month(InvoiceDate) As Month,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Day(InvoiceDate) As Day,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Week(InvoiceDate) As Week;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load Date(MinDate + IterNo() -1 ) AS InvoiceDate While (MinDate + IterNo() - 1) &amp;lt;= Num(MaxDate);&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Min(InvoiceDate) AS MinDate,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Max(InvoiceDate) AS MaxDate&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;RESIDENT Invoice;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Also look at the below post&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A _jive_internal="true" href="https://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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ASHFAQ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Jul 2014 08:32:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-Calendar-with-3-fields/m-p/665495#M676296</guid>
      <dc:creator>ashfaq_haseeb</dc:creator>
      <dc:date>2014-07-13T08:32:33Z</dc:date>
    </item>
  </channel>
</rss>

