<?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 Current Week Ending Date vs. Prior Year Week Ending Date in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Current-Week-Ending-Date-vs-Prior-Year-Week-Ending-Date/m-p/1359846#M30481</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to show current weekending sales in a straight table column and the prior year weekending date sales in another column.&amp;nbsp; The expression for the current year is straight forward (i.e. Sum(Sales) ).&amp;nbsp; However, I am having trouble getting the prior year weekending date sales.&amp;nbsp; I tried the following expressions to not success.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Sum({$&amp;lt;Year={$(=Max(Year)-1) &amp;gt;} Sales)&lt;/LI&gt;&lt;LI&gt;Aggr(Sum({$&amp;lt;Year={$(=Max(Year)-1)}&amp;gt;} Sales ),WeekEndDate)&lt;/LI&gt;&lt;LI&gt;Sum({$&amp;lt;WeekEndDate={$(=Date(Num(WeekEndDate))-364)} Sales )&lt;/LI&gt;&lt;LI&gt;Sum({$&amp;lt;WeekEndDate={'WeekEndDatePY'} Sales )&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is the sample data set to compute the Prior Year Week End Date.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I researched the forum extensively before posting this issue but, could not find a posting pertaining to my question.&amp;nbsp; A few were close to my question but, could not get it to work.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for any assistance.&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="150"&gt;&lt;TBODY&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Apr 2017 02:05:29 GMT</pubDate>
    <dc:creator>asmithids</dc:creator>
    <dc:date>2017-04-07T02:05:29Z</dc:date>
    <item>
      <title>Current Week Ending Date vs. Prior Year Week Ending Date</title>
      <link>https://community.qlik.com/t5/App-Development/Current-Week-Ending-Date-vs-Prior-Year-Week-Ending-Date/m-p/1359846#M30481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to show current weekending sales in a straight table column and the prior year weekending date sales in another column.&amp;nbsp; The expression for the current year is straight forward (i.e. Sum(Sales) ).&amp;nbsp; However, I am having trouble getting the prior year weekending date sales.&amp;nbsp; I tried the following expressions to not success.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Sum({$&amp;lt;Year={$(=Max(Year)-1) &amp;gt;} Sales)&lt;/LI&gt;&lt;LI&gt;Aggr(Sum({$&amp;lt;Year={$(=Max(Year)-1)}&amp;gt;} Sales ),WeekEndDate)&lt;/LI&gt;&lt;LI&gt;Sum({$&amp;lt;WeekEndDate={$(=Date(Num(WeekEndDate))-364)} Sales )&lt;/LI&gt;&lt;LI&gt;Sum({$&amp;lt;WeekEndDate={'WeekEndDatePY'} Sales )&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is the sample data set to compute the Prior Year Week End Date.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I researched the forum extensively before posting this issue but, could not find a posting pertaining to my question.&amp;nbsp; A few were close to my question but, could not get it to work.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for any assistance.&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="150"&gt;&lt;TBODY&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Apr 2017 02:05:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Current-Week-Ending-Date-vs-Prior-Year-Week-Ending-Date/m-p/1359846#M30481</guid>
      <dc:creator>asmithids</dc:creator>
      <dc:date>2017-04-07T02:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: Current Week Ending Date vs. Prior Year Week Ending Date</title>
      <link>https://community.qlik.com/t5/App-Development/Current-Week-Ending-Date-vs-Prior-Year-Week-Ending-Date/m-p/1359847#M30482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alec,&lt;/P&gt;&lt;P&gt;Try the following expresion:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Year={$(=Max(Year)-1)}&amp;gt;} TOTAL Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume you have no dimensions or only Year as dimension...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;H&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Apr 2017 06:16:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Current-Week-Ending-Date-vs-Prior-Year-Week-Ending-Date/m-p/1359847#M30482</guid>
      <dc:creator>hector_munoz</dc:creator>
      <dc:date>2017-04-07T06:16:34Z</dc:date>
    </item>
  </channel>
</rss>

