<?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 How to write code for sales multiple by currency ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-write-code-for-sales-multiple-by-currency/m-p/1621125#M595384</link>
    <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;I have a sales table.My org code :&lt;/P&gt;&lt;P&gt;[Row Total] AS sales,&lt;/P&gt;&lt;P&gt;it have CURRENCY field :-&lt;BR /&gt;EUR&lt;BR /&gt;SGD&lt;BR /&gt;USD&lt;/P&gt;&lt;P&gt;I think the new code should be :-&lt;/P&gt;&lt;P&gt;if&amp;nbsp; (CURRENCY='USD' , [Row Total]*1.3),&lt;/P&gt;&lt;P&gt;if(CURRENCY='SGD' , [Row Total]*1),&lt;/P&gt;&lt;P&gt;if(CURRENCY='EUR' , [Row Total]*1.6) AS AMOUNT&lt;/P&gt;&lt;P&gt;But it cannot work.&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;</description>
    <pubDate>Fri, 06 Sep 2019 14:20:03 GMT</pubDate>
    <dc:creator>paulyeo11</dc:creator>
    <dc:date>2019-09-06T14:20:03Z</dc:date>
    <item>
      <title>How to write code for sales multiple by currency ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-code-for-sales-multiple-by-currency/m-p/1621125#M595384</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;I have a sales table.My org code :&lt;/P&gt;&lt;P&gt;[Row Total] AS sales,&lt;/P&gt;&lt;P&gt;it have CURRENCY field :-&lt;BR /&gt;EUR&lt;BR /&gt;SGD&lt;BR /&gt;USD&lt;/P&gt;&lt;P&gt;I think the new code should be :-&lt;/P&gt;&lt;P&gt;if&amp;nbsp; (CURRENCY='USD' , [Row Total]*1.3),&lt;/P&gt;&lt;P&gt;if(CURRENCY='SGD' , [Row Total]*1),&lt;/P&gt;&lt;P&gt;if(CURRENCY='EUR' , [Row Total]*1.6) AS AMOUNT&lt;/P&gt;&lt;P&gt;But it cannot work.&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2019 14:20:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-code-for-sales-multiple-by-currency/m-p/1621125#M595384</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2019-09-06T14:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to write code for sales multiple by currency ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-code-for-sales-multiple-by-currency/m-p/1621470#M595385</link>
      <description>&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;Can you describe the error that you are getting?&lt;/P&gt;&lt;P&gt;I can see that you have renamed [Row Total] as Sales? Perhaps use Sales instead of&amp;nbsp;&lt;SPAN&gt;[Row Total]&lt;/SPAN&gt;? Also are you closing off all the brackets of if condition?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 07:55:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-code-for-sales-multiple-by-currency/m-p/1621470#M595385</guid>
      <dc:creator>_armoco_</dc:creator>
      <dc:date>2019-09-09T07:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to write code for sales multiple by currency ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-code-for-sales-multiple-by-currency/m-p/1621474#M595386</link>
      <description>&lt;P&gt;Hi Sir&lt;/P&gt;&lt;P&gt;Thanbk you very much for your help.&amp;nbsp; By the way some one have share with me the below script , and is working fine now.&lt;/P&gt;&lt;P&gt;([Row Total] * Pick(Match([Price Currency], 'EUR', 'NT', 'USD', 'YEN', 'BAH', 'SGD'), 1.64, (1/24), 1.25, 0.012, 1/24, 1)) as sales,&lt;/P&gt;&lt;P&gt;Paul&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 07:59:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-code-for-sales-multiple-by-currency/m-p/1621474#M595386</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2019-09-09T07:59:32Z</dc:date>
    </item>
  </channel>
</rss>

