<?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: Conditional Total Result in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditional-Total-Result/m-p/1349033#M835595</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Anand,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for trying to help me!&lt;/P&gt;&lt;P&gt;I tried what you said but it didn't really work, in your example the value is the correct one but is a consequence of having 2 lines only. I edited and added a third one in my example to make it more complete. As soon as I tried what you said with a third line it promptly summed to 270.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 28 May 2017 17:10:37 GMT</pubDate>
    <dc:creator>afbraga1</dc:creator>
    <dc:date>2017-05-28T17:10:37Z</dc:date>
    <item>
      <title>Conditional Total Result</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Total-Result/m-p/1349030#M835592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been having an issue manipulating the total value. In the example I've attached the total result is 240, but I don't want that value.&lt;/P&gt;&lt;P&gt;I put a condition on the #Value1/hour column: If Error &amp;lt;&amp;gt; ' ' or Time(min) &amp;lt;&amp;gt; 0, (#Value1*60) / Time(min). The issue is I only want to calculate the lines where the condition verifies. Since the line 2 has Time=0, I don't want its Value1 because it will distort my results. What I expect to see in column Value1/hour as a total is (70*60)/30=140 and not (100*60)/30=200, i.e, only the lines in which the condition would verify. I also toyed with Total Mode, but it doesn't work for what I want. How can I do this? Any doubts feel free to ask, I'll try to explain better. Thank you very much!&lt;/P&gt;&lt;P&gt;EDIT: edited to have a better example&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/165023_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Total-Result/m-p/1349030#M835592</guid>
      <dc:creator>afbraga1</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Total Result</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Total-Result/m-p/1349031#M835593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your expression change some thing this ways&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=IF(Error&amp;lt;&amp;gt;' ' or [Time(min)]&amp;lt;&amp;gt;0, Sum(&lt;STRONG&gt;aggr&lt;/STRONG&gt;( sum(#Value1)*60/sum([Time(min)]),&lt;STRONG&gt;DocumentNr&lt;/STRONG&gt;)) )&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use AGGR here &lt;/P&gt;&lt;P&gt;Check attached file also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 May 2017 16:33:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Total-Result/m-p/1349031#M835593</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2017-05-28T16:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Total Result</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Total-Result/m-p/1349032#M835594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try sum of rows in the total mode, it works normally?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 May 2017 16:35:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Total-Result/m-p/1349032#M835594</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2017-05-28T16:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Total Result</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Total-Result/m-p/1349033#M835595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Anand,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for trying to help me!&lt;/P&gt;&lt;P&gt;I tried what you said but it didn't really work, in your example the value is the correct one but is a consequence of having 2 lines only. I edited and added a third one in my example to make it more complete. As soon as I tried what you said with a third line it promptly summed to 270.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 May 2017 17:10:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Total-Result/m-p/1349033#M835595</guid>
      <dc:creator>afbraga1</dc:creator>
      <dc:date>2017-05-28T17:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Total Result</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Total-Result/m-p/1349034#M835596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did, but I am diving values and that is not how I am supposed to get the total.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 May 2017 17:11:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Total-Result/m-p/1349034#M835596</guid>
      <dc:creator>afbraga1</dc:creator>
      <dc:date>2017-05-28T17:11:30Z</dc:date>
    </item>
  </channel>
</rss>

