<?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: Set Expression - Force Exclusion for ONE Current Selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Expression-Force-Exclusion-for-ONE-Current-Selection/m-p/840652#M295438</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Aaron‌ and &lt;A href="https://community.qlik.com/qlik-users/21969"&gt;RubenMarin&lt;/A&gt;‌, this now works as expected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 May 2015 10:28:22 GMT</pubDate>
    <dc:creator>alistairross</dc:creator>
    <dc:date>2015-05-12T10:28:22Z</dc:date>
    <item>
      <title>Set Expression - Force Exclusion for ONE Current Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-Force-Exclusion-for-ONE-Current-Selection/m-p/840649#M295435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create a metric that ignores the current selection in just one field, the other current selections need to still apply to the metric.&lt;/P&gt;&lt;P&gt;The issue is that '&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;LEDGER_ZERO_DATE_KEY&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; =&amp;nbsp; ' &lt;SPAN style="font-size: 10pt;"&gt;doesn't seem to be making a difference where as the help files suggest that this should clear the selection in the field for the calculations. The full expression is below.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AGGR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MAX&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;LEDGER_ZERO_DATE_KEY&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = ,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;INVOICE_DATE_KEY&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;lt;= 42004 &amp;gt;= 41640"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CASH_SUSPENSE_KEY&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {2} &amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CLIENT_AMOUNT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TRANSACTION_KEY&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The current selection in Ledger_zero_date_key is used to improve performance but this metric needs to ignore it.&lt;/P&gt;&lt;P&gt;Can some one either correct my expression, or tell me why this is not doing what I expect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 10:12:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-Force-Exclusion-for-ONE-Current-Selection/m-p/840649#M295435</guid>
      <dc:creator>alistairross</dc:creator>
      <dc:date>2015-05-12T10:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression - Force Exclusion for ONE Current Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-Force-Exclusion-for-ONE-Current-Selection/m-p/840650#M295436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alistair, maybe works adding set analisys to the first sum, you can use set analisys only in the Max() when you want restrict data, usually it gives the same result, but if you want to ignore user selections wich will affect the Aggr Dimension, you need to add it in the function outside the aggr(), ie:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;LEDGER_ZERO_DATE_KEY&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; =&amp;gt;} &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AGGR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MAX&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;LEDGER_ZERO_DATE_KEY&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = ,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;INVOICE_DATE_KEY&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;lt;= 42004 &amp;gt;= 41640"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CASH_SUSPENSE_KEY&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {2} &amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CLIENT_AMOUNT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TRANSACTION_KEY&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also note that if you're using this on chart, the dimensions can affect the expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 10:19:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-Force-Exclusion-for-ONE-Current-Selection/m-p/840650#M295436</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-05-12T10:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression - Force Exclusion for ONE Current Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-Force-Exclusion-for-ONE-Current-Selection/m-p/840651#M295437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alistair,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try excluding it from outside the AGGR statement as well, so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;LEDGER_ZERO_DATE_KEY&amp;gt;}AGGR(MAX(....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 10:19:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-Force-Exclusion-for-ONE-Current-Selection/m-p/840651#M295437</guid>
      <dc:creator>morganaaron</dc:creator>
      <dc:date>2015-05-12T10:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression - Force Exclusion for ONE Current Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-Force-Exclusion-for-ONE-Current-Selection/m-p/840652#M295438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Aaron‌ and &lt;A href="https://community.qlik.com/qlik-users/21969"&gt;RubenMarin&lt;/A&gt;‌, this now works as expected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 10:28:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-Force-Exclusion-for-ONE-Current-Selection/m-p/840652#M295438</guid>
      <dc:creator>alistairross</dc:creator>
      <dc:date>2015-05-12T10:28:22Z</dc:date>
    </item>
  </channel>
</rss>

