<?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: Sum &amp; If Formula for pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-If-Formula-for-pivot-table/m-p/748691#M1046101</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Carolin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A sample data will help us.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Dec 2014 13:43:48 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-12-01T13:43:48Z</dc:date>
    <item>
      <title>Sum &amp; If Formula for pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-If-Formula-for-pivot-table/m-p/748686#M1046096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to use the following formula but it´s not working:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;FPeriodDesc&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;FPDescToday&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;OrderPhase_Desc&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; = {'Revenue'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;NettAmount&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: gray;"&gt;$(vCurrency)&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;)+(sum({$&amp;lt;OrderPhase_Desc = {'Backlog'}&amp;gt;}NettAmount&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: gray;"&gt;$(vCurrency)&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;))),0) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;Could anybody help me?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;Best regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;Carolin &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 13:23:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-If-Formula-for-pivot-table/m-p/748686#M1046096</guid>
      <dc:creator>carolin01</dc:creator>
      <dc:date>2014-12-01T13:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: Sum &amp; If Formula for pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-If-Formula-for-pivot-table/m-p/748687#M1046097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carolin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what does $(vCurrency) in your expression mean? or it is just about missing multiplier (*) between NettAmount * $(vCurrency)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 13:31:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-If-Formula-for-pivot-table/m-p/748687#M1046097</guid>
      <dc:creator>mato32188</dc:creator>
      <dc:date>2014-12-01T13:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: Sum &amp; If Formula for pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-If-Formula-for-pivot-table/m-p/748688#M1046098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Caroline,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sum expression seems to be ok. Maybe try with only function in if statement:&lt;/P&gt;&lt;P&gt;= if(only(&lt;SPAN lang="EN-US" style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;FPeriodDesc)&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; = only(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;FPDescToday)&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;, sum(....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 13:31:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-If-Formula-for-pivot-table/m-p/748688#M1046098</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-01T13:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: Sum &amp; If Formula for pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-If-Formula-for-pivot-table/m-p/748689#M1046099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;$(vCurrency) is just a variable to be able to calculate in EUR or USD depending on what the user wants to see. There is a NettAmount field for each of the currencies. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 13:35:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-If-Formula-for-pivot-table/m-p/748689#M1046099</guid>
      <dc:creator>carolin01</dc:creator>
      <dc:date>2014-12-01T13:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Sum &amp; If Formula for pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-If-Formula-for-pivot-table/m-p/748690#M1046100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did not help unfortunately. The expression is shown as ok in Qlik View until I use the "+" sign. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 13:41:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-If-Formula-for-pivot-table/m-p/748690#M1046100</guid>
      <dc:creator>carolin01</dc:creator>
      <dc:date>2014-12-01T13:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: Sum &amp; If Formula for pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-If-Formula-for-pivot-table/m-p/748691#M1046101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Carolin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A sample data will help us.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 13:43:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-If-Formula-for-pivot-table/m-p/748691#M1046101</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-01T13:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Sum &amp; If Formula for pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-If-Formula-for-pivot-table/m-p/748692#M1046102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What does exactly $(vCurrency) will do...is it will convert into EUR/USD or add EUR/USD representation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try with out without $(vCurrency)..&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;FPeriodDesc&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;FPDescToday&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;OrderPhase_Desc&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; = {'Revenue'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;NettAmount&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: gray;"&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;)+(sum({$&amp;lt;OrderPhase_Desc = {'Backlog'}&amp;gt;}NettAmount&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: gray;"&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;))),0) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 14:08:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-If-Formula-for-pivot-table/m-p/748692#M1046102</guid>
      <dc:creator />
      <dc:date>2014-12-01T14:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: Sum &amp; If Formula for pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-If-Formula-for-pivot-table/m-p/748693#M1046103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carolin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;$(vCurrency) variable contain a string ('EUR', 'USD')? And are the fields named NetAmountEUR and NetAmountUSD? Because it looks like you are accessing the fields by concatenating part of the field name with the variable but it doesn't work even though the expression editor says ok.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;In that case you should split the two cases with a nested if like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(FPeriodDesc = FPDescToday, if($(vCurrency)='EUR', (sum({$&amp;lt;OrderPhase_Desc = {'Revenue'}&amp;gt;}NettAmountEUR)+(sum({$&amp;lt;OrderPhase_Desc = {'Backlog'}&amp;gt;}NettAmountEUR))), (sum({$&amp;lt;OrderPhase_Desc = {'Revenue'}&amp;gt;}NettAmountUSD)+(sum({$&amp;lt;OrderPhase_Desc = {'Backlog'}&amp;gt;}NettAmountUSD)))) ,0)&lt;/P&gt;&lt;P&gt;&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;Giacomo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 14:19:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-If-Formula-for-pivot-table/m-p/748693#M1046103</guid>
      <dc:creator>giacomom</dc:creator>
      <dc:date>2014-12-01T14:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: Sum &amp; If Formula for pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-If-Formula-for-pivot-table/m-p/748694#M1046104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of using "+" it's better to use rangesum() which returned 0 for all non-numeric values or NULL. But in your case you didn't need it then you could write more then one argument within the set analysis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;OrderPhase_Desc&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; = {'Revenue', &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;'Backlog'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Further you should check if your expression worked with manually curreny-field. If yes it's a syntax-case, maybe you needs brackets around your field-variable-combination or similar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 15:32:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-If-Formula-for-pivot-table/m-p/748694#M1046104</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-12-01T15:32:14Z</dc:date>
    </item>
  </channel>
</rss>

