<?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 Previous week last year in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Previous-week-last-year/m-p/1546637#M439908</link>
    <description>Hi, Within the master calendar we have created the following expressions: LET vCurWeek = div(WeekEnd(vToday)-YearStart(vToday,0,10),7); LET vPrevWeek = vCurWeek - 1; LET vCurWeekPrevFinYr = div(WeekEnd(AddYears(vToday,-1))-YearStart(AddYears(vToday,-1),0,10),7); vCurWeek &amp;amp; vPrevWeek works fine but the vCurWeekPrevFinYr is giving me the data from last year -1 week(current week start 11/2/19). Instead of giving me the week starting 12/2/18 is giving me data from week 5/2/18 Any ideas of how to fix this issue?</description>
    <pubDate>Wed, 20 Feb 2019 00:31:43 GMT</pubDate>
    <dc:creator>NewQlikUser</dc:creator>
    <dc:date>2019-02-20T00:31:43Z</dc:date>
    <item>
      <title>Previous week last year</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-week-last-year/m-p/1546637#M439908</link>
      <description>Hi, Within the master calendar we have created the following expressions: LET vCurWeek = div(WeekEnd(vToday)-YearStart(vToday,0,10),7); LET vPrevWeek = vCurWeek - 1; LET vCurWeekPrevFinYr = div(WeekEnd(AddYears(vToday,-1))-YearStart(AddYears(vToday,-1),0,10),7); vCurWeek &amp;amp; vPrevWeek works fine but the vCurWeekPrevFinYr is giving me the data from last year -1 week(current week start 11/2/19). Instead of giving me the week starting 12/2/18 is giving me data from week 5/2/18 Any ideas of how to fix this issue?</description>
      <pubDate>Wed, 20 Feb 2019 00:31:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-week-last-year/m-p/1546637#M439908</guid>
      <dc:creator>NewQlikUser</dc:creator>
      <dc:date>2019-02-20T00:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: Previous week last year</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-week-last-year/m-p/1546692#M439913</link>
      <description>&lt;P&gt;Please edit your question, it becomes so confusing and time consuming for all to read it and come up with solution. Put it properly,&lt;BR /&gt;LET vCurWeek=&lt;BR /&gt;LET vPrevWeek=&lt;BR /&gt;---&lt;BR /&gt;---&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 07:05:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-week-last-year/m-p/1546692#M439913</guid>
      <dc:creator>Shubham_Deshmukh</dc:creator>
      <dc:date>2019-02-20T07:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Previous week last year</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-week-last-year/m-p/1546755#M439921</link>
      <description>&lt;P&gt;Week starts on monday.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check the callender 12/2/2018&amp;nbsp; and 5/2/2018 are mondays. So it's giving correct answer as per your logic.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 09:09:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-week-last-year/m-p/1546755#M439921</guid>
      <dc:creator>pradosh_thakur</dc:creator>
      <dc:date>2019-02-20T09:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: Previous week last year</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-week-last-year/m-p/1546879#M439923</link>
      <description>Try this,&lt;BR /&gt;=date(WeekStart(Week(AddYears(today(),-1)-YearStart(today(),-1,4))),'DD-MM')&amp;amp;'-'&amp;amp;(year(today())-1)</description>
      <pubDate>Wed, 20 Feb 2019 12:30:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-week-last-year/m-p/1546879#M439923</guid>
      <dc:creator>Shubham_Deshmukh</dc:creator>
      <dc:date>2019-02-20T12:30:26Z</dc:date>
    </item>
  </channel>
</rss>

