<?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: wrong sum in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/wrong-sum/m-p/107808#M757638</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks arjun...&amp;nbsp; Not yet tested.&amp;nbsp;&amp;nbsp;&amp;nbsp; i will test and update you &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, 10 Sep 2018 13:49:08 GMT</pubDate>
    <dc:creator>soniasweety</dc:creator>
    <dc:date>2018-09-10T13:49:08Z</dc:date>
    <item>
      <title>wrong sum</title>
      <link>https://community.qlik.com/t5/QlikView/wrong-sum/m-p/107799#M757629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/tresesco" target="_blank"&gt;tresesco&lt;/A&gt; &lt;SPAN class="icon-status-icon icon-mvp" style="margin: 0 0 0 4px; font-weight: inherit; font-style: inherit; font-size: 11.7px; font-family: inherit;" title="Mvp"&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;A href="https://community.qlik.com/qlik-users/226258" target="_blank"&gt;felipedl&lt;/A&gt;‌&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;A href="https://community.qlik.com/qlik-users/34510" target="_blank"&gt;kaushik.solanki&lt;/A&gt;‌&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;A href="https://community.qlik.com/qlik-users/108195" target="_blank"&gt;jyothish8807&lt;/A&gt;‌&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;A href="https://community.qlik.com/qlik-users/210420" target="_blank"&gt;neelamsaroha1575&lt;/A&gt;‌&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;A href="https://community.qlik.com/qlik-users/284084" target="_blank"&gt;dx.anupam&lt;/A&gt;‌&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;A href="https://community.qlik.com/qlik-users/248915" target="_blank"&gt;balabhaskarqlik&lt;/A&gt;‌&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;A href="https://community.qlik.com/people/simone.spanio" target="_blank"&gt;simone.spanio&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;i am using&amp;nbsp;&amp;nbsp; pivot table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension&lt;IMG __jive_id="213056" alt="sumtotal.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/213056_sumtotal.PNG" style="height: auto;" /&gt; :&lt;/P&gt;&lt;P&gt;Product&lt;/P&gt;&lt;P&gt;Measure: 1&amp;nbsp;&amp;nbsp; :&lt;/P&gt;&lt;P&gt;service&amp;nbsp; :&lt;/P&gt;&lt;P&gt;=If(sum({&amp;lt;SERVICE_TYPE={'Service'}&amp;gt;}Amount)/1000000000 &amp;gt; 1,&lt;/P&gt;&lt;P&gt;Num(round(sum({&amp;lt;SERVICE_TYPE={'Service'}&amp;gt;}Amount)/1000000000),'$ ####B'),&lt;/P&gt;&lt;P&gt;If(sum({&amp;lt;SERVICE_TYPE={'Service'}&amp;gt;}Amount)/1000000&amp;gt;1,&lt;/P&gt;&lt;P&gt;Num(round(sum({&amp;lt;SERVICE_TYPE={'Service'}&amp;gt;}Amount)/1000000),'$ ####M'),&lt;/P&gt;&lt;P&gt;Num(round(sum({&amp;lt;SERVICE_TYPE={'Service'}&amp;gt;}Amount)/1000),'$ ####K')))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Measure2:&lt;/P&gt;&lt;P&gt;HW:&lt;/P&gt;&lt;P&gt;=If(sum({&amp;lt;SERVICE_TYPE={'Hardware'}&amp;gt;}Amount)/1000000000 &amp;gt; 1,&lt;/P&gt;&lt;P&gt;Num(round(sum({&amp;lt;SERVICE_TYPE={'Hardware'}&amp;gt;}Amount)/1000000000),'$ ####B'),&lt;/P&gt;&lt;P&gt;If(sum({&amp;lt;SERVICE_TYPE={'Hardware'}&amp;gt;}Amount)/1000000&amp;gt;1,&lt;/P&gt;&lt;P&gt;Num(round(sum({&amp;lt;SERVICE_TYPE={'Hardware'}&amp;gt;}Amount)/1000000),'$ ####M'),&lt;/P&gt;&lt;P&gt;Num(round(sum({&amp;lt;SERVICE_TYPE={'Hardware'}&amp;gt;}Amount)/1000),'$ ####K')))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Measure 3:&amp;nbsp; this is total&amp;nbsp; sum(Measure1)+sum(Measure2)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; or column1 +column2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(sum(USD_Amount)/1000000000 &amp;gt; 1,&lt;/P&gt;&lt;P&gt;Num(round(sum(Amount)/1000000000),'$ ####B'),&lt;/P&gt;&lt;P&gt;If(sum(Amount)/1000000&amp;gt;1,&lt;/P&gt;&lt;P&gt;Num(round(sum(Amount)/1000000),'$ ####M'),&lt;/P&gt;&lt;P&gt;Num(round(sum(Amount)/1000),'$ ####K')))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff9900;"&gt;My issue is&amp;nbsp;&amp;nbsp; Measure3&amp;nbsp; Total&amp;nbsp; is not giving the correct result&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; you can refer the screen shot.&amp;nbsp;&amp;nbsp; what is the issue?&amp;nbsp; can anyone help me on this? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sony&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/wrong-sum/m-p/107799#M757629</guid>
      <dc:creator>soniasweety</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: wrong sum</title>
      <link>https://community.qlik.com/t5/QlikView/wrong-sum/m-p/107800#M757630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;did you try using SERVICE_TYPE as horizontal dimension instead of creating separate expressions each reducing &lt;SPAN style="font-size: 13.3333px;"&gt;SERVICE_TYPE to a single value &lt;/SPAN&gt;with set expressions?&lt;/P&gt;&lt;P&gt;The total then could be calculated with the standard partial sum option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Sep 2018 17:14:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/wrong-sum/m-p/107800#M757630</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2018-09-08T17:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: wrong sum</title>
      <link>https://community.qlik.com/t5/QlikView/wrong-sum/m-p/107801#M757631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i want to show&amp;nbsp; 4 tables&amp;nbsp;&amp;nbsp; to user s&amp;nbsp;&amp;nbsp; --- all four tables giving me wrong totals&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 is By&amp;nbsp;&amp;nbsp; Quarter&lt;/P&gt;&lt;P&gt;2 is by Region&lt;/P&gt;&lt;P&gt;3 Opp_type&lt;/P&gt;&lt;P&gt;4 is By&amp;nbsp; SS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not by servicetype &lt;IMG alt="typ.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/213057_typ.PNG" style="height: 349px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Sep 2018 17:19:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/wrong-sum/m-p/107801#M757631</guid>
      <dc:creator>soniasweety</dc:creator>
      <dc:date>2018-09-08T17:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: wrong sum</title>
      <link>https://community.qlik.com/t5/QlikView/wrong-sum/m-p/107802#M757632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if i remove the&amp;nbsp; if condition and&amp;nbsp; that num formating all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its giving me correct sum and correct total..&amp;nbsp;&amp;nbsp; May be issues with Number formatting&amp;nbsp; how to change to tthe correct expression?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Sep 2018 17:34:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/wrong-sum/m-p/107802#M757632</guid>
      <dc:creator>soniasweety</dc:creator>
      <dc:date>2018-09-08T17:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: wrong sum</title>
      <link>https://community.qlik.com/t5/QlikView/wrong-sum/m-p/107803#M757633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please post a sample application to demonstrate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Sep 2018 18:55:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/wrong-sum/m-p/107803#M757633</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2018-09-08T18:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: wrong sum</title>
      <link>https://community.qlik.com/t5/QlikView/wrong-sum/m-p/107804#M757634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;STRONG style="font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/marcowedel"&gt;marcowedel&lt;/A&gt;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFA sample&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Sep 2018 06:09:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/wrong-sum/m-p/107804#M757634</guid>
      <dc:creator>soniasweety</dc:creator>
      <dc:date>2018-09-09T06:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: wrong sum</title>
      <link>https://community.qlik.com/t5/QlikView/wrong-sum/m-p/107805#M757635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How is your expected result different from the results your sample application delivers?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Sep 2018 20:08:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/wrong-sum/m-p/107805#M757635</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2018-09-09T20:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: wrong sum</title>
      <link>https://community.qlik.com/t5/QlikView/wrong-sum/m-p/107806#M757636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the same number should come&amp;nbsp; that is original data only&amp;nbsp; i exported to excel required columns and prepared the sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;total should give me the correct &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2018 05:46:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/wrong-sum/m-p/107806#M757636</guid>
      <dc:creator>soniasweety</dc:creator>
      <dc:date>2018-09-10T05:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: wrong sum</title>
      <link>https://community.qlik.com/t5/QlikView/wrong-sum/m-p/107807#M757637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try like this.&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15365611176445496 jive_text_macro" jivemacro_uid="_15365611176445496"&gt;
