<?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: Cant get condition working in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Cant-get-condition-working/m-p/2425206#M96074</link>
    <description>&lt;P&gt;You haven't said what the problem is/what unexpected result you are getting, but perhaps try this:&lt;/P&gt;
&lt;P&gt;Sum({$&amp;lt;JAHR={$(=(Max({1}JAHR)))}&amp;gt;}NETTOTOTAL)&lt;/P&gt;</description>
    <pubDate>Thu, 29 Feb 2024 10:11:10 GMT</pubDate>
    <dc:creator>henrikalmen</dc:creator>
    <dc:date>2024-02-29T10:11:10Z</dc:date>
    <item>
      <title>Set Analysis: Cant get condition working</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Cant-get-condition-working/m-p/2425177#M96066</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;i cant get this set analysis working. The commented out one is working, but i want sums for max available year, max available year -1, etc&lt;/P&gt;
&lt;P&gt;JAHR = year column&lt;BR /&gt;NETTOTOTAL = total column&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;BR /&gt;/*&lt;BR /&gt;Sum(&lt;BR /&gt;{$&amp;lt;&lt;BR /&gt;JAHR={2024}&lt;BR /&gt;&amp;gt;}&lt;BR /&gt;NETTOTOTAL&lt;BR /&gt;)&lt;BR /&gt;*/&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;Sum(&lt;BR /&gt;{$&amp;lt;&lt;BR /&gt;JAHR={"=$(=(Max(JAHR)))"}&lt;BR /&gt;&amp;gt;}&lt;BR /&gt;NETTOTOTAL&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The data is fetched from oracle&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;SELECT to_char(belegdatum, 'yyyy') AS Jahr,&lt;BR /&gt;...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any hint how to slove this?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 09:37:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Cant-get-condition-working/m-p/2425177#M96066</guid>
      <dc:creator>eikenberg</dc:creator>
      <dc:date>2024-02-29T09:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis: Cant get condition working</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Cant-get-condition-working/m-p/2425179#M96067</link>
      <description>&lt;P&gt;Try changing Jahr to a numeric value as Max() works with numeric values. Alternatively, try using MaxString().&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 09:41:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Cant-get-condition-working/m-p/2425179#M96067</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2024-02-29T09:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis: Cant get condition working</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Cant-get-condition-working/m-p/2425184#M96068</link>
      <description>&lt;P&gt;Hello, &lt;BR /&gt;I think the = is too much. &lt;BR /&gt;Try this:&lt;BR /&gt;&lt;SPAN&gt;Sum(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{$&amp;lt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;JAHR={"$(=(Max(JAHR))"}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NETTOTOTAL&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 10:12:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Cant-get-condition-working/m-p/2425184#M96068</guid>
      <dc:creator>Clement15</dc:creator>
      <dc:date>2024-02-29T10:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis: Cant get condition working</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Cant-get-condition-working/m-p/2425193#M96070</link>
      <description>&lt;P&gt;Can you try the below:&lt;BR /&gt;Sum({$&amp;lt;JAHR={$(=Max(JAHR))}&amp;gt;}NETTOTOTAL)&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 09:56:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Cant-get-condition-working/m-p/2425193#M96070</guid>
      <dc:creator>mohamedafzal</dc:creator>
      <dc:date>2024-02-29T09:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis: Cant get condition working</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Cant-get-condition-working/m-p/2425194#M96071</link>
      <description>&lt;P&gt;if you put the max(JAHR) in a text object what does it return?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 09:59:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Cant-get-condition-working/m-p/2425194#M96071</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2024-02-29T09:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis: Cant get condition working</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Cant-get-condition-working/m-p/2425205#M96073</link>
      <description>&lt;P&gt;This is working. Thanks.&lt;/P&gt;
&lt;P&gt;But the syntax is hard to read and confusing. While in the commented out version i get the correct results for 2024 as number and string, the dynamic only works with MaxString.&lt;/P&gt;
&lt;P&gt;Also a this is working&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;Sum({$&amp;lt;JAHR={"$(=MaxString(JAHR))"}&amp;gt;}NETTOTOTAL)&lt;/P&gt;
&lt;P&gt;while an pair of extra brackets will not&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;Sum({$&amp;lt;JAHR={"$((=MaxString(JAHR)))"}&amp;gt;}NETTOTOTAL)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 10:11:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Cant-get-condition-working/m-p/2425205#M96073</guid>
      <dc:creator>eikenberg</dc:creator>
      <dc:date>2024-02-29T10:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis: Cant get condition working</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Cant-get-condition-working/m-p/2425206#M96074</link>
      <description>&lt;P&gt;You haven't said what the problem is/what unexpected result you are getting, but perhaps try this:&lt;/P&gt;
&lt;P&gt;Sum({$&amp;lt;JAHR={$(=(Max({1}JAHR)))}&amp;gt;}NETTOTOTAL)&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 10:11:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Cant-get-condition-working/m-p/2425206#M96074</guid>
      <dc:creator>henrikalmen</dc:creator>
      <dc:date>2024-02-29T10:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis: Cant get condition working</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Cant-get-condition-working/m-p/2425253#M96081</link>
      <description>&lt;P&gt;I had gotten a total of 0 or a sum of all records.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your solution works too and reacts independent to already filtered data. Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 11:23:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Cant-get-condition-working/m-p/2425253#M96081</guid>
      <dc:creator>eikenberg</dc:creator>
      <dc:date>2024-02-29T11:23:26Z</dc:date>
    </item>
  </channel>
</rss>

