<?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: Strange result combining selection and set expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Strange-result-combining-selection-and-set-expression/m-p/506841#M1133274</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jaime,&lt;/P&gt;&lt;P&gt;Any suggestions to get the result 'correct' meaning getting the amount 0 for gender Male when female is selected ? I want to use the formula in a text box and for the user the result is 'wrong', getting male=14 when female is selected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Nov 2013 23:13:29 GMT</pubDate>
    <dc:creator>mark_casselman</dc:creator>
    <dc:date>2013-11-28T23:13:29Z</dc:date>
    <item>
      <title>Strange result combining selection and set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-result-combining-selection-and-set-expression/m-p/506839#M1133272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Today I encountered a strage result. Can someone explain and/or resolve this ?&lt;/P&gt;&lt;P&gt;When i make a selection on field AgeGroup I get a normal result in the count of male and female amounts:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="selection1.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/49692_selection1.jpg" style="width: 620px; height: 207px;" /&gt;&lt;/P&gt;&lt;P&gt;But when i make an additional selection on gender i get a strange result:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="selection2.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/49693_selection2.jpg" style="width: 620px; height: 207px;" /&gt;&lt;/P&gt;&lt;P&gt;It is strange to me that when i have selected 'Female' I do get an amount for Male (14). I expected the result to be zero. No Males selected, so the sum of the amount or male should be 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only reason I could come up with is that the set expression &amp;lt;Gender={'Male'}&amp;gt; overrides the selection Gender=Female, though I do specify that the set expression should work on the selection ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Nov 2013 22:54:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-result-combining-selection-and-set-expression/m-p/506839#M1133272</guid>
      <dc:creator>mark_casselman</dc:creator>
      <dc:date>2013-11-28T22:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: Strange result combining selection and set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-result-combining-selection-and-set-expression/m-p/506840#M1133273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;that's the normal behaviour of Set Analysis, In your case, the expressions will respond to any dimension but Gender. It means that any selection that you make will affect except for Gender. That's because Gender is fixed (Male in one expression and Female in the other. So, in your example if you select Gender = Female it would not affect the expression with Gender = Male,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Nov 2013 23:02:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-result-combining-selection-and-set-expression/m-p/506840#M1133273</guid>
      <dc:creator>jaimeaguilar</dc:creator>
      <dc:date>2013-11-28T23:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: Strange result combining selection and set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-result-combining-selection-and-set-expression/m-p/506841#M1133274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jaime,&lt;/P&gt;&lt;P&gt;Any suggestions to get the result 'correct' meaning getting the amount 0 for gender Male when female is selected ? I want to use the formula in a text box and for the user the result is 'wrong', getting male=14 when female is selected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Nov 2013 23:13:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-result-combining-selection-and-set-expression/m-p/506841#M1133274</guid>
      <dc:creator>mark_casselman</dc:creator>
      <dc:date>2013-11-28T23:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: Strange result combining selection and set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-result-combining-selection-and-set-expression/m-p/506842#M1133275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the intersection operator *&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Gender *= {'Male} &amp;gt;}Amount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Nov 2013 23:30:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-result-combining-selection-and-set-expression/m-p/506842#M1133275</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-11-28T23:30:09Z</dc:date>
    </item>
  </channel>
</rss>

