<?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 Set Analysis - Previous Season Week in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Previous-Season-Week/m-p/248162#M94472</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 think you can't use a set expression like this&amp;nbsp; (season week is also your dimension, and you need the expression evaluated by row, but set expression is evaluated only once).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you could try a chart inter record function instead, like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=above(sum(oh_dollars))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Sep 2011 15:56:29 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2011-09-08T15:56:29Z</dc:date>
    <item>
      <title>Set Analysis - Previous Season Week</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Previous-Season-Week/m-p/248161#M94471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having trouble with a set analysis, its not returning the expected beginning inventory for the previous season week.&lt;/P&gt;&lt;P&gt;Here is what i'm using....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;fiscalseasonweek={'=(fiscalseasonweek)-1'}&amp;gt;}oh_dollars)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is sample data for fiscal season week 1 and 2. &lt;/P&gt;&lt;P&gt;For fiscal season week 2, the BOP should be the EOP of the previous week.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 200px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="46"&gt;fiscalseasonweek &lt;/TD&gt;&lt;TD class="xl66" width="86"&gt;&amp;nbsp;&amp;nbsp; BOP $&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none;" width="68"&gt;EOP $&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: medium none;"&gt;1 &lt;/TD&gt;&lt;TD class="xl66" style="border-left: medium none; border-top: medium none;"&gt;&amp;nbsp;&amp;nbsp; 0&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-left: medium none; border-top: medium none;"&gt;408&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 200px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: medium none;"&gt;2&lt;/TD&gt;&lt;TD class="xl66" style="border-left: medium none; border-top: medium none;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 408&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-left: medium none; border-top: medium none;"&gt;6237&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead, the expression is returning the same amount as in the EOP of week 2.&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 200px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="46"&gt;fiscalseasonweek &lt;/TD&gt;&lt;TD class="xl66" width="86"&gt;BOP $&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none;" width="68"&gt;EOP $ &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 200px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: medium none;"&gt;2&lt;/TD&gt;&lt;TD class="xl66" style="border-left: medium none; border-top: medium none;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6237&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-left: medium none; border-top: medium none;"&gt;6237&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Help.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sara&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 14:55:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Previous-Season-Week/m-p/248161#M94471</guid>
      <dc:creator />
      <dc:date>2011-09-08T14:55:24Z</dc:date>
    </item>
    <item>
      <title>Set Analysis - Previous Season Week</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Previous-Season-Week/m-p/248162#M94472</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 think you can't use a set expression like this&amp;nbsp; (season week is also your dimension, and you need the expression evaluated by row, but set expression is evaluated only once).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you could try a chart inter record function instead, like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=above(sum(oh_dollars))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 15:56:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Previous-Season-Week/m-p/248162#M94472</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-08T15:56:29Z</dc:date>
    </item>
    <item>
      <title>Set Analysis - Previous Season Week</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Previous-Season-Week/m-p/248163#M94473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont have season week in my dimensions, it just used it for the example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 16:12:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Previous-Season-Week/m-p/248163#M94473</guid>
      <dc:creator />
      <dc:date>2011-09-08T16:12:06Z</dc:date>
    </item>
    <item>
      <title>Set Analysis - Previous Season Week</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Previous-Season-Week/m-p/248164#M94474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My point is that I think it is problematic to use your dimension in the set expression like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried the above() function?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 16:24:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Previous-Season-Week/m-p/248164#M94474</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-08T16:24:38Z</dc:date>
    </item>
    <item>
      <title>Set Analysis - Previous Season Week</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Previous-Season-Week/m-p/248165#M94475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; yes, i tried the above () function. However, it only works if i have season week as a dimension, but i dont want to include it in my pivot table. Furthermore, when i select on one season week as a filter, the value becomes null.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 16:35:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Previous-Season-Week/m-p/248165#M94475</guid>
      <dc:creator />
      <dc:date>2011-09-08T16:35:09Z</dc:date>
    </item>
    <item>
      <title>Set Analysis - Previous Season Week</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Previous-Season-Week/m-p/248166#M94476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, what are your dimensions, then? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want the sum to become selection insensitive, you could probably use &lt;/P&gt;&lt;P&gt;=above(sum({1} oh_dollars))&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;=above(sum({&amp;lt;fiscalseasonweek= &amp;gt;} oh_dollars))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 16:39:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Previous-Season-Week/m-p/248166#M94476</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-08T16:39:09Z</dc:date>
    </item>
    <item>
      <title>Set Analysis - Previous Season Week</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Previous-Season-Week/m-p/248167#M94477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; my dimensions are a merchandise hierarchy (for example, department and vendor). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried settling with &lt;STRONG&gt;above(sum({&amp;lt;fiscalseasonweek= &amp;gt;} oh_dollars))&lt;/STRONG&gt;, and can maybe work with having fiscalseasonweek displayed as a dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem now is that it lists all fiscal season weeks, even if i have only one selected,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 19:00:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Previous-Season-Week/m-p/248167#M94477</guid>
      <dc:creator />
      <dc:date>2011-09-08T19:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Previous Season Week</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Previous-Season-Week/m-p/248168#M94478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe I am beginning to understand, you don't want a time series as dimension (fiscal week) in your table, but a point in time reporting for one column (figures for previous fiscal week), where you have selected one fiscal week as baseline, correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So maybe you are looking for something like:&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;fiscalseasonweek={"=$(=max(fiscalseasonweek)-1)"}&amp;gt;} oh_dollars)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for BOP. (But then your EOP should be limited also to one selected month, shouldn't it? Or are you using "always one selected value" in list box properties?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 23:45:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Previous-Season-Week/m-p/248168#M94478</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-08T23:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Previous Season Week</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Previous-Season-Week/m-p/248169#M94479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Correct, i'm always using one selected balue as the fiscal week. i will try your suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, while working with this yesterday, i noticed that it worked better if a i set up a variable for fiscalseasonweek-1, and used the variable in my set analysis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2011 12:33:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Previous-Season-Week/m-p/248169#M94479</guid>
      <dc:creator />
      <dc:date>2011-09-09T12:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Previous Season Week</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Previous-Season-Week/m-p/248170#M94480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, if you are using only one selected value, you don't need the max() function stuff, you could use only() function or probably just use your original expression (this might / should work if you get the format correct). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe your alternative using a variable is already working (I don't think that's because of the variable, I assume your variable matches the required format and your current expression does not. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, keep trying and good luck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2011 12:39:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Previous-Season-Week/m-p/248170#M94480</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-09T12:39:43Z</dc:date>
    </item>
  </channel>
</rss>

