<?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: Need help on a formula in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-help-on-a-formula/m-p/678945#M1053675</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where do I put the expression?&amp;nbsp; Here is how I got the total revenue and total expenses.&lt;/P&gt;&lt;P&gt;I just asked for partial sums&amp;nbsp; under the presentation tab under Acct#. &lt;/P&gt;&lt;P&gt;&lt;IMG alt="SNAG-14102211183500.png" class="jive-image" height="200" src="https://community.qlik.com/legacyfs/online/69479_SNAG-14102211183500.png" style="width: 223.423423423423px; height: 200px;" width="224" /&gt;&lt;/P&gt;&lt;P&gt;Which gives me the totals for all Revenue and Expenses.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="SNAG-14102211152300.png" class="jive-image" height="411" src="https://community.qlik.com/legacyfs/online/69472_SNAG-14102211152300.png" style="height: 411px; width: 358.43023255814px;" width="358" /&gt;&lt;/P&gt;&lt;P&gt;Then under the Presentation tab I asked for partial Sums under the Type field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="SNAG-14102211231800.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/69480_SNAG-14102211231800.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I enter a formula in the (Label for Totals)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Oct 2014 15:24:54 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-10-22T15:24:54Z</dc:date>
    <item>
      <title>Need help on a formula</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-on-a-formula/m-p/678942#M1053672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On the table below, under each column, I want to subtract the Expense total from the Revenue total.&lt;/P&gt;&lt;P&gt;The totals under both of these are set under Presentation (Show Partial Sums).&amp;nbsp; &lt;/P&gt;&lt;P&gt;How do I get a total for the difference between the two types:&lt;/P&gt;&lt;P&gt;Example:&amp;nbsp; I want to show:&amp;nbsp;&amp;nbsp; Revenue&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 242,781.64&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="text-decoration: underline;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Expenses&amp;nbsp;&amp;nbsp; 913,268.59&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Net Use&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (670,486.95) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="SNAG-14102210351700.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/69470_SNAG-14102210351700.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 14:37:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-on-a-formula/m-p/678942#M1053672</guid>
      <dc:creator />
      <dc:date>2014-10-22T14:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on a formula</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-on-a-formula/m-p/678943#M1053673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your expression is something like this&amp;nbsp; sum(numbers)&amp;nbsp; , then you can change it to something like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(&amp;nbsp; Dimensionality()=0 ,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum( {$&amp;lt;Type={Revenue}&amp;gt;}&amp;nbsp; numbers) - sum( {$&amp;lt;Type={Expenses}&amp;gt;}&amp;nbsp; numbers) ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(numbers)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will give you a different formuala for the column footer total (dimensionality=0) and your regular expression for every other cell.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 14:41:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-on-a-formula/m-p/678943#M1053673</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-10-22T14:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on a formula</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-on-a-formula/m-p/678944#M1053674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Denise you can use:&lt;/P&gt;&lt;P&gt;If(Dimensionality()&amp;gt;0, Sum(Value),&lt;/P&gt;&lt;P&gt; Sum({&amp;lt;Type={'Revenue'}&amp;gt;} Value) - Sum({&amp;lt;Type={'Expenses'}&amp;gt;} Value)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change 'Value' for the field you are using&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 14:42:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-on-a-formula/m-p/678944#M1053674</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2014-10-22T14:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on a formula</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-on-a-formula/m-p/678945#M1053675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where do I put the expression?&amp;nbsp; Here is how I got the total revenue and total expenses.&lt;/P&gt;&lt;P&gt;I just asked for partial sums&amp;nbsp; under the presentation tab under Acct#. &lt;/P&gt;&lt;P&gt;&lt;IMG alt="SNAG-14102211183500.png" class="jive-image" height="200" src="https://community.qlik.com/legacyfs/online/69479_SNAG-14102211183500.png" style="width: 223.423423423423px; height: 200px;" width="224" /&gt;&lt;/P&gt;&lt;P&gt;Which gives me the totals for all Revenue and Expenses.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="SNAG-14102211152300.png" class="jive-image" height="411" src="https://community.qlik.com/legacyfs/online/69472_SNAG-14102211152300.png" style="height: 411px; width: 358.43023255814px;" width="358" /&gt;&lt;/P&gt;&lt;P&gt;Then under the Presentation tab I asked for partial Sums under the Type field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="SNAG-14102211231800.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/69480_SNAG-14102211231800.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I enter a formula in the (Label for Totals)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 15:24:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-on-a-formula/m-p/678945#M1053675</guid>
      <dc:creator />
      <dc:date>2014-10-22T15:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on a formula</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-on-a-formula/m-p/678946#M1053676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Denise, it should be your expression in the expressions tab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 15:27:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-on-a-formula/m-p/678946#M1053676</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2014-10-22T15:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on a formula</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-on-a-formula/m-p/678947#M1053677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try like this&lt;/P&gt;&lt;P&gt;If(Dimensionality()&amp;gt;0, Sum(Value),&lt;/P&gt;&lt;P&gt; fabs(Sum({&amp;lt;Type={'Revenue'}&amp;gt;} Value) - Sum({&amp;lt;Type={'Expenses'}&amp;gt;} Value))&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 15:29:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-on-a-formula/m-p/678947#M1053677</guid>
      <dc:creator />
      <dc:date>2014-10-22T15:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on a formula</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-on-a-formula/m-p/678948#M1053678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On your expression tab you will have an expression that calcualtes the cell values and the totals... it is that expression that you will change with the guidance from before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dimensionality()=0 condition will capture cells for TOTALs and calculate them differently.&amp;nbsp; THere is no separate expression just for totals. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so far you have done everything correctly, just replace the formula of the expression on the expression tab and see what happens next...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 15:57:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-on-a-formula/m-p/678948#M1053678</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-10-22T15:57:37Z</dc:date>
    </item>
  </channel>
</rss>

