<?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 Years same week day in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Last-Years-same-week-day/m-p/1438163#M798637</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure how you got 2016 numbers? I don't see 12/04/2016... but you have 35 for that date? But if the data is correct, this should work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Pick(islandperiod,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;trn_date = {"$(=AddMonths(Max(trn_date), -12))"}&amp;gt;}qty),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;trn_date = {"&amp;gt;=$(=MonthStart(Max(trn_date), -12)) &amp;lt;=$(=AddMonths(Max(trn_date), -12))"}&amp;gt;} qty),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;trn_date = {"&amp;gt;=$(=YearStart(Max(trn_date), -1)) &amp;lt;=$(=AddMonths(Max(trn_date), -12))"}&amp;gt;} qty)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Dec 2017 14:54:15 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-12-06T14:54:15Z</dc:date>
    <item>
      <title>Last Years same week day</title>
      <link>https://community.qlik.com/t5/QlikView/Last-Years-same-week-day/m-p/1438159#M798633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello again everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a pivot table with dimension the stores and expressions the daily quantity,month to date quanity, and year to date quantity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The user selects the date from a listbox DD/MM/YYYY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want to achieve is to split the store's row into 3 subrows which the first will show current quantity ,the 2nd the perviou's year's same day quantity and the 3rd the comparisson of 1st and 2nd row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to calculate last years quantity but the result is the same as the current year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The set analysis I use for the previous year is : &lt;STRONG&gt;Sum({$&amp;lt; trn_date={"=$(=Date(AddYears(max(trn_date),-1)))"}&amp;gt;} qty)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;trn_date is the date field from which the user selects one date ,qty is the quantity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the mistake I make? Please suggest a solution&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Καταγραφή.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/185935_Καταγραφή.PNG" style="height: auto;" /&gt;&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-Years-same-week-day/m-p/1438159#M798633</guid>
      <dc:creator>kostiskampouris</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Last Years same week day</title>
      <link>https://community.qlik.com/t5/QlikView/Last-Years-same-week-day/m-p/1438160#M798634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="Καταγραφή.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/185934_Καταγραφή.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2017 11:01:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-Years-same-week-day/m-p/1438160#M798634</guid>
      <dc:creator>kostiskampouris</dc:creator>
      <dc:date>2017-12-06T11:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: Last Years same week day</title>
      <link>https://community.qlik.com/t5/QlikView/Last-Years-same-week-day/m-p/1438161#M798635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample to look at this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2017 12:08:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-Years-same-week-day/m-p/1438161#M798635</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-06T12:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: Last Years same week day</title>
      <link>https://community.qlik.com/t5/QlikView/Last-Years-same-week-day/m-p/1438162#M798636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a sample, and this is what i want to achieve is in the excel file.&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, 06 Dec 2017 14:43:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-Years-same-week-day/m-p/1438162#M798636</guid>
      <dc:creator>kostiskampouris</dc:creator>
      <dc:date>2017-12-06T14:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: Last Years same week day</title>
      <link>https://community.qlik.com/t5/QlikView/Last-Years-same-week-day/m-p/1438163#M798637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure how you got 2016 numbers? I don't see 12/04/2016... but you have 35 for that date? But if the data is correct, this should work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Pick(islandperiod,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;trn_date = {"$(=AddMonths(Max(trn_date), -12))"}&amp;gt;}qty),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;trn_date = {"&amp;gt;=$(=MonthStart(Max(trn_date), -12)) &amp;lt;=$(=AddMonths(Max(trn_date), -12))"}&amp;gt;} qty),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;trn_date = {"&amp;gt;=$(=YearStart(Max(trn_date), -1)) &amp;lt;=$(=AddMonths(Max(trn_date), -12))"}&amp;gt;} qty)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2017 14:54:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-Years-same-week-day/m-p/1438163#M798637</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-06T14:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: Last Years same week day</title>
      <link>https://community.qlik.com/t5/QlikView/Last-Years-same-week-day/m-p/1438164#M798638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works fine for the month to date and year to date but for the exact same day last year returns 0 no matter which is the selected day.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2017 15:19:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-Years-same-week-day/m-p/1438164#M798638</guid>
      <dc:creator>kostiskampouris</dc:creator>
      <dc:date>2017-12-06T15:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: Last Years same week day</title>
      <link>https://community.qlik.com/t5/QlikView/Last-Years-same-week-day/m-p/1438165#M798639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Pick(islandperiod,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;trn_date = {"$(=TimeStamp(AddMonths(Max(trn_date), -12), 'YYYY-MM-DD hh:mm:ss.fff'))"}&amp;gt;} qty),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;trn_date = {"&amp;gt;=$(=MonthStart(Max(trn_date), -12)) &amp;lt;=$(=AddMonths(Max(trn_date), -12))"}&amp;gt;} qty),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;trn_date = {"&amp;gt;=$(=YearStart(Max(trn_date), -1)) &amp;lt;=$(=AddMonths(Max(trn_date), -12))"}&amp;gt;} qty)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2017 15:31:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-Years-same-week-day/m-p/1438165#M798639</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-06T15:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: Last Years same week day</title>
      <link>https://community.qlik.com/t5/QlikView/Last-Years-same-week-day/m-p/1438166#M798640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect!Thank you so much &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2017 15:41:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-Years-same-week-day/m-p/1438166#M798640</guid>
      <dc:creator>kostiskampouris</dc:creator>
      <dc:date>2017-12-06T15:41:44Z</dc:date>
    </item>
  </channel>
</rss>

