<?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: Multiplication fields from different tables ApplyMap in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiplication-fields-from-different-tables-ApplyMap/m-p/1650232#M730109</link>
    <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the general concept for how to achieve this:&lt;BR /&gt;1) Join tables&lt;/P&gt;&lt;P&gt;2) Resident load and multiply the two fields&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Working script:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TestData:
Load * INLINE [
SEG, Year, DP
XY,2020,0.1
XY,2021,1.1
XY,2022,2.1
AA,2020,3.1
AA,2021,4.1
AA,2022,5.1
TT,2020,6.1
TT,2021,7.1
TT,2022,8.1
];

LEFT JOIN(TestData)
Load * INLINE [
SEG, Year, DEM
XY,2020,0.1
XY,2021,1.1
XY,2022,2.1
AA,2020,3.1
AA,2021,4.1
AA,2022,5.1
TT,2020,6.1
TT,2021,7.1
TT,2022,8.1
];

Table1:
NoConcatenate
LOAD
	SEG
, Year
, DP
, DEM
, DP*DEM as NewField
RESIDENT TestData
;&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 22 Nov 2019 16:15:53 GMT</pubDate>
    <dc:creator>Stoyan_Terziev</dc:creator>
    <dc:date>2019-11-22T16:15:53Z</dc:date>
    <item>
      <title>Multiplication fields from different tables ApplyMap</title>
      <link>https://community.qlik.com/t5/QlikView/Multiplication-fields-from-different-tables-ApplyMap/m-p/1650228#M730108</link>
      <description>&lt;P&gt;Hell All,&lt;/P&gt;&lt;P&gt;I am new to Qlik.&lt;/P&gt;&lt;P&gt;I have two tables similar to the following&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 503px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/24271iCEAA0DC42658B503/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I want a new field on Table1, NewField = DP (Table1)* DEM(Table2)&lt;/P&gt;&lt;P&gt;How can I achieve that&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 19:36:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiplication-fields-from-different-tables-ApplyMap/m-p/1650228#M730108</guid>
      <dc:creator>shovongoutam</dc:creator>
      <dc:date>2024-11-16T19:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: Multiplication fields from different tables ApplyMap</title>
      <link>https://community.qlik.com/t5/QlikView/Multiplication-fields-from-different-tables-ApplyMap/m-p/1650232#M730109</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the general concept for how to achieve this:&lt;BR /&gt;1) Join tables&lt;/P&gt;&lt;P&gt;2) Resident load and multiply the two fields&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Working script:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TestData:
Load * INLINE [
SEG, Year, DP
XY,2020,0.1
XY,2021,1.1
XY,2022,2.1
AA,2020,3.1
AA,2021,4.1
AA,2022,5.1
TT,2020,6.1
TT,2021,7.1
TT,2022,8.1
];

LEFT JOIN(TestData)
Load * INLINE [
SEG, Year, DEM
XY,2020,0.1
XY,2021,1.1
XY,2022,2.1
AA,2020,3.1
AA,2021,4.1
AA,2022,5.1
TT,2020,6.1
TT,2021,7.1
TT,2022,8.1
];

Table1:
NoConcatenate
LOAD
	SEG
, Year
, DP
, DEM
, DP*DEM as NewField
RESIDENT TestData
;&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 22 Nov 2019 16:15:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiplication-fields-from-different-tables-ApplyMap/m-p/1650232#M730109</guid>
      <dc:creator>Stoyan_Terziev</dc:creator>
      <dc:date>2019-11-22T16:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: Multiplication fields from different tables ApplyMap</title>
      <link>https://community.qlik.com/t5/QlikView/Multiplication-fields-from-different-tables-ApplyMap/m-p/1654786#M730110</link>
      <description>&lt;P&gt;Did Stoyan's post get you what you needed?&amp;nbsp; If so, do not forget to return to the thread and use the Accept as Solution button on his post to mark things and give him credit for the assistance as well as let other Community Members know things worked.&amp;nbsp; If you are still needing help, please leave a new update.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 21:05:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiplication-fields-from-different-tables-ApplyMap/m-p/1654786#M730110</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-12-05T21:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: Multiplication fields from different tables ApplyMap</title>
      <link>https://community.qlik.com/t5/QlikView/Multiplication-fields-from-different-tables-ApplyMap/m-p/1930940#M1218969</link>
      <description>&lt;LI-CODE lang="markup"&gt;//Mapping table
Table1:
Mapping
Load
SEG,
DP
From Table1;

//Mapped here
Table2:
Load
ApplyMap('Table1',SEG,Null()) as DP,
SEG,
Year,
DEM
From Table2;

//Resident Table calculate here
Table3:
Load
SEG,
Year,
DEM*DP as Multiplication
Resident Table2;
Drop Table Table2;&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 16 May 2022 09:31:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiplication-fields-from-different-tables-ApplyMap/m-p/1930940#M1218969</guid>
      <dc:creator>Dhirendra_Kharwar_13373</dc:creator>
      <dc:date>2022-05-16T09:31:07Z</dc:date>
    </item>
  </channel>
</rss>

