<?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 Dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dates/m-p/231303#M83071</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thom,&lt;/P&gt;&lt;P&gt;generally speaking, if you want to compare "plan to actual", you need to find a way of keeping the same Date field and not two separate fields. I know, many times it's challenging and leads to synthetic keys or loops. However, there are techniques of dealing with that. Two most commonly used are "building link tables" or "concatenating all the data into one "Fact" table". Both techniques have been widely discussed in this forum. BOth techniques are also described in QlikView standard "Developer II" class.&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Feb 2010 19:39:39 GMT</pubDate>
    <dc:creator>Oleg_Troyansky</dc:creator>
    <dc:date>2010-02-04T19:39:39Z</dc:date>
    <item>
      <title>Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Dates/m-p/231301#M83069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have 2 tables one table contains a transaction date and the other contains a plan date. I also have a Date table which contains (actual date, Fiscal Year, Fiscal Period, Fiscal Week, and Week Ending date). I need to be able to look at my transaction date and plan date in one pivot table. The user needs the ablility to select a Fiscal Year, Fiscal Period or a Fiscal Week. How can I tie all these dates together?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ZTRPST:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;LOAD %ContractItemKey,&lt;BR /&gt; Status,&lt;BR /&gt; Date,&lt;BR /&gt; sum(Hours) as [Hrs Worked]&lt;BR /&gt;FROM &lt;D&gt; (qvd)&lt;BR /&gt; group by %ContractItemKey, Status, Date;&lt;/D&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Plan:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;LOAD autonumber([Profit Center] &amp;amp; '-' &amp;amp; [%MaterialGroup_Key]) as PlanKey,&lt;BR /&gt;// [Profit Center],&lt;BR /&gt;// %MaterialGroup_Key,&lt;BR /&gt; Date as [Plan Date],&lt;BR /&gt; Plan&lt;BR /&gt;FROM &lt;D&gt; (ansi, txt, delimiter is ',', embedded labels, msq);&lt;/D&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FiscalCalendar:&lt;BR /&gt;&lt;/STRONG&gt;LOAD FISPD,&lt;BR /&gt; FISYR,&lt;BR /&gt; [Billing Date] as Date,&lt;BR /&gt; WEDAT,&lt;BR /&gt; WKNO,&lt;BR /&gt; if([Billing Date] &amp;lt;= '$(vToday)' AND FISPD &amp;lt;= '$(vFisPd)' AND WKNO &amp;lt;= '$(vWkNo)', 1) AS YTDFlag,&lt;BR /&gt; if([Billing Date] &amp;lt;= '$(vToday)' AND FISPD = '$(vFisPd)', 1) AS MTDFlag,&lt;BR /&gt; if([Billing Date] &amp;lt;= '$(vPrevToday)' AND [Billing Date] &amp;gt;= '$(vRolling4)', 1) AS RTD4Flag,&lt;BR /&gt; if([Billing Date] &amp;lt;= '$(vToday)' AND [Billing Date] &amp;gt;= '$(vRolling3)', 1) AS RTD3Flag&lt;BR /&gt;FROM &lt;D&gt; (qvd)&lt;BR /&gt;where FISYR &amp;gt;= '$(vPrevYear)' and FISYR &amp;lt; '$(vYear)';&lt;/D&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2010 17:02:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dates/m-p/231301#M83069</guid>
      <dc:creator>tmumaw</dc:creator>
      <dc:date>2010-02-04T17:02:41Z</dc:date>
    </item>
    <item>
      <title>Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Dates/m-p/231302#M83070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Thom,&lt;/P&gt;&lt;P&gt;I would use a cyclic group containing some time related dimensions (month, year, quarter..) but above all, I recommend you to build a master calendar. Several threads in this forum discuss that, but you can take a look at &lt;A href="http://community.qlik.com/forums/p/22821/87243.aspx" title="How to make a calendar?"&gt;this&lt;/A&gt;. Depending on your data source schema, you may use more than one master calendar (i.e.: one for Sales, another for Accounts).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2010 18:01:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dates/m-p/231302#M83070</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-02-04T18:01:11Z</dc:date>
    </item>
    <item>
      <title>Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Dates/m-p/231303#M83071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thom,&lt;/P&gt;&lt;P&gt;generally speaking, if you want to compare "plan to actual", you need to find a way of keeping the same Date field and not two separate fields. I know, many times it's challenging and leads to synthetic keys or loops. However, there are techniques of dealing with that. Two most commonly used are "building link tables" or "concatenating all the data into one "Fact" table". Both techniques have been widely discussed in this forum. BOth techniques are also described in QlikView standard "Developer II" class.&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2010 19:39:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dates/m-p/231303#M83071</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2010-02-04T19:39:39Z</dc:date>
    </item>
  </channel>
</rss>

