<?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: Ignore single filter in AGGR function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Ignore-single-filter-in-AGGR-function/m-p/1170514#M908469</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your formula does the trick. Selecting the Claim Code now does not affect the machine invoice price.&lt;/P&gt;&lt;P&gt;Many thanks for sharing your knowledge.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Jun 2016 06:48:48 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-06-24T06:48:48Z</dc:date>
    <item>
      <title>Ignore single filter in AGGR function</title>
      <link>https://community.qlik.com/t5/QlikView/Ignore-single-filter-in-AGGR-function/m-p/1170508#M908463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For an application, I need to ignore a certain search filter using Set Analysis into an aggregate function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The AGGR function is:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&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="font-size: 8pt;"&gt;_MachineInvoicePrice,&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Machine Serial]&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;&lt;SPAN style="font-size: 8pt;"&gt;The search filter [Claim Code] should not affect this calculation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I did try the following solution without any result:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Sum(aggr({&amp;lt;[Claim Code]=&amp;gt;} _MachineInvoicePrice, [Machine Serial]))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;But still, when I select the claim code, I see that the total of machine invoice prices changes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;How do I make sure the [Claim Code] filter can be set to anything, without affecting the total aggregation?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thank you in advance&lt;/SPAN&gt;&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/Ignore-single-filter-in-AGGR-function/m-p/1170508#M908463</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Ignore single filter in AGGR function</title>
      <link>https://community.qlik.com/t5/QlikView/Ignore-single-filter-in-AGGR-function/m-p/1170509#M908464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;aggr(sum(&amp;nbsp; {&amp;lt;&lt;SPAN style="font-size: 8pt;"&gt; [Claim Code] =&lt;/SPAN&gt;&amp;gt;}&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Machine Serial] ), &lt;SPAN style="font-size: 8pt;"&gt; _MachineInvoicePrice)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2016 09:42:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ignore-single-filter-in-AGGR-function/m-p/1170509#M908464</guid>
      <dc:creator>varshavig12</dc:creator>
      <dc:date>2016-06-22T09:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: Ignore single filter in AGGR function</title>
      <link>https://community.qlik.com/t5/QlikView/Ignore-single-filter-in-AGGR-function/m-p/1170510#M908465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Varsha Vig,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your formula does not work.&lt;/P&gt;&lt;P&gt;(I also tried switching [Machine Serial ] and _MachineInvoicePrice from position as that would make more sense)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my dimension of the chart, I have for instance 'Countries'.&lt;/P&gt;&lt;P&gt;When I apply your formula, I only get a result back when there is only 1 record for that specific country. Otherwise the value is -.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2016 13:54:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ignore-single-filter-in-AGGR-function/m-p/1170510#M908465</guid>
      <dc:creator />
      <dc:date>2016-06-23T13:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: Ignore single filter in AGGR function</title>
      <link>https://community.qlik.com/t5/QlikView/Ignore-single-filter-in-AGGR-function/m-p/1170511#M908466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nisse&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to use [Countries] as well, you will need to include it in the field list of AGGR function. So your expression would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(aggr(sum(&amp;nbsp; {&amp;lt; [Claim Code] =&amp;gt;} _MachineInvoicePrice),[Machine Serial],[Countries])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please consider attaching a small sample app so we can understand your issue better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for the AGGR function, remember it creates a virtual runtime mini-table from the fields you provide so it will lose resolution for [Countries] if you don't specify the field in the field list&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2016 23:27:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ignore-single-filter-in-AGGR-function/m-p/1170511#M908466</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-23T23:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: Ignore single filter in AGGR function</title>
      <link>https://community.qlik.com/t5/QlikView/Ignore-single-filter-in-AGGR-function/m-p/1170512#M908467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm really very sorry,&lt;/P&gt;&lt;P&gt;I copy and pasted in the wrong place.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr(sum(&amp;nbsp; {&amp;lt;&lt;SPAN style="font-size: 8pt;"&gt; [Claim Code] =&lt;/SPAN&gt;&amp;gt;}&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt; &lt;SPAN style="font-size: 8pt;"&gt; _MachineInvoicePrice&lt;/SPAN&gt;&lt;/SPAN&gt;),[&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Machine Serial]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;&lt;/SPAN&gt;If still you are stuck,&lt;/P&gt;&lt;P&gt;post a sample and&amp;nbsp; screentshot of the desired output.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2016 03:15:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ignore-single-filter-in-AGGR-function/m-p/1170512#M908467</guid>
      <dc:creator>varshavig12</dc:creator>
      <dc:date>2016-06-24T03:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Ignore single filter in AGGR function</title>
      <link>https://community.qlik.com/t5/QlikView/Ignore-single-filter-in-AGGR-function/m-p/1170513#M908468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum(&lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;[Claim Code]=&amp;gt;}&lt;/SPAN&gt; Aggr(&lt;SPAN style="color: #ff0000;"&gt;Only({&amp;lt;[Claim Code]=&amp;gt;}&lt;/SPAN&gt;_MachineInvoicePrice&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt;,&amp;nbsp; [Machine Serial]))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2016 03:33:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ignore-single-filter-in-AGGR-function/m-p/1170513#M908468</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-24T03:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: Ignore single filter in AGGR function</title>
      <link>https://community.qlik.com/t5/QlikView/Ignore-single-filter-in-AGGR-function/m-p/1170514#M908469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your formula does the trick. Selecting the Claim Code now does not affect the machine invoice price.&lt;/P&gt;&lt;P&gt;Many thanks for sharing your knowledge.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2016 06:48:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ignore-single-filter-in-AGGR-function/m-p/1170514#M908469</guid>
      <dc:creator />
      <dc:date>2016-06-24T06:48:48Z</dc:date>
    </item>
  </channel>
</rss>

