<?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 Analysis, Sum of Values with Max(Year) ignoring selections in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Sum-of-Values-with-Max-Year-ignoring-selections/m-p/1871639#M71930</link>
    <description>&lt;P&gt;I appreciate the responses.&amp;nbsp; Unfortunately, they are not quite displaying the desired result of showing a&amp;nbsp;&lt;SPAN&gt;result that ignores selections and displays a sum of values in the current Fiscal Year.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;SUM({&lt;/SPAN&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;SPAN&gt;&amp;lt;FiscalYear = {"=MAX({1}FiscalYear)"}&amp;gt;}Value)&amp;nbsp; &amp;nbsp;is displaying a total for all records instead of current Fiscal year&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;SUM(&lt;STRONG&gt;all&lt;/STRONG&gt;&amp;nbsp;{&amp;lt;FiscalYear = {"=MAX({1}FiscalYear)"}&amp;gt;}Value)&amp;nbsp; is applying selections to the result&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Dec 2021 19:00:40 GMT</pubDate>
    <dc:creator>rcmartin</dc:creator>
    <dc:date>2021-12-15T19:00:40Z</dc:date>
    <item>
      <title>Set Analysis, Sum of Values with Max(Year) ignoring selections</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Sum-of-Values-with-Max-Year-ignoring-selections/m-p/1871603#M71928</link>
      <description>&lt;P&gt;Hello Community,&lt;/P&gt;
&lt;P&gt;I am running into an wall trying to get a set analysis result that ignores selections and displays a sum of values in the current Fiscal Year.&amp;nbsp; After trying many results and solutions here in the community I must still be doing something wrong.&amp;nbsp; The field FiscalYear is formatted as Num() in the data load to avoid any date format problems.&amp;nbsp; The following expressions have been failures so far:&lt;/P&gt;
&lt;P&gt;=SUM({&amp;lt;FiscalYear = {"=MAX({1}FiscalYear)"}&amp;gt;}Value)&amp;nbsp; &amp;nbsp; &amp;nbsp; selections change the result&lt;/P&gt;
&lt;P&gt;=SUM({&amp;lt;FiscalYear = {"=1(MAX(FiscalYear))"}&amp;gt;}Value)&amp;nbsp; &amp;nbsp; &amp;nbsp;gives a result of zero&lt;/P&gt;
&lt;P&gt;I have tried many combinations of single quotes, double quotes, {1}, and {$} as I have seen in other examples, all with no success.&amp;nbsp; Please help.&lt;/P&gt;
&lt;P&gt;-Ryan&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 17:40:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Sum-of-Values-with-Max-Year-ignoring-selections/m-p/1871603#M71928</guid>
      <dc:creator>rcmartin</dc:creator>
      <dc:date>2021-12-15T17:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis, Sum of Values with Max(Year) ignoring selections</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Sum-of-Values-with-Max-Year-ignoring-selections/m-p/1871624#M71929</link>
      <description>&lt;P&gt;SUM({&lt;STRONG&gt;1&lt;/STRONG&gt;&amp;lt;FiscalYear = {"=MAX({1}FiscalYear)"}&amp;gt;}Value) or SUM(&lt;STRONG&gt;all&lt;/STRONG&gt; {&amp;lt;FiscalYear = {"=MAX({1}FiscalYear)"}&amp;gt;}Value)&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 18:15:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Sum-of-Values-with-Max-Year-ignoring-selections/m-p/1871624#M71929</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2021-12-15T18:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis, Sum of Values with Max(Year) ignoring selections</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Sum-of-Values-with-Max-Year-ignoring-selections/m-p/1871639#M71930</link>
      <description>&lt;P&gt;I appreciate the responses.&amp;nbsp; Unfortunately, they are not quite displaying the desired result of showing a&amp;nbsp;&lt;SPAN&gt;result that ignores selections and displays a sum of values in the current Fiscal Year.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;SUM({&lt;/SPAN&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;SPAN&gt;&amp;lt;FiscalYear = {"=MAX({1}FiscalYear)"}&amp;gt;}Value)&amp;nbsp; &amp;nbsp;is displaying a total for all records instead of current Fiscal year&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;SUM(&lt;STRONG&gt;all&lt;/STRONG&gt;&amp;nbsp;{&amp;lt;FiscalYear = {"=MAX({1}FiscalYear)"}&amp;gt;}Value)&amp;nbsp; is applying selections to the result&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 19:00:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Sum-of-Values-with-Max-Year-ignoring-selections/m-p/1871639#M71930</guid>
      <dc:creator>rcmartin</dc:creator>
      <dc:date>2021-12-15T19:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis, Sum of Values with Max(Year) ignoring selections</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Sum-of-Values-with-Max-Year-ignoring-selections/m-p/1871682#M71934</link>
      <description>&lt;P&gt;To further clarify, using the following INLINE table:&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [&lt;BR /&gt;ID, FiscalYear, Value&lt;BR /&gt;1,2019,1&lt;BR /&gt;2,2020,2&lt;BR /&gt;3,2021,3&lt;BR /&gt;4,2022,4&lt;BR /&gt;5,2022,5&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;I'm trying to construct an expression that provides the sum of records 4 and 5 for a value of 9 that ignores any selections made on app sheets.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 21:14:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Sum-of-Values-with-Max-Year-ignoring-selections/m-p/1871682#M71934</guid>
      <dc:creator>rcmartin</dc:creator>
      <dc:date>2021-12-15T21:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis, Sum of Values with Max(Year) ignoring selections</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Sum-of-Values-with-Max-Year-ignoring-selections/m-p/1871895#M71945</link>
      <description>&lt;P&gt;Ah, apologies - I thought you'd already worked out your inner set analysis and were just looking for how to ignore selections. I hadn't noticed the inner set analysis is incorrect.&lt;/P&gt;
&lt;P&gt;Try:&lt;/P&gt;
&lt;P&gt;SUM({1&amp;lt;FiscalYear = {"$(=MAX({1}FiscalYear))"}&amp;gt;}Value)&lt;/P&gt;
&lt;P&gt;Note that this will ignore &lt;STRONG&gt;all&lt;/STRONG&gt; selections, not just the ones on FiscalYear, as I thought that was what you wanted to do. If you're looking to just ignore the selections on FiscalYear, remove the first 1 from the set analysis. &lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Or_0-1639646881134.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/68702iD385B91D13CA8236/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Or_0-1639646881134.png" alt="Or_0-1639646881134.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Dec 2021 09:28:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Sum-of-Values-with-Max-Year-ignoring-selections/m-p/1871895#M71945</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2021-12-16T09:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis, Sum of Values with Max(Year) ignoring selections</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Sum-of-Values-with-Max-Year-ignoring-selections/m-p/1872071#M71961</link>
      <description>&lt;P&gt;Beautiful man, beautiful.&amp;nbsp; Thanks a million!!!&lt;/P&gt;</description>
      <pubDate>Thu, 16 Dec 2021 14:15:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Sum-of-Values-with-Max-Year-ignoring-selections/m-p/1872071#M71961</guid>
      <dc:creator>rcmartin</dc:creator>
      <dc:date>2021-12-16T14:15:24Z</dc:date>
    </item>
  </channel>
</rss>

