<?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: Apply Map in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Apply-Map/m-p/1720871#M722918</link>
    <description>&lt;P&gt;May be&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Map_Primary_Ind:
Mapping Load
Primary_Indicator,
'Dep' as Value
;
//Use your source table instead of below Inline
Load * Inline [
Primary_Indicator
A
B
]; 
Map_Secondary_Ind:
Mapping Load
Secondary_Indicator,
'Dep' as Value
;
Load * Inline [
Secondary_Indicator
C
D
];&lt;/LI-CODE&gt;&lt;P&gt;In the table&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Applymap('Map_Primary_Ind',Primary_Indicator,Applymap('Map_Secondary_Ind',Secondary_Indicator,'Non Dep')) as DepressionIndicator&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Jun 2020 13:00:50 GMT</pubDate>
    <dc:creator>vamsee</dc:creator>
    <dc:date>2020-06-22T13:00:50Z</dc:date>
    <item>
      <title>Apply Map</title>
      <link>https://community.qlik.com/t5/QlikView/Apply-Map/m-p/1720690#M722916</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a Qlikview script as below:&lt;/P&gt;&lt;P&gt;Load PrimaryIndicator,&lt;/P&gt;&lt;P&gt;SecondaryIndicator,&lt;/P&gt;&lt;P&gt;If(PrimaryIndicator = 'A' or&lt;/P&gt;&lt;P&gt;PrimaryIndicator = 'B' or&lt;/P&gt;&lt;P&gt;SecondaryIndicator = 'C' or&amp;nbsp;&lt;/P&gt;&lt;P&gt;SecondaryIndicator = 'D', 'Dep','NonDep') as DepressionIndicator&lt;/P&gt;&lt;P&gt;Resident Table1;&lt;/P&gt;&lt;P&gt;How do i convert the if condition into a Apply Map and Mapping load combination ?&lt;/P&gt;&lt;P&gt;I'm able to convert an if condition with single column into Apply Map and Mapping load combination but this scenario involved 2 columns (PrimaryIndicator,&amp;nbsp;SecondaryIndicator) and i'm unable to do it with 2 column involved.&lt;/P&gt;&lt;P&gt;Looking forward for some suggestions. Thanks in Advance!&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/50135"&gt;@vamsee&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22678"&gt;@jagan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Vignesh&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:26:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Apply-Map/m-p/1720690#M722916</guid>
      <dc:creator>vmurugananthan</dc:creator>
      <dc:date>2024-11-16T00:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Apply Map</title>
      <link>https://community.qlik.com/t5/QlikView/Apply-Map/m-p/1720738#M722917</link>
      <description>&lt;P&gt;You can create a mapping table where the first column is the concatenation of Primary and Secondary, and the second column is the Indicator.&lt;/P&gt;&lt;P&gt;Then, in the load, you can use:&lt;/P&gt;&lt;P&gt;applymap('mapping table name', PrimaryIndicator &amp;amp;&amp;nbsp;&lt;SPAN&gt;SecondaryIndicator)&amp;nbsp;as DepressionIndicator&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2020 08:36:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Apply-Map/m-p/1720738#M722917</guid>
      <dc:creator>fosuzuki</dc:creator>
      <dc:date>2020-06-22T08:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: Apply Map</title>
      <link>https://community.qlik.com/t5/QlikView/Apply-Map/m-p/1720871#M722918</link>
      <description>&lt;P&gt;May be&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Map_Primary_Ind:
Mapping Load
Primary_Indicator,
'Dep' as Value
;
//Use your source table instead of below Inline
Load * Inline [
Primary_Indicator
A
B
]; 
Map_Secondary_Ind:
Mapping Load
Secondary_Indicator,
'Dep' as Value
;
Load * Inline [
Secondary_Indicator
C
D
];&lt;/LI-CODE&gt;&lt;P&gt;In the table&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Applymap('Map_Primary_Ind',Primary_Indicator,Applymap('Map_Secondary_Ind',Secondary_Indicator,'Non Dep')) as DepressionIndicator&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2020 13:00:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Apply-Map/m-p/1720871#M722918</guid>
      <dc:creator>vamsee</dc:creator>
      <dc:date>2020-06-22T13:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: Apply Map</title>
      <link>https://community.qlik.com/t5/QlikView/Apply-Map/m-p/1726225#M722919</link>
      <description>&lt;P&gt;You have two decent responses to your query, we would appreciate it if you would return to your thread and close it out by using the Accept as Solution button the post(s) that helped.&amp;nbsp; If you did something different, you can post what you did and then mark that post too, and if you still require assistance, please leave an update post for us.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2020 18:08:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Apply-Map/m-p/1726225#M722919</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-07-08T18:08:02Z</dc:date>
    </item>
  </channel>
</rss>

