<?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: previous week calculation in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/previous-week-calculation-in-set-analysis/m-p/1130917#M897950</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;A href="https://community.qlik.com/people/franky_h79"&gt;franky_h79&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am using personal edition .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i can't open the document&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;send me what you have did in this document ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephen G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 23 Jul 2016 11:26:39 GMT</pubDate>
    <dc:creator>stephenedberkg</dc:creator>
    <dc:date>2016-07-23T11:26:39Z</dc:date>
    <item>
      <title>previous week calculation in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/previous-week-calculation-in-set-analysis/m-p/1130915#M897948</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;&lt;/P&gt;&lt;P&gt;i have the week&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The week start from 36th week of 2015 to 28th week of 2016&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i select the&amp;nbsp; week 14 mean i want display the values of week 36th week 2015 to 13th week 2016&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to write in set analysis?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i wrote like below but i get only the max year values only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({ &amp;lt;&lt;SPAN style="font-size: 13.3333px;"&gt;Year_UP&lt;/SPAN&gt;= {"&amp;lt;=$(=Max(Year_UP))"},&lt;SPAN style="font-size: 13.3333px;"&gt;Week_UP&lt;/SPAN&gt;= {"&amp;lt;$(=Max(Week_UP))"}&amp;gt;} sales)&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/previous-week-calculation-in-set-analysis/m-p/1130915#M897948</guid>
      <dc:creator>stephenedberkg</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: previous week calculation in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/previous-week-calculation-in-set-analysis/m-p/1130916#M897949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;have a look at the attached sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: I have added a new version of qvw&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Jul 2016 10:16:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/previous-week-calculation-in-set-analysis/m-p/1130916#M897949</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2016-07-23T10:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: previous week calculation in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/previous-week-calculation-in-set-analysis/m-p/1130917#M897950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;A href="https://community.qlik.com/people/franky_h79"&gt;franky_h79&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am using personal edition .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i can't open the document&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;send me what you have did in this document ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephen G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Jul 2016 11:26:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/previous-week-calculation-in-set-analysis/m-p/1130917#M897950</guid>
      <dc:creator>stephenedberkg</dc:creator>
      <dc:date>2016-07-23T11:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: previous week calculation in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/previous-week-calculation-in-set-analysis/m-p/1130918#M897951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the extract of above qvw&amp;nbsp; posted by Frank&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;******************* Script ***************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Year_UP, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Week_UP, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(Week_UP,'00') &amp;amp;'-'&amp;amp; Year_UP as CalendarWeekAndYear&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[..\Microsoft Excel-Arbeitsblatt (neu).xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Tabelle1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;******************* Variable Used ***************************&lt;/P&gt;&lt;P&gt;vZeitraum49KW &lt;/P&gt;&lt;P&gt;vZeitraum19KW &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*********************************Help Text*************************&lt;/P&gt;&lt;P&gt;By using the slider you can look at the previous weeks (with same range: 31 weeks)&lt;/P&gt;&lt;P&gt;If you want to adapt different weekrange, just replace&amp;nbsp; the variable (vZeitraum**KW)&amp;nbsp; &lt;/P&gt;&lt;P&gt;in the dimension/expression which was setup in script by the new variable, to adapt new weekrange&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**************************** Created Slider Object******************************&lt;/P&gt;&lt;P&gt;Variable Used : vAktuelleKW&lt;/P&gt;&lt;P&gt;Min Value : -26&lt;/P&gt;&lt;P&gt;Max Value : 1&lt;/P&gt;&lt;P&gt;Static Step : 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****************** Created First Straight Table **********************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension : CalendarWeekAndYear&lt;/P&gt;&lt;P&gt;Expression : =sum({&amp;lt;WeekDiff={'&amp;gt;=$(vZeitraum49KW)&amp;lt;=$(vZeitraum19KW)'}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;********************Created Second Straight Table ********************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension : =If(WeekDiff&amp;gt;=$(vZeitraum49KW) and WeekDiff&amp;lt;=$(vZeitraum19KW),CalendarWeekAndYear)&lt;/P&gt;&lt;P&gt;Expression : sum(Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Jul 2016 11:38:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/previous-week-calculation-in-set-analysis/m-p/1130918#M897951</guid>
      <dc:creator>agni_gold</dc:creator>
      <dc:date>2016-07-23T11:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: previous week calculation in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/previous-week-calculation-in-set-analysis/m-p/1130919#M897952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i attached the scriptfile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create Straight table with dimension: CalendarWeekAndYear&lt;/P&gt;&lt;P&gt;2. Expression: sum({&amp;lt;WeekDiff={'&amp;gt;=$(vZeitraum49KW)&amp;lt;=$(vZeitraum19KW)'}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create Straight table with dimension:&lt;/P&gt;&lt;P&gt;=If(WeekDiff&amp;gt;=$(vZeitraum49KW) and WeekDiff&amp;lt;=$(vZeitraum19KW),CalendarWeekAndYear)&lt;/P&gt;&lt;P&gt;2. Expression: sum(Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would recommend to create also a slider with Properties --&amp;gt;General --&amp;gt;Data --&amp;gt;Variables --&amp;gt; choose "vAktuelleKW"&lt;/P&gt;&lt;P&gt;set min: -26 and max=1, static step:1 (if you set the slider to 1 then your range is in scope)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By using the slider you can look at the previous weeks (with same range: 31 weeks)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to adapt different weekrange, just replace&amp;nbsp; the variable (vZeitraum**KW)&amp;nbsp; in the dimension/expression which was setup in script by the new variable, to adapt new weekrange&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: I also added the xlsx file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="132232" alt="Unbenannt.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/132232_Unbenannt.png" style="height: 204px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Jul 2016 11:55:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/previous-week-calculation-in-set-analysis/m-p/1130919#M897952</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2016-07-23T11:55:47Z</dc:date>
    </item>
  </channel>
</rss>

