<?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: Variable in % calculate expression giving wrong value in Archived Groups</title>
    <link>https://community.qlik.com/t5/Archived-Groups/Variable-in-calculate-expression-giving-wrong-value/m-p/747799#M3341</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First i added variables &lt;SPAN style="font-size: 13.3333330154419px;"&gt;asale, &lt;SPAN style="font-size: 13.3333330154419px;"&gt;adir&lt;STRONG&gt; etc. All are showing correct values. They are SET Analysis expressions.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then another variables -&lt;/P&gt;&lt;P&gt;SET acmg =&amp;nbsp; -$(asale)- $(adir)- $(aidrt); &lt;/P&gt;&lt;P&gt;SET bcmg =&amp;nbsp;&amp;nbsp; $(bsale)-$(bdir)-$(bidrt);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;This also showing correct values as shown below in pic. But even when i tried to subtract each other its showing wrong figure - It should show - -2213658.5. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Rest I finally need &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;-1+($(acmg)/$(bcmg)) as to show 31.3 %. I can upload sense document cos of its size.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/79972_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/79973_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;IMG class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/79974_pastedImage_2.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Mar 2015 09:29:43 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-03-05T09:29:43Z</dc:date>
    <item>
      <title>Variable in % calculate expression giving wrong value</title>
      <link>https://community.qlik.com/t5/Archived-Groups/Variable-in-calculate-expression-giving-wrong-value/m-p/747797#M3339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Variable $(acmg) and $(bcmg) are giving correct values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Burt for % expression when i use it as below expression it is showing wrong value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-1+($(=acmg)/$(=bcmg)) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest solution.&lt;/P&gt;&lt;P&gt;Shiv&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2025 14:48:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Archived-Groups/Variable-in-calculate-expression-giving-wrong-value/m-p/747797#M3339</guid>
      <dc:creator />
      <dc:date>2025-07-23T14:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in % calculate expression giving wrong value</title>
      <link>https://community.qlik.com/t5/Archived-Groups/Variable-in-calculate-expression-giving-wrong-value/m-p/747798#M3340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you need more help post more information. A qlikview document that demonstrates the problem will be most useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 09:05:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Archived-Groups/Variable-in-calculate-expression-giving-wrong-value/m-p/747798#M3340</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-03-05T09:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in % calculate expression giving wrong value</title>
      <link>https://community.qlik.com/t5/Archived-Groups/Variable-in-calculate-expression-giving-wrong-value/m-p/747799#M3341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First i added variables &lt;SPAN style="font-size: 13.3333330154419px;"&gt;asale, &lt;SPAN style="font-size: 13.3333330154419px;"&gt;adir&lt;STRONG&gt; etc. All are showing correct values. They are SET Analysis expressions.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then another variables -&lt;/P&gt;&lt;P&gt;SET acmg =&amp;nbsp; -$(asale)- $(adir)- $(aidrt); &lt;/P&gt;&lt;P&gt;SET bcmg =&amp;nbsp;&amp;nbsp; $(bsale)-$(bdir)-$(bidrt);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;This also showing correct values as shown below in pic. But even when i tried to subtract each other its showing wrong figure - It should show - -2213658.5. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Rest I finally need &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;-1+($(acmg)/$(bcmg)) as to show 31.3 %. I can upload sense document cos of its size.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/79972_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/79973_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;IMG class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/79974_pastedImage_2.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 09:29:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Archived-Groups/Variable-in-calculate-expression-giving-wrong-value/m-p/747799#M3341</guid>
      <dc:creator />
      <dc:date>2015-03-05T09:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in % calculate expression giving wrong value</title>
      <link>https://community.qlik.com/t5/Archived-Groups/Variable-in-calculate-expression-giving-wrong-value/m-p/747800#M3342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its resolved.. One of my Set Expression was -ve. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried -($(=bcmg)+$(=acmg)) and it worked well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 10:08:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Archived-Groups/Variable-in-calculate-expression-giving-wrong-value/m-p/747800#M3342</guid>
      <dc:creator />
      <dc:date>2015-03-05T10:08:07Z</dc:date>
    </item>
  </channel>
</rss>

