<?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 If in Expressions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-If-in-Expressions/m-p/517843#M193346</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try: &lt;/P&gt;&lt;P&gt;sum([Trade Value] * if([Share Class] = 'USD', vUSD, if(Share Class] = 'EUR ', vEUR, 1)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Jun 2013 16:45:46 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-06-27T16:45:46Z</dc:date>
    <item>
      <title>Sum If in Expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-If-in-Expressions/m-p/517842#M193345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I'm a newbie to Qlikview and I want to do something that should be so so simple but I just can't figure it out!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've set up some manual expressions for the currency exchange rate (vEUR, vSGD and vUSD) In these fields you have the excahnge rate from GBP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All I then want to do is calculate if the Share Class is EUR multiple the figure by vEUR. If it's USD multiply it by vUSD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should be so so simple but it's just not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In excel or SSRS I would just do something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;iif([Share Class] like 'USD' TradeValue * vUSD, iif([Share Class] like 'EUR', Trade Value * vEUR, Trade Value))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I just can not work out how I can do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please can someone help me!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Phil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 16:41:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-If-in-Expressions/m-p/517842#M193345</guid>
      <dc:creator />
      <dc:date>2013-06-27T16:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: Sum If in Expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-If-in-Expressions/m-p/517843#M193346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try: &lt;/P&gt;&lt;P&gt;sum([Trade Value] * if([Share Class] = 'USD', vUSD, if(Share Class] = 'EUR ', vEUR, 1)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 16:45:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-If-in-Expressions/m-p/517843#M193346</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-06-27T16:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: Sum If in Expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-If-in-Expressions/m-p/517844#M193347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah I can see how that would work, but what would the actual code be for that in the expression field? Would it need a sum? Would it need all {} 's and $'s?? I’m a newbie to Qlikview so apologies for my poor knowledge.... have to start somewhere though! &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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Phil &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 22:35:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-If-in-Expressions/m-p/517844#M193347</guid>
      <dc:creator />
      <dc:date>2013-06-27T22:35:52Z</dc:date>
    </item>
  </channel>
</rss>

