<?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: Set formula operation Error in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-formula-operation-Error/m-p/1101387#M365344</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Although this is answered, but just wanted to add that you might benefit from doing a straight subtraction -&amp;gt; &lt;STRONG&gt;A-B&lt;/STRONG&gt; to using &lt;STRONG&gt;RangeSum(A, -B)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;=RangeSum(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Sum(Value)/1000000,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: inherit; font-style: inherit; line-height: 1.5em; font-size: 13.3333px;"&gt;-(Sum({$&amp;lt;source = {'Costs_PC'}&amp;gt;}myVal) + Sum({$&amp;lt; source = {'FTE_Activity'}&amp;gt;}myVal)/&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Sum(TOTAL {1&amp;lt; source = {'FTE_Activity'}, AsOf = {"=$(=GetFieldSelections(AsOf))"} &amp;gt;}myVal) *&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Sum(TOTAL {1&amp;lt; source = {'Allocated_Costs'}, AsOf = {"=$(=GetFieldSelections(AsOf))"} &amp;gt;}myVal))&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;)&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 May 2016 10:13:52 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-05-19T10:13:52Z</dc:date>
    <item>
      <title>Set formula operation Error</title>
      <link>https://community.qlik.com/t5/QlikView/Set-formula-operation-Error/m-p/1101384#M365341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to do a difference of two expressions but the result is totally different that i expect:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/125011_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the expression:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;1: &lt;STRONG&gt;=SUM( Value)/1000000&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;2: &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;STRONG&gt;=SUM({$&amp;lt;source = {'Costs_PC'}&amp;gt;}myVal)+SUM( { $&amp;lt; source = {'FTE_Activity'}&amp;gt;}myVal)/&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;SUM( TOTAL { 1&amp;lt; source = {'FTE_Activity'}, AsOf = {"=$(=GetFieldSelections(AsOf))"} &amp;gt;}myVal)*&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SUM( TOTAL { 1&amp;lt; source = {'Allocated_Costs'}, AsOf = {"=$(=GetFieldSelections(AsOf))"} &amp;gt;}myVal)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;3: &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;STRONG&gt;=(SUM(Value))/1000000 - SUM({$&amp;lt;source = {'Costs_PC'}&amp;gt;}myVal) + SUM( { $&amp;lt; source = {'FTE_Activity'}&amp;gt;}myVal)/&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;SUM( TOTAL { 1&amp;lt; source = {'FTE_Activity'}, AsOf = {"=$(=GetFieldSelections(AsOf))"} &amp;gt;}myVal)*&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SUM( TOTAL { 1&amp;lt; source = {'Allocated_Costs'}, AsOf = {"=$(=GetFieldSelections(AsOf))"} &amp;gt;}myVal)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have a idea please ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help,&lt;/P&gt;&lt;P&gt;Sébastien.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2016 08:08:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-formula-operation-Error/m-p/1101384#M365341</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-19T08:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: Set formula operation Error</title>
      <link>https://community.qlik.com/t5/QlikView/Set-formula-operation-Error/m-p/1101385#M365342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;=(SUM(Value))/1000000 - SUM({$&amp;lt;source = {'Costs_PC'}&amp;gt;}myVal) - SUM( { $&amp;lt; source = {'FTE_Activity'}&amp;gt;}myVal)/&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;SUM( TOTAL { 1&amp;lt; source = {'FTE_Activity'}, AsOf = {"=$(=GetFieldSelections(AsOf))"} &amp;gt;}myVal)*&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;SUM( TOTAL { 1&amp;lt; source = {'Allocated_Costs'}, AsOf = {"=$(=GetFieldSelections(AsOf))"} &amp;gt;}myVal)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;Use this. You missed one minus sign.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;UPDATE:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;A&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;B+C&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;=A-B-C&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2016 08:12:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-formula-operation-Error/m-p/1101385#M365342</guid>
      <dc:creator>MindaugasBacius</dc:creator>
      <dc:date>2016-05-19T08:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: Set formula operation Error</title>
      <link>https://community.qlik.com/t5/QlikView/Set-formula-operation-Error/m-p/1101386#M365343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot, it was exactly that &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/laugh.png" /&gt; !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sébastien.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2016 08:22:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-formula-operation-Error/m-p/1101386#M365343</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-19T08:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Set formula operation Error</title>
      <link>https://community.qlik.com/t5/QlikView/Set-formula-operation-Error/m-p/1101387#M365344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Although this is answered, but just wanted to add that you might benefit from doing a straight subtraction -&amp;gt; &lt;STRONG&gt;A-B&lt;/STRONG&gt; to using &lt;STRONG&gt;RangeSum(A, -B)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;=RangeSum(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Sum(Value)/1000000,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: inherit; font-style: inherit; line-height: 1.5em; font-size: 13.3333px;"&gt;-(Sum({$&amp;lt;source = {'Costs_PC'}&amp;gt;}myVal) + Sum({$&amp;lt; source = {'FTE_Activity'}&amp;gt;}myVal)/&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Sum(TOTAL {1&amp;lt; source = {'FTE_Activity'}, AsOf = {"=$(=GetFieldSelections(AsOf))"} &amp;gt;}myVal) *&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Sum(TOTAL {1&amp;lt; source = {'Allocated_Costs'}, AsOf = {"=$(=GetFieldSelections(AsOf))"} &amp;gt;}myVal))&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;)&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2016 10:13:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-formula-operation-Error/m-p/1101387#M365344</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-19T10:13:52Z</dc:date>
    </item>
  </channel>
</rss>

