<?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 current selections within an aggr function in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Ignore-current-selections-within-an-aggr-function/m-p/806344#M11170</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 13px;"&gt;=sum({1}aggr(rangesum(above(sum({1}TotalAmount), 0, rowno() )), Time.Year, [Time.Year Week]))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Mar 2015 08:44:13 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2015-03-02T08:44:13Z</dc:date>
    <item>
      <title>Ignore current selections within an aggr function</title>
      <link>https://community.qlik.com/t5/App-Development/Ignore-current-selections-within-an-aggr-function/m-p/806343#M11169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In Qlik Sense I'm using the following function as a measure to get a cumulative chart with two dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;=aggr(rangesum(above(sum(TotalAmount), 0, rowno() )), Time.Year, [Time.Year Week])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is working well and produces the graph shown below (I'm using some simple IF statements in the dimensions to constrain them to current/previous years and weeks to date).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to use set analysis to ignore current selections in the values. I can't figure out how to modify the function above to achieve that. Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="79461" alt="2015-02-28_0222.png" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/79461_2015-02-28_0222.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2015 18:26:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Ignore-current-selections-within-an-aggr-function/m-p/806343#M11169</guid>
      <dc:creator>crossroadsit</dc:creator>
      <dc:date>2015-02-27T18:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Ignore current selections within an aggr function</title>
      <link>https://community.qlik.com/t5/App-Development/Ignore-current-selections-within-an-aggr-function/m-p/806344#M11170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 13px;"&gt;=sum({1}aggr(rangesum(above(sum({1}TotalAmount), 0, rowno() )), Time.Year, [Time.Year Week]))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2015 08:44:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Ignore-current-selections-within-an-aggr-function/m-p/806344#M11170</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-03-02T08:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: Ignore current selections within an aggr function</title>
      <link>https://community.qlik.com/t5/App-Development/Ignore-current-selections-within-an-aggr-function/m-p/806345#M11171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I'm honest, I don't know exactly &lt;EM&gt;why&lt;/EM&gt; the solution involved putting a sum() around all of it... but it does feel right and it &lt;EM&gt;does&lt;/EM&gt; work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had tried putting {1} before TotalAmount. My grasp of set analysis, aggr and rangesum is still a bit tenuous.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2015 11:47:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Ignore-current-selections-within-an-aggr-function/m-p/806345#M11171</guid>
      <dc:creator>crossroadsit</dc:creator>
      <dc:date>2015-03-02T11:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: Ignore current selections within an aggr function</title>
      <link>https://community.qlik.com/t5/App-Development/Ignore-current-selections-within-an-aggr-function/m-p/1756316#M58336</link>
      <description>&lt;P&gt;Adding a prefix of Sum({1} to the aggr function is still a solution in 2020.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2020 15:08:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Ignore-current-selections-within-an-aggr-function/m-p/1756316#M58336</guid>
      <dc:creator>colinodonnel</dc:creator>
      <dc:date>2020-10-27T15:08:52Z</dc:date>
    </item>
  </channel>
</rss>

