<?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 Multiple set analysis conditions not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiple-set-analysis-conditions-not-working/m-p/175412#M504764</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&lt;/I&gt;&lt;I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first half of my set analysis statements works great, but trying to combine another standalone functioning set analysis statement I can not get a result&lt;/P&gt;&lt;P&gt;Background explaination: This statement is based on distributor selection, It sums all values with the exception of the value selected.&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Distributor = {*}-{&lt;B&gt;&lt;I&gt;$(=chr(39) &amp;amp; Distributor &amp;amp; chr(39))&lt;/I&gt;&lt;/B&gt;}&amp;gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;statement b:&lt;/P&gt;&lt;P&gt;works in another chart. It calculates previous month based on month sequence calculation. In this chart I have three 3 fields: -1, -2, -3. .&lt;/P&gt;&lt;P&gt;{&amp;lt;FYYear=,FYMonth=, FYMonthName=,MonthSequenceNum={&lt;B&gt;&lt;I&gt;$(=only(MonthSequenceNum)-1)&lt;/I&gt;&lt;/B&gt;}&amp;gt;} POS_Qty&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;({&amp;lt;Distributor = {*}-{&lt;B&gt;&lt;I&gt;$(=chr(39) &amp;amp; Distributor &amp;amp; chr(39))&lt;/I&gt;&lt;/B&gt;}&amp;gt;} + {&amp;lt;FYYear=,FYMonth=, FYMonthName=,MonthSequenceNum={&lt;B&gt;&lt;I&gt;$(=only(MonthSequenceNum)-1)&lt;/I&gt;&lt;/B&gt;}&amp;gt;} POS_Qty)&lt;/P&gt;&lt;P&gt;Goal: I would to sum POS Qty for all other distributors and get the sum of the previous 3 months. I don't mind if I have to do this in three expression and then sum, but I was hoping to accomplish this in one expression.&lt;/P&gt;&lt;P&gt;Any recommendations or suggestions?&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Sep 2009 22:45:17 GMT</pubDate>
    <dc:creator>karensmith</dc:creator>
    <dc:date>2009-09-03T22:45:17Z</dc:date>
    <item>
      <title>Multiple set analysis conditions not working</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-set-analysis-conditions-not-working/m-p/175412#M504764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&lt;/I&gt;&lt;I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first half of my set analysis statements works great, but trying to combine another standalone functioning set analysis statement I can not get a result&lt;/P&gt;&lt;P&gt;Background explaination: This statement is based on distributor selection, It sums all values with the exception of the value selected.&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Distributor = {*}-{&lt;B&gt;&lt;I&gt;$(=chr(39) &amp;amp; Distributor &amp;amp; chr(39))&lt;/I&gt;&lt;/B&gt;}&amp;gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;statement b:&lt;/P&gt;&lt;P&gt;works in another chart. It calculates previous month based on month sequence calculation. In this chart I have three 3 fields: -1, -2, -3. .&lt;/P&gt;&lt;P&gt;{&amp;lt;FYYear=,FYMonth=, FYMonthName=,MonthSequenceNum={&lt;B&gt;&lt;I&gt;$(=only(MonthSequenceNum)-1)&lt;/I&gt;&lt;/B&gt;}&amp;gt;} POS_Qty&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;({&amp;lt;Distributor = {*}-{&lt;B&gt;&lt;I&gt;$(=chr(39) &amp;amp; Distributor &amp;amp; chr(39))&lt;/I&gt;&lt;/B&gt;}&amp;gt;} + {&amp;lt;FYYear=,FYMonth=, FYMonthName=,MonthSequenceNum={&lt;B&gt;&lt;I&gt;$(=only(MonthSequenceNum)-1)&lt;/I&gt;&lt;/B&gt;}&amp;gt;} POS_Qty)&lt;/P&gt;&lt;P&gt;Goal: I would to sum POS Qty for all other distributors and get the sum of the previous 3 months. I don't mind if I have to do this in three expression and then sum, but I was hoping to accomplish this in one expression.&lt;/P&gt;&lt;P&gt;Any recommendations or suggestions?&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Sep 2009 22:45:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-set-analysis-conditions-not-working/m-p/175412#M504764</guid>
      <dc:creator>karensmith</dc:creator>
      <dc:date>2009-09-03T22:45:17Z</dc:date>
    </item>
    <item>
      <title>Multiple set analysis conditions not working</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-set-analysis-conditions-not-working/m-p/175413#M504765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Karen,&lt;/P&gt;&lt;P&gt;I see two issues here - one is pure syntax, and another is logical.&lt;/P&gt;&lt;P&gt;1. From the syntax standpoint, I don't think you can add Set Analysis expression the way you did... In other words, your Set Analysis expression should have one set of outer curved brackets. For example, expression {1-$} is valid, while {1} - {$} is not. Do you see the distinction?&lt;/P&gt;&lt;P&gt;2. From the logical standpoint, even if your expression worked, it would've returned summarized sales for all the excluded customers OR if the month is within the last 3 months - your logical "+" signified a union between the two sets. Are you sure this is what you are truly after? If I understand your business problems, you'd like to know the sales for all excluded customers, that happened within the last 3 months. In this case, you don't need a union, you rather need to list your set modifiers one after another, separated by coma.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;sum({&amp;lt; Distributor = {*}-{&lt;B&gt;&lt;I&gt;$(=chr(39) &amp;amp; Distributor &amp;amp; chr(39))&lt;/I&gt;&lt;/B&gt;} , &lt;B&gt;&lt;/B&gt;FYYear=,FYMonth=, FYMonthName=,MonthSequenceNum={&lt;B&gt;&lt;I&gt;$(=only(MonthSequenceNum)-1)&lt;/I&gt;&lt;/B&gt;} &amp;gt;} Sales)&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Oleg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Sep 2009 23:04:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-set-analysis-conditions-not-working/m-p/175413#M504765</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2009-09-03T23:04:03Z</dc:date>
    </item>
    <item>
      <title>Multiple set analysis conditions not working</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-set-analysis-conditions-not-working/m-p/175414#M504767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oleg,&lt;/P&gt;&lt;P&gt;Okay I understand point #1- one set of curly brackets. Thanks for the correction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Point #2- No I truly did not want an union statment. I was trying to add three months based on excluded distributors&lt;/P&gt;&lt;P&gt;And, yes your understanding is correct. I thougt I tried your recommend syntax,but with no success. I will try syntax again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Sep 2009 23:32:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-set-analysis-conditions-not-working/m-p/175414#M504767</guid>
      <dc:creator>karensmith</dc:creator>
      <dc:date>2009-09-03T23:32:48Z</dc:date>
    </item>
    <item>
      <title>Multiple set analysis conditions not working</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-set-analysis-conditions-not-working/m-p/175415#M504768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Oleg,&lt;/P&gt;&lt;P&gt;Your sample syntax worked great.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2009 01:26:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-set-analysis-conditions-not-working/m-p/175415#M504768</guid>
      <dc:creator>karensmith</dc:creator>
      <dc:date>2009-09-04T01:26:49Z</dc:date>
    </item>
    <item>
      <title>Multiple set analysis conditions not working</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-set-analysis-conditions-not-working/m-p/175416#M504770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On a similar note, what is wrong with this expression where I am trying to get the difference between the Sales this Month Year and the last year same time,&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;[Fiscal Period]={$(=Only(Fiscal Period))}&amp;gt;} Sales) - Sum({$&amp;lt;[Fiscal Period]={$(=Only(Fiscal Period)-12)}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;somehow, qlikview is not interpreting this properly. the first part works but the second one doesn't.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2009 23:28:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-set-analysis-conditions-not-working/m-p/175416#M504770</guid>
      <dc:creator>avastani</dc:creator>
      <dc:date>2009-09-23T23:28:55Z</dc:date>
    </item>
    <item>
      <title>Multiple set analysis conditions not working</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-set-analysis-conditions-not-working/m-p/175417#M504772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amir,&lt;/P&gt;&lt;P&gt;You are missing square brackets [] around Fiscal Period in the two Only(Fiscal Period) parts of your expression.&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Footsie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2009 01:36:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-set-analysis-conditions-not-working/m-p/175417#M504772</guid>
      <dc:creator />
      <dc:date>2009-09-24T01:36:37Z</dc:date>
    </item>
    <item>
      <title>Multiple set analysis conditions not working</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-set-analysis-conditions-not-working/m-p/175418#M504773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I put that in and it still didn't do any good. For some reason my version 8.50 is not accepting Only() in set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2009 01:41:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-set-analysis-conditions-not-working/m-p/175418#M504773</guid>
      <dc:creator>avastani</dc:creator>
      <dc:date>2009-09-24T01:41:55Z</dc:date>
    </item>
  </channel>
</rss>

