<?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: How to have set analysis calculation obey current selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-have-set-analysis-calculation-obey-current-selection/m-p/78403#M786879</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try Sum({$&amp;lt;[Type]={'A'}*P([Type])&amp;gt;}Cost)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Feb 2018 11:45:13 GMT</pubDate>
    <dc:creator>jwjackso</dc:creator>
    <dc:date>2018-02-23T11:45:13Z</dc:date>
    <item>
      <title>How to have set analysis calculation obey current selection</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-have-set-analysis-calculation-obey-current-selection/m-p/78401#M786877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Say I have an expression like so:&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[Type]={'A'}&amp;gt;}Cost)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also have a list box for [Type]. And [Type] has A,B,C, etc. I noticed that even if I select [Type]='B' from the list box, the expression above still calculates. Is it possible to have the expression calculate a zero being that Type=A is not part of current selection?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-have-set-analysis-calculation-obey-current-selection/m-p/78401#M786877</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to have set analysis calculation obey current selection</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-have-set-analysis-calculation-obey-current-selection/m-p/78402#M786878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;may be this?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;Sum({1&amp;lt;[Type]={'A'}&amp;gt;}Cost)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2018 11:22:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-have-set-analysis-calculation-obey-current-selection/m-p/78402#M786878</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2018-02-23T11:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to have set analysis calculation obey current selection</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-have-set-analysis-calculation-obey-current-selection/m-p/78403#M786879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try Sum({$&amp;lt;[Type]={'A'}*P([Type])&amp;gt;}Cost)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2018 11:45:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-have-set-analysis-calculation-obey-current-selection/m-p/78403#M786879</guid>
      <dc:creator>jwjackso</dc:creator>
      <dc:date>2018-02-23T11:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to have set analysis calculation obey current selection</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-have-set-analysis-calculation-obey-current-selection/m-p/78404#M786880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The set expression that you use starts from the current selection, but overrides the selection for field Type by forcibly setting it to value 'A'. By specifying the set expression [Type]={'A'}, you are effectively undoing the selection in field Type and putting a new one in place. All other current selections will remain unchanged.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To accomplish what you want, you can use combination operators like -= or *=. The latter is especally useful as it means (temporarily) assign to the field the &lt;EM&gt;intersection&lt;/EM&gt; of the current selection with whatever I specify between braces. Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;=Sum({&amp;lt;[Type] &lt;STRONG style="color: #ff0000;"&gt;*=&lt;/STRONG&gt; {'A'}&amp;gt;} Cost)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;will throw away all currently selected Type values except for value 'A'. If value 'A' wasn't selected to begin with, it will stay unselected in this expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2018 11:48:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-have-set-analysis-calculation-obey-current-selection/m-p/78404#M786880</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2018-02-23T11:48:13Z</dc:date>
    </item>
  </channel>
</rss>

