<?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 If statement SUM calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-statement-SUM-calculation/m-p/470703#M484476</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I am trying to achieve the following. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have three companies &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;000 &lt;/P&gt;&lt;P&gt;001&lt;/P&gt;&lt;P&gt;003 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;000 and 003 share the same database, therefore i recieve double values when running the following sum for company 003. 001 is correct so no need to worry about that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what i want to do is half the amount for company 003 based on the following calculation. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;psuedo if(company = 003......), otherwise&amp;nbsp; -&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;OrderRad.ResterandeBelopp&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;#Dat_O&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;OH.Kurs_FSG_act&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Best,Brad&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 May 2013 12:37:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-05-17T12:37:39Z</dc:date>
    <item>
      <title>If statement SUM calculation</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-SUM-calculation/m-p/470703#M484476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I am trying to achieve the following. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have three companies &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;000 &lt;/P&gt;&lt;P&gt;001&lt;/P&gt;&lt;P&gt;003 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;000 and 003 share the same database, therefore i recieve double values when running the following sum for company 003. 001 is correct so no need to worry about that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what i want to do is half the amount for company 003 based on the following calculation. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;psuedo if(company = 003......), otherwise&amp;nbsp; -&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;OrderRad.ResterandeBelopp&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;#Dat_O&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;OH.Kurs_FSG_act&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Best,Brad&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 12:37:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-SUM-calculation/m-p/470703#M484476</guid>
      <dc:creator />
      <dc:date>2013-05-17T12:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: If statement SUM calculation</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-SUM-calculation/m-p/470704#M484477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(company = 003,Values*0.5,Values)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 12:57:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-SUM-calculation/m-p/470704#M484477</guid>
      <dc:creator />
      <dc:date>2013-05-17T12:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: If statement SUM calculation</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-SUM-calculation/m-p/470705#M484478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; color: #737373; font-family: Arial;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; font-family: Arial; color: #800000;"&gt;OrderRad.ResterandeBelopp&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; color: #737373; font-family: Arial;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; font-family: Arial; color: #800000;"&gt;#Dat_O&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; color: #737373; font-family: Arial;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; font-family: Arial; color: #800000;"&gt;OH.Kurs_FSG_act&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; color: #737373; font-family: Arial;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't get what this expression says&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be for your requirement expression will be&lt;/P&gt;&lt;P&gt;(Sum({&amp;lt;Company={'000', '003'}&amp;gt;} Sales) * 0.5) + Sum({&amp;lt;Company-={'000', '003'}&amp;gt;} Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 14:04:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-SUM-calculation/m-p/470705#M484478</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2013-05-17T14:04:59Z</dc:date>
    </item>
  </channel>
</rss>

