<?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: Sum with (dynamic) set expression returns &amp;quot;-&amp;quot; when more than one ID is selected in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Sum-with-dynamic-set-expression-returns-quot-quot-when-more-than/m-p/1919654#M75682</link>
    <description>&lt;P&gt;Yes, but unfortunetly this doesn't work. The expression is not evaluated probably if done like that unfortunately.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Apr 2022 07:14:53 GMT</pubDate>
    <dc:creator>LucasS</dc:creator>
    <dc:date>2022-04-19T07:14:53Z</dc:date>
    <item>
      <title>Sum with (dynamic) set expression returns "-" when more than one ID is selected</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-with-dynamic-set-expression-returns-quot-quot-when-more-than/m-p/1910997#M75075</link>
      <description>&lt;P&gt;Hi Community!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have this unexpected behavior when evaluating a load script expression in table.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I've generated the expression in the load script and then stored it in a variable which I call in the table like so:&amp;nbsp;&lt;BR /&gt;(I've done this because the "Set Expression Here" changes for each ID).&lt;/P&gt;
&lt;P&gt;1.&lt;/P&gt;
&lt;P&gt;Load&lt;BR /&gt;sum(aggr(sum({1&amp;lt;"Set Expression Here"&amp;gt;}Value),Value)) as Expression,&lt;BR /&gt;ID;&lt;/P&gt;
&lt;P&gt;2.&lt;/P&gt;
&lt;P&gt;vAppCalculate: =Expression&lt;/P&gt;
&lt;P&gt;3.&lt;/P&gt;
&lt;P&gt;And then in my table I add $(vAppCalculate) as a measure.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;This works whenever I select 1 ID. When one ID is selected&amp;nbsp;$(vAppCalculate) returns 0, because the set expression isn't fulfilled. If I fulfill the expression&amp;nbsp; $(vAppCalculate) correctly returns the Value.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However as soon as I enable all ID's then $(vAppCalculate)&amp;nbsp; returns "-" for all ID's instead of the expected 0 even when the set expression is fulfilled.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks in advance!&lt;/P&gt;
&lt;P&gt;- Lucas&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 08:19:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-with-dynamic-set-expression-returns-quot-quot-when-more-than/m-p/1910997#M75075</guid>
      <dc:creator>LucasS</dc:creator>
      <dc:date>2022-03-29T08:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: Sum with (dynamic) set expression returns "-" when more than one ID is selected</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-with-dynamic-set-expression-returns-quot-quot-when-more-than/m-p/1919251#M75619</link>
      <description>&lt;P&gt;You cannot have a different formula for each row in your table&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Expressions are evaluated only once per chart and not once per row,&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2022 08:39:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-with-dynamic-set-expression-returns-quot-quot-when-more-than/m-p/1919251#M75619</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2022-04-18T08:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: Sum with (dynamic) set expression returns "-" when more than one ID is selected</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-with-dynamic-set-expression-returns-quot-quot-when-more-than/m-p/1919263#M75623</link>
      <description>&lt;P&gt;same logic can u define in front end object.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;sum(aggr(sum({1&amp;lt;"Set Expression Here"&amp;gt;}Value),Value))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2022 08:59:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-with-dynamic-set-expression-returns-quot-quot-when-more-than/m-p/1919263#M75623</guid>
      <dc:creator>anat</dc:creator>
      <dc:date>2022-04-18T08:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sum with (dynamic) set expression returns "-" when more than one ID is selected</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-with-dynamic-set-expression-returns-quot-quot-when-more-than/m-p/1919654#M75682</link>
      <description>&lt;P&gt;Yes, but unfortunetly this doesn't work. The expression is not evaluated probably if done like that unfortunately.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 07:14:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-with-dynamic-set-expression-returns-quot-quot-when-more-than/m-p/1919654#M75682</guid>
      <dc:creator>LucasS</dc:creator>
      <dc:date>2022-04-19T07:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: Sum with (dynamic) set expression returns "-" when more than one ID is selected</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-with-dynamic-set-expression-returns-quot-quot-when-more-than/m-p/1919656#M75683</link>
      <description>&lt;P&gt;Okay, in that case it seems impossible to achieve.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 07:16:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-with-dynamic-set-expression-returns-quot-quot-when-more-than/m-p/1919656#M75683</guid>
      <dc:creator>LucasS</dc:creator>
      <dc:date>2022-04-19T07:16:23Z</dc:date>
    </item>
  </channel>
</rss>

