<?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 syntax not working when having two sets in the expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-syntax-not-working-when-having-two-sets-in-the-expression/m-p/844169#M1014895</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;I have a real hard time getting the set expression working. These two expressions works perfectly:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;[key_Week] = {"&amp;gt;=$(vP1Start) &amp;lt;=$(=vP1End)"}&amp;gt;} [BB_Net_USD])&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;Currency_ISO_CD=&amp;gt;} {$&amp;lt;Unit_type=&amp;gt;} {$&amp;lt;Filter_Product=&amp;gt;}[BB_Net_USD])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I try to do this&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;Currency_ISO_CD=&amp;gt;} {$&amp;lt;Unit_type=&amp;gt;} {$&amp;lt;Filter_Product=&amp;gt;}&lt;/P&gt;&lt;P&gt;{&amp;lt;[key_Week] = {"&amp;gt;=$(vP1Start) &amp;lt;=$(=vP1End)"}&amp;gt;} [BB_Net_USD])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first section is ignored, the result is the same than the first formula I show. I would expect the number to be much higher.&lt;/P&gt;&lt;P&gt;I have been trying different things for hours and asked a couple colleagues to no avail. Is it possible to do this?&lt;/P&gt;&lt;P&gt;Thanks, Philippe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Apr 2015 00:33:55 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-04-16T00:33:55Z</dc:date>
    <item>
      <title>Set syntax not working when having two sets in the expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-syntax-not-working-when-having-two-sets-in-the-expression/m-p/844169#M1014895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;I have a real hard time getting the set expression working. These two expressions works perfectly:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;[key_Week] = {"&amp;gt;=$(vP1Start) &amp;lt;=$(=vP1End)"}&amp;gt;} [BB_Net_USD])&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;Currency_ISO_CD=&amp;gt;} {$&amp;lt;Unit_type=&amp;gt;} {$&amp;lt;Filter_Product=&amp;gt;}[BB_Net_USD])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I try to do this&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;Currency_ISO_CD=&amp;gt;} {$&amp;lt;Unit_type=&amp;gt;} {$&amp;lt;Filter_Product=&amp;gt;}&lt;/P&gt;&lt;P&gt;{&amp;lt;[key_Week] = {"&amp;gt;=$(vP1Start) &amp;lt;=$(=vP1End)"}&amp;gt;} [BB_Net_USD])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first section is ignored, the result is the same than the first formula I show. I would expect the number to be much higher.&lt;/P&gt;&lt;P&gt;I have been trying different things for hours and asked a couple colleagues to no avail. Is it possible to do this?&lt;/P&gt;&lt;P&gt;Thanks, Philippe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2015 00:33:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-syntax-not-working-when-having-two-sets-in-the-expression/m-p/844169#M1014895</guid>
      <dc:creator />
      <dc:date>2015-04-16T00:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: Set syntax not working when having two sets in the expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-syntax-not-working-when-having-two-sets-in-the-expression/m-p/844170#M1014896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Philippe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;only the first of all of your expressions can work properly. The rest are incorrect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each aggregation function, such as sum(), can only have one Set Analysis expression. Within this single expression, you may use multiple Set Identifiers, if they are used with set operators. Each Set ID uses a single set of Modifiers, enclosed in angled brackets. Multiple modifiers are separated by commas. So, your second expression should look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum({$&amp;lt;Currency_ISO_CD=, Unit_type=, Filter_Product= &amp;gt;}[BB_Net_USD])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Your third expression should be formulated like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({$&amp;lt;Currency_ISO_CD=, Unit_type=, Filter_Product=, &lt;SPAN style="line-height: 1.5em;"&gt;[key_Week] = {"&amp;gt;=$(vP1Start) &amp;lt;=$(=vP1End)"}&amp;gt;} [BB_Net_USD])&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;cheers,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Oleg Troyansky&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Come and learn Set Analysis with me at the Masters Summit for QlikView - &lt;A href="http://www.masterssummit.com/"&gt;www.masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2015 01:05:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-syntax-not-working-when-having-two-sets-in-the-expression/m-p/844170#M1014896</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2015-04-16T01:05:08Z</dc:date>
    </item>
  </channel>
</rss>

