<?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 expression return incorrect value. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-expression-return-incorrect-value/m-p/1980311#M1220971</link>
    <description>&lt;P&gt;I have a table with 3 fields, f1, f2 and value. the table is:&lt;/P&gt;
&lt;P&gt;LOAD * Inline[&lt;BR /&gt;f1, f2, value&lt;BR /&gt;A , X , 1&lt;BR /&gt;A , Y , 1&lt;BR /&gt;B , X , 1&lt;BR /&gt;B , Y , 1&lt;BR /&gt;C , X , 1&lt;BR /&gt;C , Y , 1];&lt;/P&gt;
&lt;P&gt;in qlikview I select f2 = X. the expression sum({$&amp;lt;f2={Y}&amp;gt;} value) return 3 instead of 0. In the picture you can see that. I don't know why?&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Sep 2022 10:45:32 GMT</pubDate>
    <dc:creator>davoud-jelodar</dc:creator>
    <dc:date>2022-09-13T10:45:32Z</dc:date>
    <item>
      <title>Set expression return incorrect value.</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-return-incorrect-value/m-p/1980311#M1220971</link>
      <description>&lt;P&gt;I have a table with 3 fields, f1, f2 and value. the table is:&lt;/P&gt;
&lt;P&gt;LOAD * Inline[&lt;BR /&gt;f1, f2, value&lt;BR /&gt;A , X , 1&lt;BR /&gt;A , Y , 1&lt;BR /&gt;B , X , 1&lt;BR /&gt;B , Y , 1&lt;BR /&gt;C , X , 1&lt;BR /&gt;C , Y , 1];&lt;/P&gt;
&lt;P&gt;in qlikview I select f2 = X. the expression sum({$&amp;lt;f2={Y}&amp;gt;} value) return 3 instead of 0. In the picture you can see that. I don't know why?&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 10:45:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-return-incorrect-value/m-p/1980311#M1220971</guid>
      <dc:creator>davoud-jelodar</dc:creator>
      <dc:date>2022-09-13T10:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression return incorrect value.</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-return-incorrect-value/m-p/1980321#M1220972</link>
      <description>&lt;P&gt;This is correct and behaving as expected. f2={Y} means return rows where F2 is Y, and there are three such rows. This overrides any selection made on the field.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 11:04:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-return-incorrect-value/m-p/1980321#M1220972</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2022-09-13T11:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression return incorrect value.</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-return-incorrect-value/m-p/1980672#M1220993</link>
      <description>&lt;P&gt;Thanks, but I selected f2=X then must be returned zero not 3. Your answer is correct if nothing selected. Notice that I use "$" sign (=active current selection) then sum must be 0.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 03:46:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-return-incorrect-value/m-p/1980672#M1220993</guid>
      <dc:creator>davoud-jelodar</dc:creator>
      <dc:date>2022-09-14T03:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression return incorrect value.</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-return-incorrect-value/m-p/1980694#M1220996</link>
      <description>&lt;P&gt;As a test, I added a decimal variable and ran the same CASE expression against it and it works fine, returning the results as I would expect (rounding the value up when IsGun=1. But when I run that same CASE expression against another decimal value, it always returns the value with the CEILING() function and never returns the original value.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.myaccountaccess.website/" target="_self"&gt;&lt;FONT size="1 2 3 4 5 6 7" color="#FFFFFF"&gt;MyAccountAccess&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;may my info helpful&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 03:44:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-return-incorrect-value/m-p/1980694#M1220996</guid>
      <dc:creator>Heidenreich</dc:creator>
      <dc:date>2022-09-15T03:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression return incorrect value.</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-return-incorrect-value/m-p/1980707#M1220998</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/24714"&gt;@davoud-jelodar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;'$' is applicable for &lt;EM&gt;rest of the other fields&lt;/EM&gt; which are not explicitly mentioned in the set. To achieve the behavior you are talking about, try using intersection operator, like below:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;sum({$&amp;lt;f2&lt;STRONG&gt;*&lt;/STRONG&gt;={Y}&amp;gt;} value)&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 06:14:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-return-incorrect-value/m-p/1980707#M1220998</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2022-09-14T06:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression return incorrect value.</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-return-incorrect-value/m-p/1980729#M1221001</link>
      <description>&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 06:49:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-return-incorrect-value/m-p/1980729#M1221001</guid>
      <dc:creator>davoud-jelodar</dc:creator>
      <dc:date>2022-09-14T06:49:40Z</dc:date>
    </item>
  </channel>
</rss>

