<?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 One calendar for different date fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/One-calendar-for-different-date-fields/m-p/152512#M711537</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's one way.&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;OrderActivities:&lt;BR /&gt;LOAD&lt;BR /&gt; OrderID&lt;BR /&gt;,'Ordered' as Activity&lt;BR /&gt;,OrderDate as Date&lt;BR /&gt;RESIDENT Orders&lt;BR /&gt;;&lt;BR /&gt;CONCATENATE (OrderActivities)&lt;BR /&gt;LOAD&lt;BR /&gt; OrderID&lt;BR /&gt;,'Packaged' as Activity&lt;BR /&gt;,PackagingDate as Date&lt;BR /&gt;RESIDENT Orders&lt;BR /&gt;;&lt;BR /&gt;CONCATENATE (OrderActivities)&lt;BR /&gt;LOAD&lt;BR /&gt; OrderID&lt;BR /&gt;,'Shipped' as Activity&lt;BR /&gt;,ShippingDate as Date&lt;BR /&gt;RESIDENT Orders&lt;BR /&gt;;&lt;BR /&gt;// Optional: It can be useful to still have the original fields.&lt;BR /&gt;DROP FIELDS&lt;BR /&gt; OrderDate&lt;BR /&gt;,PackagingDate&lt;BR /&gt;,ShippingDate&lt;BR /&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Jan 2011 01:58:27 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2011-01-05T01:58:27Z</dc:date>
    <item>
      <title>One calendar for different date fields</title>
      <link>https://community.qlik.com/t5/QlikView/One-calendar-for-different-date-fields/m-p/152509#M711534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I need your help.&lt;/P&gt;&lt;P&gt;I have database with different date fields which I need to connect to ONE calendar in my QV application. I've created an autogenerated master calendar but how do I link the different date fields to it?&lt;/P&gt;&lt;P&gt;For an example, if I click on March 3, 2010, I want records of orders which was made on that day (OrderDate), orders that was packed that day (PackingDate), and orders which was shipped that day (ShippingDate).&lt;/P&gt;&lt;P&gt;I don't want several different calendars for the different date fields, and I've heard that one can do this with ONE calendar....&lt;/P&gt;&lt;P&gt;Any advice?&lt;/P&gt;&lt;P&gt;Mi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jan 2011 12:00:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/One-calendar-for-different-date-fields/m-p/152509#M711534</guid>
      <dc:creator />
      <dc:date>2011-01-04T12:00:06Z</dc:date>
    </item>
    <item>
      <title>One calendar for different date fields</title>
      <link>https://community.qlik.com/t5/QlikView/One-calendar-for-different-date-fields/m-p/152510#M711535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mi,&lt;/P&gt;&lt;P&gt;The best way of achieving this is to have a single fact table with all tables that contain a date concatenated into it. The date across all the tables will need to be in the same column of the concatenated table. Any other common fields between tables should be in one column in the new table. Any columns that don't exist in all tables should be populated with null() or zero when they are concatenated in.&lt;/P&gt;&lt;P&gt;If you go this route then you will need to be aware of how the change will affect joins and selections.&lt;/P&gt;&lt;P&gt;A basic example of the load script would be:&lt;/P&gt;&lt;P&gt;FactTable:&lt;BR /&gt;LOAD&lt;BR /&gt; SalesDate as Date,&lt;BR /&gt; CustomerNo,&lt;BR /&gt; null() as SupplierNo,&lt;BR /&gt; ItemNo,&lt;BR /&gt; SalesAmount,&lt;BR /&gt; 0 as PurchaseAmount&lt;BR /&gt;FROM Sales.xls ....;&lt;BR /&gt;&lt;BR /&gt;FactTable:&lt;BR /&gt;LOAD&lt;BR /&gt; PurchaseDate as Date,&lt;BR /&gt; null() as CustomerNo,&lt;BR /&gt; SupplierNo,&lt;BR /&gt; ItemNo,&lt;BR /&gt; 0 as SalesAmount,&lt;BR /&gt; PurchaseAmount&lt;BR /&gt;FROM Purchases.xls ....;&lt;/P&gt;&lt;P&gt;Note that the columns loaded from both sources are identical to cause an implicit concatenate. A forced concatenate can be done by using the Concatenate statement.&lt;/P&gt;&lt;P&gt;Hope that helps - please post back if you want further info.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jan 2011 12:21:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/One-calendar-for-different-date-fields/m-p/152510#M711535</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2011-01-04T12:21:13Z</dc:date>
    </item>
    <item>
      <title>One calendar for different date fields</title>
      <link>https://community.qlik.com/t5/QlikView/One-calendar-for-different-date-fields/m-p/152511#M711536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Please refer the link.&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/forums/t/38812.aspx"&gt;http://community.qlik.com/forums/t/38812.aspx&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jan 2011 12:22:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/One-calendar-for-different-date-fields/m-p/152511#M711536</guid>
      <dc:creator />
      <dc:date>2011-01-04T12:22:34Z</dc:date>
    </item>
    <item>
      <title>One calendar for different date fields</title>
      <link>https://community.qlik.com/t5/QlikView/One-calendar-for-different-date-fields/m-p/152512#M711537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's one way.&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;OrderActivities:&lt;BR /&gt;LOAD&lt;BR /&gt; OrderID&lt;BR /&gt;,'Ordered' as Activity&lt;BR /&gt;,OrderDate as Date&lt;BR /&gt;RESIDENT Orders&lt;BR /&gt;;&lt;BR /&gt;CONCATENATE (OrderActivities)&lt;BR /&gt;LOAD&lt;BR /&gt; OrderID&lt;BR /&gt;,'Packaged' as Activity&lt;BR /&gt;,PackagingDate as Date&lt;BR /&gt;RESIDENT Orders&lt;BR /&gt;;&lt;BR /&gt;CONCATENATE (OrderActivities)&lt;BR /&gt;LOAD&lt;BR /&gt; OrderID&lt;BR /&gt;,'Shipped' as Activity&lt;BR /&gt;,ShippingDate as Date&lt;BR /&gt;RESIDENT Orders&lt;BR /&gt;;&lt;BR /&gt;// Optional: It can be useful to still have the original fields.&lt;BR /&gt;DROP FIELDS&lt;BR /&gt; OrderDate&lt;BR /&gt;,PackagingDate&lt;BR /&gt;,ShippingDate&lt;BR /&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2011 01:58:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/One-calendar-for-different-date-fields/m-p/152512#M711537</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-01-05T01:58:27Z</dc:date>
    </item>
    <item>
      <title>SV:One calendar for different date fields</title>
      <link>https://community.qlik.com/t5/QlikView/One-calendar-for-different-date-fields/m-p/152513#M711538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all for helping me out!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jan 2011 15:45:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/One-calendar-for-different-date-fields/m-p/152513#M711538</guid>
      <dc:creator />
      <dc:date>2011-01-12T15:45:32Z</dc:date>
    </item>
  </channel>
</rss>

