<?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: need help for a set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/need-help-for-a-set-analysis/m-p/1324972#M841693</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using backend method,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;1) Try to add below WeekSerial column in your calendar script&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;AutoNumber(weekyear(Date) &amp;amp;'|' &amp;amp; week(Date) as WeekSerial&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;2) then use the WeekSearil in front end using set analysis method&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Cal_WeekYear=, Cal_Year=, WeekSerial={$(=max(WeekSerial)-1)}&amp;gt;} &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Prior Week Total= ' &amp;amp; sum({&amp;lt;WeekYear=,Year=, [Week ID]={"$((=year([Process Date])) &amp;amp; '-W' &amp;amp; (=num(week([Process Date])-1,'00')))"}&amp;gt;}[Sales Posting Amount USD])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you &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, 26 Apr 2017 16:32:38 GMT</pubDate>
    <dc:creator>devarasu07</dc:creator>
    <dc:date>2017-04-26T16:32:38Z</dc:date>
    <item>
      <title>need help for a set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/need-help-for-a-set-analysis/m-p/1324969#M841690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need to calculate previous week id's total:&lt;/P&gt;&lt;P&gt;Note that I have these following fields in my Data model:&lt;/P&gt;&lt;P&gt;Week Id = 2015-W02 or 2014-W09 like this&amp;nbsp;&amp;nbsp; and&lt;/P&gt;&lt;P&gt;Process Date= 09/31/2017 like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I am using the below set analysis, but it gives me nothing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Segoe UI',sans-serif; font-size: 10pt;"&gt;'Prior Week Total= ' &amp;amp; sum({&amp;lt;[Week ID]={"$((=year([Process Date])) &amp;amp; '-W' &amp;amp; (=num(week([Process Date])-1,'00')))"}&amp;gt;}[Sales Posting Amount USD])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when I choose week id from drop down it will show previous week's value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me about this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sandip&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/need-help-for-a-set-analysis/m-p/1324969#M841690</guid>
      <dc:creator>ananyaghosh</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: need help for a set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/need-help-for-a-set-analysis/m-p/1324970#M841691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share a sample to look into?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Apr 2017 15:20:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help-for-a-set-analysis/m-p/1324970#M841691</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-04-26T15:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: need help for a set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/need-help-for-a-set-analysis/m-p/1324971#M841692</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;I hope your trying to do in Text object, if so just try like below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='Previous Week Sales: '&amp;amp; Num(Sum({&amp;lt;Date = {"&amp;gt;=$(=Week(Max([Process Date]), -1))&amp;nbsp; &amp;lt;= $(=Date(Max([Process Date]), -7))"}&amp;gt;} TotalNetPriceSGD),'#,##0.00')&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="161364" alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/161364_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Apr 2017 16:03:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help-for-a-set-analysis/m-p/1324971#M841692</guid>
      <dc:creator>devarasu07</dc:creator>
      <dc:date>2017-04-26T16:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: need help for a set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/need-help-for-a-set-analysis/m-p/1324972#M841693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using backend method,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;1) Try to add below WeekSerial column in your calendar script&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;AutoNumber(weekyear(Date) &amp;amp;'|' &amp;amp; week(Date) as WeekSerial&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;2) then use the WeekSearil in front end using set analysis method&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Cal_WeekYear=, Cal_Year=, WeekSerial={$(=max(WeekSerial)-1)}&amp;gt;} &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Prior Week Total= ' &amp;amp; sum({&amp;lt;WeekYear=,Year=, [Week ID]={"$((=year([Process Date])) &amp;amp; '-W' &amp;amp; (=num(week([Process Date])-1,'00')))"}&amp;gt;}[Sales Posting Amount USD])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you &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, 26 Apr 2017 16:32:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help-for-a-set-analysis/m-p/1324972#M841693</guid>
      <dc:creator>devarasu07</dc:creator>
      <dc:date>2017-04-26T16:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: need help for a set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/need-help-for-a-set-analysis/m-p/1324973#M841694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;What is &lt;STRONG&gt;'Date='&lt;/STRONG&gt; in your expression(in Bold face font)?&lt;/P&gt;&lt;P&gt;Is it a function or column name here:&lt;/P&gt;&lt;P&gt;='Previous Week Sales: '&amp;amp; Num(Sum({&amp;lt;&lt;STRONG&gt;Date =&lt;/STRONG&gt; {"&amp;gt;=$(=Week(Max([Process Date]), -1))&amp;nbsp; &amp;lt;= $(=Date(Max([Process Date]), -7))"}&amp;gt;} TotalNetPriceSGD),'#,##0.00')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or it should be as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Num(Sum&lt;STRONG&gt;({&amp;lt;[Process Date]= &lt;/STRONG&gt;{"&amp;gt;=$(=Week(Max([Process Date]), -1))&amp;nbsp; &amp;lt;= $(=Date(Max([Process Date]), -7))"}&amp;gt;} TotalNetPriceSGD),'#,##0.00')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please correct me if I am wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also I need to use it in a straight table. Will it work there?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sandip&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2017 07:46:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help-for-a-set-analysis/m-p/1324973#M841694</guid>
      <dc:creator>ananyaghosh</dc:creator>
      <dc:date>2017-04-27T07:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: need help for a set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/need-help-for-a-set-analysis/m-p/1324974#M841695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Why you are using &lt;STRONG&gt;max(WeekSerial) - &lt;/STRONG&gt;means why you are using&lt;STRONG&gt; max() &lt;/STRONG&gt;function here?&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Cal_WeekYear=, Cal_Year=, WeekSerial={$(=max(WeekSerial)-1)}&amp;gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sandip&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2017 07:57:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help-for-a-set-analysis/m-p/1324974#M841695</guid>
      <dc:creator>ananyaghosh</dc:creator>
      <dc:date>2017-04-27T07:57:29Z</dc:date>
    </item>
  </channel>
</rss>

