<?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 Problem with Total in Calculation in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Problem-with-Total-in-Calculation/m-p/2475921#M100208</link>
    <description>&lt;P&gt;Hi I have an expression in the front-end which compares two expressions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the rangemax() of these two expressions is equal to 0, we show 1 in the new column.&lt;/P&gt;
&lt;P&gt;Else we take the rangemax() of the two expressions and show the greater value.&lt;/P&gt;
&lt;P&gt;--&lt;/P&gt;
&lt;P&gt;If(&lt;BR /&gt;RangeMax($(expA),$(expB))=0,'1',&lt;BR /&gt;RangeMax($(expA),$(expB))&lt;/P&gt;
&lt;P&gt;--&lt;/P&gt;
&lt;P&gt;What we are seeing is that in the total of this expression, the '1' isn't being counted into the total for the rows where the first condition is met.&lt;/P&gt;
&lt;P&gt;Any ideas?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Aug 2024 18:59:02 GMT</pubDate>
    <dc:creator>bmac1</dc:creator>
    <dc:date>2024-08-12T18:59:02Z</dc:date>
    <item>
      <title>Problem with Total in Calculation</title>
      <link>https://community.qlik.com/t5/App-Development/Problem-with-Total-in-Calculation/m-p/2475921#M100208</link>
      <description>&lt;P&gt;Hi I have an expression in the front-end which compares two expressions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the rangemax() of these two expressions is equal to 0, we show 1 in the new column.&lt;/P&gt;
&lt;P&gt;Else we take the rangemax() of the two expressions and show the greater value.&lt;/P&gt;
&lt;P&gt;--&lt;/P&gt;
&lt;P&gt;If(&lt;BR /&gt;RangeMax($(expA),$(expB))=0,'1',&lt;BR /&gt;RangeMax($(expA),$(expB))&lt;/P&gt;
&lt;P&gt;--&lt;/P&gt;
&lt;P&gt;What we are seeing is that in the total of this expression, the '1' isn't being counted into the total for the rows where the first condition is met.&lt;/P&gt;
&lt;P&gt;Any ideas?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 18:59:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Problem-with-Total-in-Calculation/m-p/2475921#M100208</guid>
      <dc:creator>bmac1</dc:creator>
      <dc:date>2024-08-12T18:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Total in Calculation</title>
      <link>https://community.qlik.com/t5/App-Development/Problem-with-Total-in-Calculation/m-p/2475936#M100214</link>
      <description>&lt;P&gt;Pl share the complete expression, do you have anything before If( statement.&lt;/P&gt;
&lt;P&gt;Do you really need if condition here? isn't it same as RangeMax(&lt;SPAN&gt;$(expA),$(expB),1)?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If both expA and expB are &amp;lt;=0, the final value will be automatically '1' in above expression&amp;nbsp; Ishared as '1' is higher than rest of the two.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Let me know if I am missing something or misunderstood the need here.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 19:59:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Problem-with-Total-in-Calculation/m-p/2475936#M100214</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2024-08-12T19:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Total in Calculation</title>
      <link>https://community.qlik.com/t5/App-Development/Problem-with-Total-in-Calculation/m-p/2475958#M100217</link>
      <description>&lt;P&gt;On the total line, the expression is being run over all the data, so your result makes sense. If you want to add the 1's (which are really zero values) from the previous lines, for this expression change the Totals Mode from "Auto" to "Sum".&lt;/P&gt;
&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 23:37:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Problem-with-Total-in-Calculation/m-p/2475958#M100217</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2024-08-12T23:37:48Z</dc:date>
    </item>
  </channel>
</rss>

