<?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: Latest 5 weeks selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Latest-5-weeks-selection/m-p/1060640#M355081</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the below attachment. But the date range which you want must be last 3 weeks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Jan 2016 07:36:25 GMT</pubDate>
    <dc:creator>tamilarasu</dc:creator>
    <dc:date>2016-01-11T07:36:25Z</dc:date>
    <item>
      <title>Latest 5 weeks selection</title>
      <link>https://community.qlik.com/t5/QlikView/Latest-5-weeks-selection/m-p/1060637#M355078</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 using Calendar from my DB, not generating from QV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the attached sample QVW, here i have created a button to select latest 5 week selection. However i cannot able to write current string. Which field i need to use for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me on this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2016 07:05:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Latest-5-weeks-selection/m-p/1060637#M355078</guid>
      <dc:creator>raju_salmon</dc:creator>
      <dc:date>2016-01-11T07:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: Latest 5 weeks selection</title>
      <link>https://community.qlik.com/t5/QlikView/Latest-5-weeks-selection/m-p/1060638#M355079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PFA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2016 07:17:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Latest-5-weeks-selection/m-p/1060638#M355079</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2016-01-11T07:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: Latest 5 weeks selection</title>
      <link>https://community.qlik.com/t5/QlikView/Latest-5-weeks-selection/m-p/1060639#M355080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Tresco.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on your string, it is selecting 03 DEC 2015 to 31 DEC 2015 (Latest 5 weeks in 2015).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can i get latest 5 from max date?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;19 DEC 2015 to 09 Jan 2016.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2016 07:26:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Latest-5-weeks-selection/m-p/1060639#M355080</guid>
      <dc:creator>raju_salmon</dc:creator>
      <dc:date>2016-01-11T07:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Latest 5 weeks selection</title>
      <link>https://community.qlik.com/t5/QlikView/Latest-5-weeks-selection/m-p/1060640#M355081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the below attachment. But the date range which you want must be last 3 weeks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2016 07:36:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Latest-5-weeks-selection/m-p/1060640#M355081</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-01-11T07:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: Latest 5 weeks selection</title>
      <link>https://community.qlik.com/t5/QlikView/Latest-5-weeks-selection/m-p/1060641#M355082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you explain the logic how you get&amp;nbsp; 19 DEC 2015 to 09 Jan 2016 ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2016 07:36:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Latest-5-weeks-selection/m-p/1060641#M355082</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2016-01-11T07:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: Latest 5 weeks selection</title>
      <link>https://community.qlik.com/t5/QlikView/Latest-5-weeks-selection/m-p/1060642#M355083</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 data till yesterday in my app, so i need to see latest weeks. Thank you Tresesco.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2016 07:46:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Latest-5-weeks-selection/m-p/1060642#M355083</guid>
      <dc:creator>raju_salmon</dc:creator>
      <dc:date>2016-01-11T07:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Latest 5 weeks selection</title>
      <link>https://community.qlik.com/t5/QlikView/Latest-5-weeks-selection/m-p/1060643#M355084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;I just used below expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;='&amp;lt;=' &amp;amp; Date(WeekStart(Today())-2) &amp;amp; '&amp;gt;=' &amp;amp; Date((WeekStart(Today())-2)-21)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;If you got the solution, please close the thread.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2016 07:54:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Latest-5-weeks-selection/m-p/1060643#M355084</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-01-11T07:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: Latest 5 weeks selection</title>
      <link>https://community.qlik.com/t5/QlikView/Latest-5-weeks-selection/m-p/1060644#M355085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nagaraj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can we use this on Max(DATE) field instead of today?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because i may have data till last month, then i need to get from that MAX(DATE) to latest 5 weeks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my App, i have dates till dec 2016, however when i left join this to my main table, the latest date is Jan5th2016.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for not providing this info in mail question. Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried with below for last 13 weeks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='&amp;lt;=' &amp;amp; Date(WeekEnd(MAX(DATE))-1) &amp;amp; '&amp;gt;=' &amp;amp; Date(WeekEnd(MAX(DATE))-78)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and it is working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is, as we are calculating number 78 or 21, will it get create any problem if max(Date) changes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can we apply the logic on CAL_WEEK_NUM field, so that there will be no problem in future?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2016 08:02:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Latest-5-weeks-selection/m-p/1060644#M355085</guid>
      <dc:creator>raju_salmon</dc:creator>
      <dc:date>2016-01-11T08:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: Latest 5 weeks selection</title>
      <link>https://community.qlik.com/t5/QlikView/Latest-5-weeks-selection/m-p/1060645#M355086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post your exact output against your attachment.? It would be helpful for me to provide the solution easily. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/plain.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2016 08:08:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Latest-5-weeks-selection/m-p/1060645#M355086</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-01-11T08:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: Latest 5 weeks selection</title>
      <link>https://community.qlik.com/t5/QlikView/Latest-5-weeks-selection/m-p/1060646#M355087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well. I really don't understand your logic. Can you explain me the logic with some example.? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2016 08:18:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Latest-5-weeks-selection/m-p/1060646#M355087</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-01-11T08:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Latest 5 weeks selection</title>
      <link>https://community.qlik.com/t5/QlikView/Latest-5-weeks-selection/m-p/1060647#M355088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for the confusion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the attached QVW and my string to select last 13 weeks based on MAX(DATE).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is working, however i have question if MAX(DATE) changes, will it work if i use (no.of days if i deduct? -78 days?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because i need to calculate for last 13months as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2016 08:22:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Latest-5-weeks-selection/m-p/1060647#M355088</guid>
      <dc:creator>raju_salmon</dc:creator>
      <dc:date>2016-01-11T08:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: Latest 5 weeks selection</title>
      <link>https://community.qlik.com/t5/QlikView/Latest-5-weeks-selection/m-p/1060648#M355089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could rather use Week Shift paramter like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='&amp;lt;=' &amp;amp; Date(WeekEnd(MAX(DATE))-1) &amp;amp; '&amp;gt;=' &amp;amp; WeekEnd(MAX(DATE),&lt;STRONG&gt;-13)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2016 08:30:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Latest-5-weeks-selection/m-p/1060648#M355089</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2016-01-11T08:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: Latest 5 weeks selection</title>
      <link>https://community.qlik.com/t5/QlikView/Latest-5-weeks-selection/m-p/1060649#M355090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raju Salmon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess the above expression works. You can check by modifying date in your initial load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Weekend will return the last Sunday date. So I just use -1 as week offset to find the last Saturday. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2016 08:50:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Latest-5-weeks-selection/m-p/1060649#M355090</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-01-11T08:50:52Z</dc:date>
    </item>
  </channel>
</rss>

