<?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: Combine three fields into one field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Combine-three-fields-into-one-field/m-p/1559790#M441201</link>
    <description>&lt;P&gt;Use Appymap by creating a mapping table of whatever you require and create a separate column in data model for this.&lt;/P&gt;</description>
    <pubDate>Thu, 21 Mar 2019 19:19:10 GMT</pubDate>
    <dc:creator>passionate</dc:creator>
    <dc:date>2019-03-21T19:19:10Z</dc:date>
    <item>
      <title>Combine three fields into one field</title>
      <link>https://community.qlik.com/t5/QlikView/Combine-three-fields-into-one-field/m-p/1559744#M441196</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table with Cost_Area&amp;nbsp; field which has values as:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-left"&gt;&lt;SPAN class="lia-message-image-wrapper lia-message-image-actions-narrow lia-message-image-actions-below"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1.PNG" style="width: 188px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/8579i839EC6520F2132A1/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.PNG" alt="1.PNG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am trying to combine multiple fields ('CONT HDWR', 'CONT RESALE', 'CONTROLS ENG') in load script as one field&amp;nbsp; (named "&lt;STRONG&gt;Controls Eng&lt;/STRONG&gt;"). So, my resultant column "&lt;STRONG&gt;Controls Eng&lt;/STRONG&gt;" would be a list having values like 'CONT HDWR', 'CONT RESALE', 'CONTROLS ENG' and not the other fields.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;How can I do this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;attach is the file for reference&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:05:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combine-three-fields-into-one-field/m-p/1559744#M441196</guid>
      <dc:creator>bhaveshp90</dc:creator>
      <dc:date>2024-11-16T04:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: Combine three fields into one field</title>
      <link>https://community.qlik.com/t5/QlikView/Combine-three-fields-into-one-field/m-p/1559759#M441197</link>
      <description>Hi, for only that 3 values maybe just an If:&lt;BR /&gt;If(Match([Cost Area], 'CONT HDWR', 'CONT RESALE', 'CONTROLS ENG'), [Cost Area]) as [Controls Eng]</description>
      <pubDate>Thu, 21 Mar 2019 18:24:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combine-three-fields-into-one-field/m-p/1559759#M441197</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2019-03-21T18:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Combine three fields into one field</title>
      <link>https://community.qlik.com/t5/QlikView/Combine-three-fields-into-one-field/m-p/1559767#M441199</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22593"&gt;@rubenmarin&lt;/a&gt;&amp;nbsp;&amp;nbsp;I tried the Match() but my goal is to create a separate column "Area"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="1.PNG" style="width: 100px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/8598i619EFB2C11341ED3/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.PNG" alt="1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where Controls Eng =&amp;nbsp;&lt;SPAN&gt;'CONT HDWR', 'CONT RESALE', 'CONTROLS ENG' values&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Mechanical Eng = 'MECH HDWR', 'MECH INSTALL', 'MECH RESALE' values&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2019 18:37:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combine-three-fields-into-one-field/m-p/1559767#M441199</guid>
      <dc:creator>bhaveshp90</dc:creator>
      <dc:date>2019-03-21T18:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Combine three fields into one field</title>
      <link>https://community.qlik.com/t5/QlikView/Combine-three-fields-into-one-field/m-p/1559790#M441201</link>
      <description>&lt;P&gt;Use Appymap by creating a mapping table of whatever you require and create a separate column in data model for this.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2019 19:19:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combine-three-fields-into-one-field/m-p/1559790#M441201</guid>
      <dc:creator>passionate</dc:creator>
      <dc:date>2019-03-21T19:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: Combine three fields into one field</title>
      <link>https://community.qlik.com/t5/QlikView/Combine-three-fields-into-one-field/m-p/1560729#M441273</link>
      <description>&lt;P&gt;It can be done with a nested if:&lt;/P&gt;&lt;PRE&gt;If(Match([Cost Area], 'CONT HDWR', 'CONT RESALE', 'CONTROLS ENG'), 'Controls Eng',
If(Match([Cost Area], 'MECH HDWR', 'MECH INSTALL', 'MECH RESALE'), 'Mechanical Eng')
) as [Area]&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using variables:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;SET vControlsEng =&amp;nbsp;'CONT HDWR', 'CONT RESALE', 'CONTROLS ENG';
SET vMechanicalEng =&amp;nbsp;'MECH HDWR', 'MECH INSTALL', 'MECH RESALE';

LOAD ...
If(Match([Cost Area], $(vControlsEng)), 'Controls Eng',
&amp;nbsp; If(Match([Cost Area], $(vMechanicalEng)), 'Mechanical Eng'
) ) as [Area]
...&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Or using applymap (recommended):&lt;/P&gt;&lt;PRE&gt;mapArea:
LOAD * inline [
CostArea, Area
CONT HDWR, Controls Eng
CONT RESALE, Controls Eng
CONTROLS ENG, Controls Eng
MECH HDWR, Mechanical Eng
ECH INSTALL, Mechanical Eng
MECH RESALE, Mechanical Eng
];

LOAD ...
Applymap('mapArea', [Cost Area], null()) as Area
...&lt;/PRE&gt;</description>
      <pubDate>Mon, 25 Mar 2019 12:22:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combine-three-fields-into-one-field/m-p/1560729#M441273</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2019-03-25T12:22:00Z</dc:date>
    </item>
  </channel>
</rss>

