<?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 assistance on formula in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-assistance-on-formula/m-p/800765#M1028600</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Hi Denise,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Have you tried add a new expression with the formula to obtain the difference? &lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;I don't know if is possible change the "Subtotal" or "Total" (QV default)&amp;nbsp; to other expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;You can add a new expression with something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(TOTAL &amp;lt;Dimension&amp;gt;[Revenue]) - &lt;SPAN style="font-size: 13.3333330154419px;"&gt;sum(TOTAL &amp;lt;Dimension&amp;gt;[Expenses])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that this can be useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Enrique&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Feb 2015 21:31:16 GMT</pubDate>
    <dc:creator>eespiritu</dc:creator>
    <dc:date>2015-02-26T21:31:16Z</dc:date>
    <item>
      <title>Need assistance on formula</title>
      <link>https://community.qlik.com/t5/QlikView/Need-assistance-on-formula/m-p/800764#M1028599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV style="direction: ltr; border-width: 100%;"&gt;&lt;DIV style="direction: ltr; margin-top: 0in; margin-left: 0in; width: 7.1048in;"&gt;&lt;DIV style="direction: ltr; margin-top: 0in; margin-left: 0in; width: 7.1048in;"&gt;&lt;P style="margin: 0in;"&gt;I have the follow pivot table.&amp;nbsp; For my final total, I need the difference between Revenue and Expenses.&lt;/P&gt;&lt;P style="margin: 0in;"&gt;When I ask for a subtotal by TYPE, (rev and exp) it adds the two totals together.&lt;/P&gt;&lt;P style="margin: 0in;"&gt;&lt;/P&gt;&lt;P style="margin: 0in;"&gt;&lt;IMG class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/79360_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 21:10:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-assistance-on-formula/m-p/800764#M1028599</guid>
      <dc:creator />
      <dc:date>2015-02-26T21:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: Need assistance on formula</title>
      <link>https://community.qlik.com/t5/QlikView/Need-assistance-on-formula/m-p/800765#M1028600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Hi Denise,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Have you tried add a new expression with the formula to obtain the difference? &lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;I don't know if is possible change the "Subtotal" or "Total" (QV default)&amp;nbsp; to other expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;You can add a new expression with something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(TOTAL &amp;lt;Dimension&amp;gt;[Revenue]) - &lt;SPAN style="font-size: 13.3333330154419px;"&gt;sum(TOTAL &amp;lt;Dimension&amp;gt;[Expenses])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that this can be useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Enrique&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 21:31:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-assistance-on-formula/m-p/800765#M1028600</guid>
      <dc:creator>eespiritu</dc:creator>
      <dc:date>2015-02-26T21:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: Need assistance on formula</title>
      <link>https://community.qlik.com/t5/QlikView/Need-assistance-on-formula/m-p/800766#M1028601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The easiest way is to keep Expenses data negative.&lt;BR /&gt;An alternative, use conditional expression based on dimensionality, which is 0 for total:&lt;BR /&gt;if(dimensionality()=0, &amp;lt;expression for total&amp;gt;, &amp;lt;expression for rows&amp;gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 21:38:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-assistance-on-formula/m-p/800766#M1028601</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-26T21:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: Need assistance on formula</title>
      <link>https://community.qlik.com/t5/QlikView/Need-assistance-on-formula/m-p/800767#M1028602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Hi Denise&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Probably you can do like this.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Create a formula for your value field depend on the type&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Formula name(Variable) : eModValue&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;if(Type='Revenue',value,-1*value) &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Call the formula in the pivot table expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;sum($(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;eModValue&lt;/SPAN&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;In that way, Pivot table will &lt;/SPAN&gt;subtract&lt;SPAN style="font-size: 10pt;"&gt; the values and gives you the expected answer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Regards&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Harshana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2015 00:52:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-assistance-on-formula/m-p/800767#M1028602</guid>
      <dc:creator />
      <dc:date>2015-02-27T00:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Need assistance on formula</title>
      <link>https://community.qlik.com/t5/QlikView/Need-assistance-on-formula/m-p/800768#M1028603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome!&amp;nbsp; This did it.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2015 15:25:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-assistance-on-formula/m-p/800768#M1028603</guid>
      <dc:creator />
      <dc:date>2015-02-27T15:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: Need assistance on formula</title>
      <link>https://community.qlik.com/t5/QlikView/Need-assistance-on-formula/m-p/800769#M1028604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Denise&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am happy that is work you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can make that as a correct answer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Harshana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 01:27:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-assistance-on-formula/m-p/800769#M1028604</guid>
      <dc:creator />
      <dc:date>2015-03-03T01:27:38Z</dc:date>
    </item>
  </channel>
</rss>

