<?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: Last WTD in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Last-WTD/m-p/1096733#M931839</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share sample data to recreate the prob, I could see expressions are exactly matching with the only difference is in calculating previous week via Week_UP-1.&lt;/P&gt;&lt;P&gt;It seems If condition needs to be verified but not sure, can understand better from sample data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 05 Mar 2016 12:38:54 GMT</pubDate>
    <dc:creator>Digvijay_Singh</dc:creator>
    <dc:date>2016-03-05T12:38:54Z</dc:date>
    <item>
      <title>Last WTD</title>
      <link>https://community.qlik.com/t5/QlikView/Last-WTD/m-p/1096732#M931838</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 have two calendars upload calendar and forecast calendar,&lt;/P&gt;&lt;P&gt;each upload week(&lt;SPAN style="font-size: 13.3333px;"&gt;Week_UP&lt;/SPAN&gt;) has 12 forecast week(week)&lt;/P&gt;&lt;P&gt;Each Id has lockperiods ,i want to calculate the&amp;nbsp; order from the maximum upload week which has 12 months based on lockperiod.&lt;/P&gt;&lt;P&gt;EX:if upload week is 1 and the id has lockperiod 4 i want to see the orders for week(forecast week)=5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using this formula&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;Year_UP={$(=Max(Year_UP))},MonthID_UP= {$(=Max(MonthID_UP))},Week_UP= {$(=Max(Week_UP))},Year_UP=,Week_UP=&amp;gt;} Aggr(If(Only({1}Week) = Max(TOTAL &amp;lt;ID&amp;gt;&amp;nbsp; Week_UP ) + Only(TOTAL &amp;lt;ID&amp;gt;&amp;nbsp; LockPeriod)&amp;nbsp; ,&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Year_UP={$(=Max(Year_UP))},MonthID_UP= {$(=Max(MonthID_UP))},Week_UP= {$(=Max(Week_UP))},Year_UP=,Week_UP=&amp;gt;}Orders)), ID, Week ))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i want to calculate the orders for previous week&lt;/P&gt;&lt;P&gt;i tried this its not working&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;Year_UP={$(=Max(Year_UP))},MonthID_UP= {$(=Max(MonthID_UP))},Week_UP= {$(=Max(Week_UP)-1)},Year_UP=,Week_UP=&amp;gt;} Aggr(If(Only({1}Week) = Max(TOTAL &amp;lt;&lt;SPAN style="font-size: 13.3333px;"&gt;ID&lt;/SPAN&gt;&amp;gt;&amp;nbsp; Week_UP-1 ) + Only(TOTAL &amp;lt;&lt;SPAN style="font-size: 13.3333px;"&gt;ID&lt;/SPAN&gt;&amp;gt;&amp;nbsp; LockPeriod)&amp;nbsp; ,&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Year_UP={$(=Max(Year_UP))},MonthID_UP= {$(=Max(MonthID_UP))},Week_UP= {$(=Max(Week_UP)-1)},Year_UP=,Week_UP=&amp;gt;}Orders)), &lt;SPAN style="font-size: 13.3333px;"&gt;ID&lt;/SPAN&gt;, Week ))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-WTD/m-p/1096732#M931838</guid>
      <dc:creator>ajsjoshua</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Last WTD</title>
      <link>https://community.qlik.com/t5/QlikView/Last-WTD/m-p/1096733#M931839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share sample data to recreate the prob, I could see expressions are exactly matching with the only difference is in calculating previous week via Week_UP-1.&lt;/P&gt;&lt;P&gt;It seems If condition needs to be verified but not sure, can understand better from sample data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Mar 2016 12:38:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-WTD/m-p/1096733#M931839</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2016-03-05T12:38:54Z</dc:date>
    </item>
  </channel>
</rss>