&lt;P&gt;SET vScaleNumber=if($1&amp;gt;1000000000, num($1/1000000000,'#,##0.000B'),if($1&amp;gt;1000000, num($1/1000000,'#,##0.000M'),if($1&amp;gt;1000, num($1/1000,'#,##0.000K'),num($1,'#,##0'))));&lt;/P&gt;
&lt;P&gt;SET ServiceAndHardware =sum({&amp;lt;SERVICE_TYPE={'Service','Hardware'}&amp;gt;}Total_Opportunity_Value_USD_Amount);&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression 1: Service&lt;/P&gt;&lt;P&gt;$(vScaleNumber(sum({&amp;lt;SERVICE_TYPE={'Service'}&amp;gt;}Total_Opportunity_Value_USD_Amount)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Expression 2: &lt;SPAN style="font-size: 13.3333px;"&gt;Hardware&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;$(vScaleNumber(sum({&amp;lt;SERVICE_TYPE={'Hardware'}&amp;gt;}Total_Opportunity_Value_USD_Amount)))&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Expression 3 : Total&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;if($(ServiceAndHardware)&amp;gt;1000000000, num($(ServiceAndHardware)/1000000000,'#,##0.000B'),if($(ServiceAndHardware)&amp;gt;1000000, num($(ServiceAndHardware)/1000000,'#,##0.000M'),if($(ServiceAndHardware)&amp;gt;1000, num($(ServiceAndHardware)/1000,'#,##0.000K'),num($(ServiceAndHardware),'#,##0'))))&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/213081_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2018 06:34:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/wrong-sum/m-p/107807#M757637</guid>
      <dc:creator>qlikviewwizard</dc:creator>
      <dc:date>2018-09-10T06:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: wrong sum</title>
      <link>https://community.qlik.com/t5/QlikView/wrong-sum/m-p/107808#M757638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks arjun...&amp;nbsp; Not yet tested.&amp;nbsp;&amp;nbsp;&amp;nbsp; i will test and update you &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, 10 Sep 2018 13:49:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/wrong-sum/m-p/107808#M757638</guid>
      <dc:creator>soniasweety</dc:creator>
      <dc:date>2018-09-10T13:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: wrong sum</title>
      <link>https://community.qlik.com/t5/QlikView/wrong-sum/m-p/107809#M757639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi &lt;STRONG style="font-style: inherit; font-size: 11.7px;"&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-link-profile-small" data-containerid="-1" data-containertype="-1" data-objectid="232490" data-objecttype="3" href="https://community.qlik.com/people/soniasweety" style="font-weight: inherit; font-style: inherit; font-size: 11.7px; font-family: inherit; color: #3778c7;"&gt;sony sing&lt;/A&gt;&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;Did you test?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2018 02:27:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/wrong-sum/m-p/107809#M757639</guid>
      <dc:creator>qlikviewwizard</dc:creator>
      <dc:date>2018-09-17T02:27:29Z</dc:date>
    </item>
  </channel>
</rss>

