<?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: Calculation of 8 Weeks ?? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculation-of-8-Weeks/m-p/384186#M143465</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check attached file &lt;/P&gt;&lt;P&gt;Hope it helps you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Siva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Sep 2012 11:28:49 GMT</pubDate>
    <dc:creator>sivarajs</dc:creator>
    <dc:date>2012-09-05T11:28:49Z</dc:date>
    <item>
      <title>Calculation of 8 Weeks ??</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-of-8-Weeks/m-p/384183#M143462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have history data in WEEK field............I need to have last 8 weeks from it. I have another table which consists of latest week.....I need to pick this latest week and need to have the last 8 weeks from history table data................How can write an expression in QlikView to obtain the same...........&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>Wed, 05 Sep 2012 07:53:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-of-8-Weeks/m-p/384183#M143462</guid>
      <dc:creator />
      <dc:date>2012-09-05T07:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of 8 Weeks ??</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-of-8-Weeks/m-p/384184#M143463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Hi Gaurav,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Can you explain me the content in week field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Tom&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2012 08:37:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-of-8-Weeks/m-p/384184#M143463</guid>
      <dc:creator>thomas_skariah</dc:creator>
      <dc:date>2012-09-05T08:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of 8 Weeks ??</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-of-8-Weeks/m-p/384185#M143464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx for Reply...........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The History table is a fact table which contain a field known as WEEK.&lt;/P&gt;&lt;P&gt;Week has contents like this:&lt;/P&gt;&lt;P&gt;WEEK&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;P&gt;4.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;22&lt;/P&gt;&lt;P&gt;22&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again A table which contains the latest Week&lt;/P&gt;&lt;P&gt;the fields are&lt;/P&gt;&lt;P&gt;Refresh Date, Day , Week, Month&lt;/P&gt;&lt;P&gt;9/2/12, 3,22,8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This table contains the latest week&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I need to pick the last 8 weeks from lastest week..........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for instance from 22, it will be from 15 to 22 (15,16,17,18,19,20,21,22)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when it will be 23, then 16 to 23.............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I have a expression for it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2012 10:20:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-of-8-Weeks/m-p/384185#M143464</guid>
      <dc:creator />
      <dc:date>2012-09-05T10:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of 8 Weeks ??</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-of-8-Weeks/m-p/384186#M143465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check attached file &lt;/P&gt;&lt;P&gt;Hope it helps you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Siva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2012 11:28:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-of-8-Weeks/m-p/384186#M143465</guid>
      <dc:creator>sivarajs</dc:creator>
      <dc:date>2012-09-05T11:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of 8 Weeks ??</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-of-8-Weeks/m-p/384187#M143466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanx Siva for ur Answer..........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression is working fine.............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but there is little bit change since I need to pic the latest date from one of the dimension table and match it to the history table and then obtain the last 8 weeks........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here we are picking with the jhelp of max function..............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How could we achieve by matching the latest date from dimension table and obtaining the last 8 weeks from history table.............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank u !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2012 12:21:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-of-8-Weeks/m-p/384187#M143466</guid>
      <dc:creator />
      <dc:date>2012-09-05T12:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of 8 Weeks ??</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-of-8-Weeks/m-p/384188#M143467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have just added the date into the expression and converted into week&lt;/P&gt;&lt;P&gt;Check the file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2012 04:52:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-of-8-Weeks/m-p/384188#M143467</guid>
      <dc:creator>sivarajs</dc:creator>
      <dc:date>2012-09-06T04:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of 8 Weeks ??</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-of-8-Weeks/m-p/384189#M143468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Siva&lt;/P&gt;&lt;P&gt;Thanx for ur answers.............These answers are quite useful&lt;/P&gt;&lt;P&gt;but not fulfilling my need totally.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am attaching the sample data(Excel sheet).&lt;BR /&gt;plz go through that and then u would clarify my doubt more easily.&lt;/P&gt;&lt;P&gt;The sample data contains 2 sheets:&lt;BR /&gt;1)Latest Date Table&lt;BR /&gt;2)Date Dimension Table&lt;/P&gt;&lt;P&gt;I need to MATCH the latest date from latest date table and then find the last 8 weeks&lt;BR /&gt;from date Dimension table.Plz help me this.&lt;/P&gt;&lt;P&gt;Waiting for ur reply. Thank u&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2012 07:29:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-of-8-Weeks/m-p/384189#M143468</guid>
      <dc:creator />
      <dc:date>2012-09-06T07:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of 8 Weeks ??</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-of-8-Weeks/m-p/384190#M143469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Left join LATEST_DATE_TABLE with DATE_DIMENSION_TABLE will solve your issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load * from&amp;nbsp; DATE_DIMENSION_TABLE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join&lt;/P&gt;&lt;P&gt;load * from LATEST_DATE_TABLE;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2012 07:47:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-of-8-Weeks/m-p/384190#M143469</guid>
      <dc:creator>sivarajs</dc:creator>
      <dc:date>2012-09-06T07:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of 8 Weeks ??</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-of-8-Weeks/m-p/384191#M143470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi Siva,&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;By doing the left join for the two table,&lt;/DIV&gt;&lt;DIV&gt;I got this type of table:&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;(plz see below)&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;How would it will solve my proble?&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 528px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;BR /&gt;&lt;TD height="20" width="64"&gt;DATE_ID&lt;/TD&gt;&lt;BR /&gt;&lt;TD width="80"&gt;Latest_Date&lt;/TD&gt;&lt;BR /&gt;&lt;TD width="64"&gt;Day&lt;/TD&gt;&lt;BR /&gt;&lt;TD width="64"&gt;Week&lt;/TD&gt;&lt;BR /&gt;&lt;TD width="64"&gt;DATE&lt;/TD&gt;&lt;BR /&gt;&lt;TD width="64"&gt;DAY&lt;/TD&gt;&lt;BR /&gt;&lt;TD width="64"&gt;WEEK&lt;/TD&gt;&lt;BR /&gt;&lt;TD width="64"&gt;Val&lt;/TD&gt;&lt;BR /&gt; &lt;/TR&gt;&lt;BR /&gt; &lt;TR&gt;&lt;BR /&gt;&lt;TD align="right" height="20"&gt;24&lt;/TD&gt;&lt;BR /&gt;&lt;TD class="xl65"&gt;22/6/2012&lt;/TD&gt;&lt;BR /&gt;&lt;TD align="right"&gt;5&lt;/TD&gt;&lt;BR /&gt;&lt;TD align="right"&gt;10&lt;/TD&gt;&lt;BR /&gt;&lt;TD class="xl65"&gt;22/6/2012&lt;/TD&gt;&lt;BR /&gt;&lt;TD align="right"&gt;5&lt;/TD&gt;&lt;BR /&gt;&lt;TD align="right"&gt;10&lt;/TD&gt;&lt;BR /&gt;&lt;TD align="right"&gt;&lt;DIV&gt;78&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/TD&gt;&lt;BR /&gt; &lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Can u Plz elaborate it? Thank u...........&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2012 08:59:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-of-8-Weeks/m-p/384191#M143470</guid>
      <dc:creator />
      <dc:date>2012-09-06T08:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of 8 Weeks ??</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-of-8-Weeks/m-p/384192#M143471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATE_ID is common between both the table &lt;/P&gt;&lt;P&gt;Alias Latest_date as DATE so that it will combine along with DATE&lt;/P&gt;&lt;P&gt;From DATE only you are going get recent date right?&lt;/P&gt;&lt;P&gt;Since max is used in expression it will fetch the recent one&lt;/P&gt;&lt;P&gt;Hope its clear&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2012 09:52:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-of-8-Weeks/m-p/384192#M143471</guid>
      <dc:creator>sivarajs</dc:creator>
      <dc:date>2012-09-06T09:52:47Z</dc:date>
    </item>
  </channel>
</rss>

