<?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: Create calculated column of two tables inside script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-calculated-column-of-two-tables-inside-script/m-p/450255#M696941</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't get it &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/shocked.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way I still have to use the if statement in every expression, don't I?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Mar 2013 13:09:48 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-03-18T13:09:48Z</dc:date>
    <item>
      <title>Create calculated column of two tables inside script</title>
      <link>https://community.qlik.com/t5/QlikView/Create-calculated-column-of-two-tables-inside-script/m-p/450253#M696939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This question is related to my previous post:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/message/322989#322989"&gt;http://community.qlik.com/message/322989#322989&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two tables with the following (simplified) structure:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DataTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Amount,&lt;/P&gt;&lt;P&gt;InvoiceCurrency,&lt;/P&gt;&lt;P&gt;if(NOT Wildmatch(InvoiceCurrency,'EUR'), InvoiceCurrency&amp;amp;'-'&amp;amp;CutoffDate,'EUR')&amp;nbsp; AS ComboCurrDate&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EcbTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;ComboCurrDate,&lt;/P&gt;&lt;P&gt;ECBrate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the tables are linked through the ComboCurrDate column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to add a column for &lt;STRONG&gt;EurAmount &lt;/STRONG&gt;so that I can use this field in set analysis and other scenarios.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now I use this statement to &lt;STRONG&gt;calculate &lt;/STRONG&gt;the EurAmount &lt;STRONG&gt;outside &lt;/STRONG&gt;my script:&lt;/P&gt;&lt;P&gt;if(NOT Wildmatch(InvoiceCurrency,'EUR'), (Amount / (1 * ECBrate)),Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do I need to do to create this calculated column? Create a third table, use a join - do I need a real key field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you can help me out here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 12:27:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-calculated-column-of-two-tables-inside-script/m-p/450253#M696939</guid>
      <dc:creator />
      <dc:date>2013-03-18T12:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Create calculated column of two tables inside script</title>
      <link>https://community.qlik.com/t5/QlikView/Create-calculated-column-of-two-tables-inside-script/m-p/450254#M696940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;DataTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Amount,&lt;/P&gt;&lt;P&gt;InvoiceCurrency,&lt;/P&gt;&lt;P&gt;if(NOT Wildmatch(InvoiceCurrency,'EUR'), InvoiceCurrency&amp;amp;'-'&amp;amp;CutoffDate,'EUR')&amp;nbsp; AS ComboCurrDate,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff00ff;"&gt;&lt;STRONG&gt;'&amp;nbsp; ' as EurAmount&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EcbTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;ComboCurrDate,&lt;/P&gt;&lt;P&gt;ECBrate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 12:52:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-calculated-column-of-two-tables-inside-script/m-p/450254#M696940</guid>
      <dc:creator />
      <dc:date>2013-03-18T12:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: Create calculated column of two tables inside script</title>
      <link>https://community.qlik.com/t5/QlikView/Create-calculated-column-of-two-tables-inside-script/m-p/450255#M696941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't get it &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/shocked.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way I still have to use the if statement in every expression, don't I?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 13:09:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-calculated-column-of-two-tables-inside-script/m-p/450255#M696941</guid>
      <dc:creator />
      <dc:date>2013-03-18T13:09:48Z</dc:date>
    </item>
  </channel>
</rss>

