<?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: How to calculate previous week value ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-calculate-previous-week-value/m-p/1395111#M423598</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not following as guessing you must have Week field, then try this?&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;SPAN lang="EN-IN" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Segoe UI', sans-serif; color: black;"&gt;=sum( {$&amp;lt;[Week Ending]= ,prevWeekEnding={"$(=Date([Week Ending]-7))"}&lt;STRONG style="color: #ff0000;"&gt;,&lt;/STRONG&gt; &lt;STRONG style="color: #ff0000;"&gt;Week = {'$(Max(Week) - 1)'&lt;/STRONG&gt;}&amp;gt;} ListUSD])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-IN" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Segoe UI', sans-serif; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Sep 2017 07:21:42 GMT</pubDate>
    <dc:creator>Anil_Babu_Samineni</dc:creator>
    <dc:date>2017-09-12T07:21:42Z</dc:date>
    <item>
      <title>How to calculate previous week value ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-previous-week-value/m-p/1395109#M423596</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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-IN" style="font-size: 10.0pt; font-family: 'Segoe UI','sans-serif'; color: black;"&gt;How to calculate previous week value?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-IN" style="font-size: 10.0pt; font-family: 'Segoe UI','sans-serif'; color: black;"&gt;in data source I have [Week Ending] field where field is in&amp;nbsp; numeric date format and having last day of every week value&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-IN" style="font-size: 10.0pt; font-family: 'Segoe UI','sans-serif'; color: black;"&gt;I also created one field prevWeekEnding in my data model&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-IN" style="font-size: 10.0pt; font-family: 'Segoe UI','sans-serif'; color: black;"&gt;&lt;STRONG&gt;I am using following formula&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-IN" style="font-size: 10.0pt; font-family: 'Segoe UI','sans-serif'; color: black;"&gt;=sum( {$&amp;lt;[Week Ending]= ,prevWeekEnding={"$(=Date([Week Ending]-7))"}&amp;gt;} ListUSD])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt; &lt;SPAN lang="EN-IN" style="font-size: 10.0pt; font-family: 'Segoe UI','sans-serif'; color: black;"&gt;while I am using this formula , &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-IN" style="font-size: 10.0pt; font-family: 'Segoe UI','sans-serif'; color: black;"&gt;without any selection I am getting&amp;nbsp; result 0 and if I select any&amp;nbsp; date from [week Ending ] , I got the result of current date selection value.&lt;/SPAN&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 07:13:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-previous-week-value/m-p/1395109#M423596</guid>
      <dc:creator>dolly777</dc:creator>
      <dc:date>2017-09-12T07:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate previous week value ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-previous-week-value/m-p/1395110#M423597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi check,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/151325"&gt;Last Week's Data in Expression&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 07:21:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-previous-week-value/m-p/1395110#M423597</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2017-09-12T07:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate previous week value ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-previous-week-value/m-p/1395111#M423598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not following as guessing you must have Week field, then try this?&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;SPAN lang="EN-IN" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Segoe UI', sans-serif; color: black;"&gt;=sum( {$&amp;lt;[Week Ending]= ,prevWeekEnding={"$(=Date([Week Ending]-7))"}&lt;STRONG style="color: #ff0000;"&gt;,&lt;/STRONG&gt; &lt;STRONG style="color: #ff0000;"&gt;Week = {'$(Max(Week) - 1)'&lt;/STRONG&gt;}&amp;gt;} ListUSD])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-IN" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Segoe UI', sans-serif; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 07:21:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-previous-week-value/m-p/1395111#M423598</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-09-12T07:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate previous week value ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-previous-week-value/m-p/1395112#M423599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: Segoe UI;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Segoe UI;"&gt;Try&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Segoe UI;"&gt;prevWeekEnding={"$(=Date(max([Week Ending])-7))"}&amp;gt;} &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 07:22:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-previous-week-value/m-p/1395112#M423599</guid>
      <dc:creator>shraddha_g</dc:creator>
      <dc:date>2017-09-12T07:22:59Z</dc:date>
    </item>
  </channel>
</rss>

