<?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: multiply values from different sources in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/multiply-values-from-different-sources/m-p/651175#M672668</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;Use Left Join or Right Join or Join to join two tables&lt;/P&gt;&lt;P&gt;then use your expression in new table where you can call all the field from existing one i.e Resident table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your script like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;invoiceno,&lt;/P&gt;&lt;P&gt;ArtNo,&lt;/P&gt;&lt;P&gt;Amount,&lt;/P&gt;&lt;P&gt;Date&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;SQL * FROM X;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Table2:&lt;/P&gt;&lt;P&gt;left join&lt;/P&gt;&lt;P&gt;invoiceno,&lt;/P&gt;&lt;P&gt;currency factor,&lt;/P&gt;&lt;P&gt;currency code,&lt;/P&gt;&lt;P&gt;date&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;SQL * FROM Y;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;final_table: &lt;/P&gt;&lt;P&gt;Load *&lt;/P&gt;&lt;P&gt;if(not wildmatch([currency code],'EUR'), Amount*currency factor) as NewAmount&lt;/P&gt;&lt;P&gt;Resident Table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop table Table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Aug 2014 10:11:06 GMT</pubDate>
    <dc:creator>PrashantSangle</dc:creator>
    <dc:date>2014-08-26T10:11:06Z</dc:date>
    <item>
      <title>multiply values from different sources</title>
      <link>https://community.qlik.com/t5/QlikView/multiply-values-from-different-sources/m-p/651174#M672667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;I am recently blocked, my simply question is:&lt;/P&gt;&lt;P&gt;I have 2 Tables from 2 different sources:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;invoiceno,&lt;/P&gt;&lt;P&gt;ArtNo,&lt;/P&gt;&lt;P&gt;Amount,&lt;/P&gt;&lt;P&gt;Date&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;SQL * FROM X;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;invoiceno,&lt;/P&gt;&lt;P&gt;currency factor,&lt;/P&gt;&lt;P&gt;currency code,&lt;/P&gt;&lt;P&gt;date&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;SQL * FROM Y;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now I want to multiply like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;if(currency code is not EUR, Amount*currency factor) as NewAmount&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to show the values from Amount in a certain currency code: EUR&lt;/P&gt;&lt;P&gt;If the currency is not EUR, so the value should multiply it with the CFactor..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I solve this in Scripting ? or should I use it in the Straight &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope you can help me &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2014 10:06:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/multiply-values-from-different-sources/m-p/651174#M672667</guid>
      <dc:creator />
      <dc:date>2014-08-26T10:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: multiply values from different sources</title>
      <link>https://community.qlik.com/t5/QlikView/multiply-values-from-different-sources/m-p/651175#M672668</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;Use Left Join or Right Join or Join to join two tables&lt;/P&gt;&lt;P&gt;then use your expression in new table where you can call all the field from existing one i.e Resident table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your script like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;invoiceno,&lt;/P&gt;&lt;P&gt;ArtNo,&lt;/P&gt;&lt;P&gt;Amount,&lt;/P&gt;&lt;P&gt;Date&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;SQL * FROM X;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Table2:&lt;/P&gt;&lt;P&gt;left join&lt;/P&gt;&lt;P&gt;invoiceno,&lt;/P&gt;&lt;P&gt;currency factor,&lt;/P&gt;&lt;P&gt;currency code,&lt;/P&gt;&lt;P&gt;date&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;SQL * FROM Y;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;final_table: &lt;/P&gt;&lt;P&gt;Load *&lt;/P&gt;&lt;P&gt;if(not wildmatch([currency code],'EUR'), Amount*currency factor) as NewAmount&lt;/P&gt;&lt;P&gt;Resident Table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop table Table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2014 10:11:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/multiply-values-from-different-sources/m-p/651175#M672668</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-08-26T10:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: multiply values from different sources</title>
      <link>https://community.qlik.com/t5/QlikView/multiply-values-from-different-sources/m-p/651176#M672669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1.&amp;nbsp; if u want it to do in th eback end u will have to join the currency code to the accont table with a primary key and bring all details in a sigle table.&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; If u want it to do it in front end keep them linked with a key and u can straight away do it in the front end.&lt;/P&gt;&lt;P&gt;Violume of data defines which way is better.&lt;/P&gt;&lt;P&gt;I would prefer option 1 since it will improve performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Sundar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2014 10:16:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/multiply-values-from-different-sources/m-p/651176#M672669</guid>
      <dc:creator>sundarakumar</dc:creator>
      <dc:date>2014-08-26T10:16:38Z</dc:date>
    </item>
  </channel>
</rss>

