<?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: If - Sum - Aggr Formula in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-Sum-Aggr-Formula/m-p/86398#M509634</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not entirely sure I understand what you are after, would you be able to let us know what the expected output needs to look like?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Oct 2018 12:35:31 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-10-29T12:35:31Z</dc:date>
    <item>
      <title>If - Sum - Aggr Formula</title>
      <link>https://community.qlik.com/t5/QlikView/If-Sum-Aggr-Formula/m-p/86397#M509633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we have been loading the accounts from the balance sheet into Qlikview and I want to show some accounts depending on the +/- side either on the active or liability side. The trigger is sometimes the positive or negative total of some accounts.&lt;/P&gt;&lt;P&gt;The first example is working fine - if the amount by company, Year, Period, Account is less than 0, then it should go to Accountgroup 2211000 if it is positive, then to 1208000:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="216955" alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/216955_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;For the accounts 160106 and 170100, the total of both is giving the direction (reclass group 1) - if it is less than 0 to 2160000 and if it is positive than to 1220000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the formula I've applied:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="216956" alt="" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/216956_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qlikview uses the total of both to decide which account group to use, however this is only displayed in the line of one account (170100), but not on the level of 160106 - this one gets the 'xxx'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="216957" alt="" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/216957_pastedImage_2.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do I need to change in the formula, so that the account 160106 gets as well the AccountGroup attribute?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thansk to you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2018 10:29:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Sum-Aggr-Formula/m-p/86397#M509633</guid>
      <dc:creator>christiana</dc:creator>
      <dc:date>2018-10-29T10:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: If - Sum - Aggr Formula</title>
      <link>https://community.qlik.com/t5/QlikView/If-Sum-Aggr-Formula/m-p/86398#M509634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not entirely sure I understand what you are after, would you be able to let us know what the expected output needs to look like?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2018 12:35:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Sum-Aggr-Formula/m-p/86398#M509634</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-10-29T12:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: If - Sum - Aggr Formula</title>
      <link>https://community.qlik.com/t5/QlikView/If-Sum-Aggr-Formula/m-p/86399#M509638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Of course - I'm expecting this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/216979_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2018 12:52:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Sum-Aggr-Formula/m-p/86399#M509638</guid>
      <dc:creator>christiana</dc:creator>
      <dc:date>2018-10-29T12:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: If - Sum - Aggr Formula</title>
      <link>https://community.qlik.com/t5/QlikView/If-Sum-Aggr-Formula/m-p/86400#M509641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this for your calculated dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=if(Account='161100' and Amount&amp;lt;0, '2211000',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(Account='161100' and Amount&amp;gt;0, '1208000',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(Account='154000' and Amount&amp;lt;0, '2211000',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(Account='154000' and Amount&amp;gt;0, '1208000',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(Reclass='1' and aggr(&lt;SPAN style="color: #ff0000;"&gt;NODISTINCT&lt;/SPAN&gt; sum(Amount), Reclass, %Key)&amp;gt;0, '1220000',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(Reclass='1' and aggr(&lt;SPAN style="color: #ff0000;"&gt;NODISTINCT&lt;/SPAN&gt; sum(Amount), Reclass, %Key)&amp;lt;0, '2160000', 'xxx'))))))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/216980_Capture.PNG" style="height: 200px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2018 12:54:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Sum-Aggr-Formula/m-p/86400#M509641</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-10-29T12:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: If - Sum - Aggr Formula</title>
      <link>https://community.qlik.com/t5/QlikView/If-Sum-Aggr-Formula/m-p/86401#M509646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's working!&lt;/P&gt;&lt;P&gt;Many many thanks to you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you mind explaining me what the Nodistinct is doing? I never heard about it....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2018 12:58:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Sum-Aggr-Formula/m-p/86401#M509646</guid>
      <dc:creator>christiana</dc:creator>
      <dc:date>2018-10-29T12:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: If - Sum - Aggr Formula</title>
      <link>https://community.qlik.com/t5/QlikView/If-Sum-Aggr-Formula/m-p/86402#M509648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check it here&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/56129"&gt;What NODISTINCT parameter does in AGGR function?&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2018 13:12:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Sum-Aggr-Formula/m-p/86402#M509648</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-10-29T13:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: If - Sum - Aggr Formula</title>
      <link>https://community.qlik.com/t5/QlikView/If-Sum-Aggr-Formula/m-p/86403#M509649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2018 13:53:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Sum-Aggr-Formula/m-p/86403#M509649</guid>
      <dc:creator>christiana</dc:creator>
      <dc:date>2018-10-29T13:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: If - Sum - Aggr Formula</title>
      <link>https://community.qlik.com/t5/QlikView/If-Sum-Aggr-Formula/m-p/86404#M509650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem at all &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2018 13:54:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Sum-Aggr-Formula/m-p/86404#M509650</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-10-29T13:54:58Z</dc:date>
    </item>
  </channel>
</rss>

