<?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: ApplyMap function for multiple fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/ApplyMap-function-for-multiple-fields/m-p/129451#M763016</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;//Loading mappings:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Mapping1:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Mapping Load&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Layer3,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Layer2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;FROM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;C&gt;&lt;/C&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;(ooxml, embedded labels);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Mapping2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Mapping Load&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Layer3,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Layer1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;FROM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;C&gt;&lt;/C&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;(ooxml, embedded labels);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;//Loading returns data:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Table:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Load &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Date,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Name,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Return,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Type&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;From...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Table1:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Load Date,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Name, &lt;/P&gt;&lt;P&gt;Return,&lt;/P&gt;&lt;P&gt;Type,&lt;/P&gt;&lt;P&gt;if(Type = 'Layer3', Name, NULL()) as Layer3,&lt;/P&gt;&lt;P&gt;ApplyMap('Mapping1',Name,NULL()) as Layer2,&lt;/P&gt;&lt;P&gt;ApplyMap('Mapping2',Name, NULL()) as Layer1&lt;/P&gt;&lt;P&gt;Resident Table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Layer1:&lt;/P&gt;&lt;P&gt;NoConcatenate Load&lt;/P&gt;&lt;P&gt;Return as Layer1Return,&lt;/P&gt;&lt;P&gt;Date,&lt;/P&gt;&lt;P&gt;Name as Layer1,&lt;/P&gt;&lt;P&gt;Type&lt;/P&gt;&lt;P&gt;Resident Table where Type='Layer1';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Join(Table1)&lt;/P&gt;&lt;P&gt;Layer1Return,&lt;/P&gt;&lt;P&gt;Date,&lt;/P&gt;&lt;P&gt;Layer1,&lt;/P&gt;&lt;P&gt;Type&lt;/P&gt;&lt;P&gt;Resident(Layer1);&lt;/P&gt;&lt;P&gt;Drop table Layer1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Layer2:&lt;/P&gt;&lt;P&gt;NoConcatenate Load&lt;/P&gt;&lt;P&gt;Return as Layer2Return,&lt;/P&gt;&lt;P&gt;Date,&lt;/P&gt;&lt;P&gt;Name as Layer2,&lt;/P&gt;&lt;P&gt;Type&lt;/P&gt;&lt;P&gt;Resident Table where Type='Layer2';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Join(Table1)&lt;/P&gt;&lt;P&gt;Layer2Return,&lt;/P&gt;&lt;P&gt;Date,&lt;/P&gt;&lt;P&gt;Layer2,&lt;/P&gt;&lt;P&gt;Type&lt;/P&gt;&lt;P&gt;Resident(Layer2);&lt;/P&gt;&lt;P&gt;Drop table Layer2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Layer3:&lt;/P&gt;&lt;P&gt;NoConcatenate Load&lt;/P&gt;&lt;P&gt;Return as Layer3Return,&lt;/P&gt;&lt;P&gt;Date,&lt;/P&gt;&lt;P&gt;Name as Layer3,&lt;/P&gt;&lt;P&gt;Type&lt;/P&gt;&lt;P&gt;Resident Table where Type='Layer3';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Join(Table1)&lt;/P&gt;&lt;P&gt;Layer3Return,&lt;/P&gt;&lt;P&gt;Date,&lt;/P&gt;&lt;P&gt;Layer3,&lt;/P&gt;&lt;P&gt;Type&lt;/P&gt;&lt;P&gt;Resident(Layer3);&lt;/P&gt;&lt;P&gt;Drop table Layer3;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop table Table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Jul 2018 12:14:55 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-07-26T12:14:55Z</dc:date>
    <item>
      <title>ApplyMap function for multiple fields</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMap-function-for-multiple-fields/m-p/129447#M763012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a somewhat complicated dataset and just can't seem to get the mappings to cooperate. For context, I have 3 layers: Layer 1 which can either be Client or Not_Client; Layer 2 which can range from "Strong sell", "Sell", "Hold", "Buy", "Strong Buy" respectively; and Layer 3 which represents a list of Investments (72 of them). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So basically, each investment needs to be mapped to a classification strong sell to strong buy, and this needs to be done for both Client and Non_Client fields. I've managed to use the ApplyMap function to create the appropriate mappings but the problem arises when I pull in numeric values for each layer. I.e. I have returns for each investment at each layer. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to be able to click on client and see an aggregated return, then click on the next layer (say Buy) and see the aggregated Buy return as well as the associated investments and then finally click on an investment then see its return. I have attached a spreadsheet of the mapping table i used and the format of the database which stores the returns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just to clarify I have been able to create the associations in the mapping tab with the applymap function. What doesn't happen however, is the appropriate associations of the returns from the database. The applymap just maps the first appearance of the Investments (i.e. with the Client field) and doesn't remap it for the next appearance (in the Not_Client field). If this isn't clear, happy to provide more info. Any help would be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMap-function-for-multiple-fields/m-p/129447#M763012</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: ApplyMap function for multiple fields</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMap-function-for-multiple-fields/m-p/129448#M763013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be join instead of using ApplyMap&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2018 11:20:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMap-function-for-multiple-fields/m-p/129448#M763013</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-07-26T11:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: ApplyMap function for multiple fields</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMap-function-for-multiple-fields/m-p/129449#M763014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tried that as well. Similar problem!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2018 11:49:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMap-function-for-multiple-fields/m-p/129449#M763014</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-26T11:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: ApplyMap function for multiple fields</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMap-function-for-multiple-fields/m-p/129450#M763015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share the script you have tried? Also, it would be good to know what the final table needs to look like (for your sample)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2018 11:54:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMap-function-for-multiple-fields/m-p/129450#M763015</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-07-26T11:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: ApplyMap function for multiple fields</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMap-function-for-multiple-fields/m-p/129451#M763016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;//Loading mappings:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Mapping1:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Mapping Load&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Layer3,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Layer2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;FROM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;C&gt;&lt;/C&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;(ooxml, embedded labels);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Mapping2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Mapping Load&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Layer3,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Layer1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;FROM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;C&gt;&lt;/C&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;(ooxml, embedded labels);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;//Loading returns data:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Table:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Load &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Date,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Name,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Return,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Type&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;From...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Table1:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Load Date,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Name, &lt;/P&gt;&lt;P&gt;Return,&lt;/P&gt;&lt;P&gt;Type,&lt;/P&gt;&lt;P&gt;if(Type = 'Layer3', Name, NULL()) as Layer3,&lt;/P&gt;&lt;P&gt;ApplyMap('Mapping1',Name,NULL()) as Layer2,&lt;/P&gt;&lt;P&gt;ApplyMap('Mapping2',Name, NULL()) as Layer1&lt;/P&gt;&lt;P&gt;Resident Table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Layer1:&lt;/P&gt;&lt;P&gt;NoConcatenate Load&lt;/P&gt;&lt;P&gt;Return as Layer1Return,&lt;/P&gt;&lt;P&gt;Date,&lt;/P&gt;&lt;P&gt;Name as Layer1,&lt;/P&gt;&lt;P&gt;Type&lt;/P&gt;&lt;P&gt;Resident Table where Type='Layer1';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Join(Table1)&lt;/P&gt;&lt;P&gt;Layer1Return,&lt;/P&gt;&lt;P&gt;Date,&lt;/P&gt;&lt;P&gt;Layer1,&lt;/P&gt;&lt;P&gt;Type&lt;/P&gt;&lt;P&gt;Resident(Layer1);&lt;/P&gt;&lt;P&gt;Drop table Layer1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Layer2:&lt;/P&gt;&lt;P&gt;NoConcatenate Load&lt;/P&gt;&lt;P&gt;Return as Layer2Return,&lt;/P&gt;&lt;P&gt;Date,&lt;/P&gt;&lt;P&gt;Name as Layer2,&lt;/P&gt;&lt;P&gt;Type&lt;/P&gt;&lt;P&gt;Resident Table where Type='Layer2';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Join(Table1)&lt;/P&gt;&lt;P&gt;Layer2Return,&lt;/P&gt;&lt;P&gt;Date,&lt;/P&gt;&lt;P&gt;Layer2,&lt;/P&gt;&lt;P&gt;Type&lt;/P&gt;&lt;P&gt;Resident(Layer2);&lt;/P&gt;&lt;P&gt;Drop table Layer2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Layer3:&lt;/P&gt;&lt;P&gt;NoConcatenate Load&lt;/P&gt;&lt;P&gt;Return as Layer3Return,&lt;/P&gt;&lt;P&gt;Date,&lt;/P&gt;&lt;P&gt;Name as Layer3,&lt;/P&gt;&lt;P&gt;Type&lt;/P&gt;&lt;P&gt;Resident Table where Type='Layer3';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Join(Table1)&lt;/P&gt;&lt;P&gt;Layer3Return,&lt;/P&gt;&lt;P&gt;Date,&lt;/P&gt;&lt;P&gt;Layer3,&lt;/P&gt;&lt;P&gt;Type&lt;/P&gt;&lt;P&gt;Resident(Layer3);&lt;/P&gt;&lt;P&gt;Drop table Layer3;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop table Table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2018 12:14:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMap-function-for-multiple-fields/m-p/129451#M763016</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-26T12:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: ApplyMap function for multiple fields</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMap-function-for-multiple-fields/m-p/129452#M763017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is more or less the script that got me the closest to the desired outcome. I don't mind what the final table looks like as long as the correct relationships are achieved. I.e. at the first layer, the associated returns and further layers are correct &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2018 12:16:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMap-function-for-multiple-fields/m-p/129452#M763017</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-26T12:16:16Z</dc:date>
    </item>
  </channel>
</rss>

