<?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 week to Date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Last-week-to-Date/m-p/1015699#M931383</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Kaushik &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;awesome..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am getting correct values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to write this expression into&amp;nbsp; YTD and MTD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Mar 2016 07:36:10 GMT</pubDate>
    <dc:creator>stephenedberkg</dc:creator>
    <dc:date>2016-03-07T07:36:10Z</dc:date>
    <item>
      <title>Last week to Date</title>
      <link>https://community.qlik.com/t5/QlikView/Last-week-to-Date/m-p/1015693#M931377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/171708" target="_blank"&gt;sunindia&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;Each upload week has 12 forcast weeks.&lt;/P&gt;&lt;P&gt;each id has lock periods&lt;/P&gt;&lt;P&gt;in dashboad im using only Upload calendar.&lt;/P&gt;&lt;P&gt;If i select Upload week 1&amp;nbsp; in the calendar which has 12 forcast week , &lt;/P&gt;&lt;P&gt;and it has two possible ids 1 and 2 which has different lock period.&lt;/P&gt;&lt;P&gt;if id 1 has selected &lt;/P&gt;&lt;P&gt;now i want to calculate &lt;/P&gt;&lt;P&gt; forecast week 1 + id l has lock period 1 = 2&lt;/P&gt;&lt;P&gt;so i want to display sales for the forecast week&amp;nbsp; 2 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;Year_UP={$(=Max(Year_UP))},Week_UP= {$(=Max(Week_UP))},Year_UP=,Week_UP=&amp;gt;} Aggr(If(Only({1}Week_F) = Max(TOTAL &amp;lt;ID&amp;gt; Week_UP ) + Only(TOTAL &amp;lt;ID&amp;gt; [lock period])&amp;nbsp; ,&lt;/P&gt;&lt;P&gt; Sum({&amp;lt;Year_UP={$(=Max(Year_UP))},Week_UP= {$(=Max(Week_UP))},Year_UP=,Week_UP=&amp;gt;}sales)), ID, Week_F ))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is Current week expression its working correctly but last week expression is not working correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFA !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Stephen G&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-week-to-Date/m-p/1015693#M931377</guid>
      <dc:creator>stephenedberkg</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Last week to Date</title>
      <link>https://community.qlik.com/t5/QlikView/Last-week-to-Date/m-p/1015694#M931378</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;What is the output you are looking for, because I saw from your data that for the selection you have made, the current week va&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;lue is 21, which is right as per you and previous value is 10, which is also right, and you are getting both value correctly&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Kaushik Solanki&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 06:29:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-week-to-Date/m-p/1015694#M931378</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2016-03-07T06:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: Last week to Date</title>
      <link>https://community.qlik.com/t5/QlikView/Last-week-to-Date/m-p/1015695#M931379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-size: 11.7px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-size: 11.7px;"&gt;Thanks for your reply&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-size: 11.7px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-size: 11.7px;"&gt;previous week in the sense it should take upload week&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-size: 11.7px;"&gt;if i select the upload week 2 the answer is 4 for previous week the answer is should be 96.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-size: 11.7px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-size: 11.7px;"&gt;this is my expected output &lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 06:39:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-week-to-Date/m-p/1015695#M931379</guid>
      <dc:creator>stephenedberkg</dc:creator>
      <dc:date>2016-03-07T06:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Last week to Date</title>
      <link>https://community.qlik.com/t5/QlikView/Last-week-to-Date/m-p/1015696#M931380</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;Can you help me to understand how you got value 96.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 06:45:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-week-to-Date/m-p/1015696#M931380</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2016-03-07T06:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: Last week to Date</title>
      <link>https://community.qlik.com/t5/QlikView/Last-week-to-Date/m-p/1015697#M931381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;Kaushik&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry itseems there is some mistake in sample&lt;/P&gt;&lt;P&gt;please find this sample&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-size: 11.7px; font-family: inherit;"&gt;&lt;STRONG&gt;if i select the upload week 2 the answer is 5 for previous week the answer is should be 26 !.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 06:55:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-week-to-Date/m-p/1015697#M931381</guid>
      <dc:creator>stephenedberkg</dc:creator>
      <dc:date>2016-03-07T06:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: Last week to Date</title>
      <link>https://community.qlik.com/t5/QlikView/Last-week-to-Date/m-p/1015698#M931382</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;Use this expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;Year_UP={$(=Max(Year_UP))},Week_UP= {$(=Max(Week_UP)-1)}&amp;gt;} Aggr(If(Only({1}Week_F) = (Max({&amp;lt;Year_UP={$(=Max(Year_UP))},Week_UP= {$(=Max(Week_UP)-1)}&amp;gt;}TOTAL &amp;lt;ID&amp;gt; Week_UP)) + Only({&amp;lt;Year_UP={$(=Max(Year_UP))},Week_UP= {$(=Max(Week_UP)-1)}&amp;gt;}TOTAL &amp;lt;ID&amp;gt; [lock period])&amp;nbsp; ,&lt;/P&gt;&lt;P&gt; Sum({&amp;lt;Year_UP={$(=Max(Year_UP))},Week_UP= {$(=Max(Week_UP)-1)}&amp;gt;}sales)), ID, Week_F ))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 07:18:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-week-to-Date/m-p/1015698#M931382</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2016-03-07T07:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: Last week to Date</title>
      <link>https://community.qlik.com/t5/QlikView/Last-week-to-Date/m-p/1015699#M931383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Kaushik &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;awesome..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am getting correct values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to write this expression into&amp;nbsp; YTD and MTD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 07:36:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-week-to-Date/m-p/1015699#M931383</guid>
      <dc:creator>stephenedberkg</dc:creator>
      <dc:date>2016-03-07T07:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: Last week to Date</title>
      <link>https://community.qlik.com/t5/QlikView/Last-week-to-Date/m-p/1015700#M931384</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;You can change the set analysis to take MTD ot YTD values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 07:40:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-week-to-Date/m-p/1015700#M931384</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2016-03-07T07:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: Last week to Date</title>
      <link>https://community.qlik.com/t5/QlikView/Last-week-to-Date/m-p/1015701#M931385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=Sum({&amp;lt;Year_UP={$(=Max(Year_UP))},MonthID_UP= {$(=Max(MonthID_UP))}&amp;gt;} &lt;/P&gt;&lt;P&gt;Aggr(If(Only({1}MonthIDS_F) = (Max({&amp;lt;Year_UP={$(=Max(Year_UP))},MonthID_UP= {$(=Max(MonthID_UP))}&amp;gt;}TOTAL &amp;lt;ID&amp;gt; MonthID_UP))&lt;/P&gt;&lt;P&gt; + Only({&amp;lt;Year_UP={$(=Max(Year_UP))},MonthID_UP= {$(=Max(MonthID_UP))}&amp;gt;}TOTAL &amp;lt;ID&amp;gt; [lock period])&amp;nbsp; ,&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Year_UP={$(=Max(Year_UP))},Week_UP= {$(=Max(Week_UP))}&amp;gt;}sales)), ID, MonthIDS_F ))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried this for MTD but its not working correct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 08:07:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-week-to-Date/m-p/1015701#M931385</guid>
      <dc:creator>stephenedberkg</dc:creator>
      <dc:date>2016-03-07T08:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: Last week to Date</title>
      <link>https://community.qlik.com/t5/QlikView/Last-week-to-Date/m-p/1015702#M931386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For YTD you can try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum({&amp;lt;Year_UP={$(=Max(Year_UP))},Week_UP= {'&amp;lt;=$(=Max(Week_UP))'}&amp;gt;} Aggr(If(Only({1}Week_F) = (Max({&amp;lt;Year_UP={$(=Max(Year_UP))},Week_UP= {'&amp;lt;=$(=Max(Week_UP))'}&amp;gt;}TOTAL &amp;lt;ID&amp;gt; Week_UP)) + Only({&amp;lt;Year_UP={$(=Max(Year_UP))},Week_UP= {'&amp;lt;=$(=Max(Week_UP))'}&amp;gt;}TOTAL &amp;lt;ID&amp;gt; [lock period])&amp;nbsp; ,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;Year_UP={$(=Max(Year_UP))},Week_UP= {'&amp;lt;=$(=Max(Week_UP))'}&amp;gt;}sales)), ID, Week_F))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 10:30:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-week-to-Date/m-p/1015702#M931386</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-07T10:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: Last week to Date</title>
      <link>https://community.qlik.com/t5/QlikView/Last-week-to-Date/m-p/1015703#M931387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For MTD (assuming a week will never overlap between months)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum({&amp;lt;Year_UP={$(=Max(Year_UP))},Week_UP= {'&amp;gt;=$(=Min({&amp;lt;Month_UP = P(Month_UP), Week_UP&amp;gt;}Week_UP))&amp;lt;=$(=Max(Week_UP))'}&amp;gt;} Aggr(If(Only({1}Week_F) = (Max({&amp;lt;Year_UP={$(=Max(Year_UP))},Week_UP= {'&amp;gt;=$(=Min({&amp;lt;Month_UP = P(Month_UP), Week_UP&amp;gt;}Week_UP))&amp;lt;=$(=Max(Week_UP))'}&amp;gt;}TOTAL &amp;lt;ID&amp;gt; Week_UP)) + Only({&amp;lt;Year_UP={$(=Max(Year_UP))},Week_UP= {'&amp;gt;=$(=Min({&amp;lt;Month_UP = P(Month_UP), Week_UP&amp;gt;}Week_UP))&amp;lt;=$(=Max(Week_UP))'}&amp;gt;}TOTAL &amp;lt;ID&amp;gt; [lock period])&amp;nbsp; ,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;Year_UP={$(=Max(Year_UP))},Week_UP= {'&amp;gt;=$(=Min({&amp;lt;Month_UP = P(Month_UP), Week_UP&amp;gt;}Week_UP))&amp;lt;=$(=Max(Week_UP))'}&amp;gt;}sales)), ID, Week_F))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/117187_Capture.PNG" style="height: 208px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 10:39:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-week-to-Date/m-p/1015703#M931387</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-07T10:39:27Z</dc:date>
    </item>
  </channel>
</rss>

