<?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: Mapping data in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Mapping-data/m-p/2518078#M106031</link>
    <description>&lt;P&gt;É possível usar algumas combinações de funções para obter o resultado esperado, como por exemplo MapSubstring, Replace, subfield etc.&lt;BR /&gt;&lt;BR /&gt;Fiz um exemplo um pouco mais extenso, mas talvez seja útil para usar como apoio no seu caso.&lt;/P&gt;&lt;P&gt;DimTable:&lt;BR /&gt;LOAD * Inline [&lt;BR /&gt;AirportCodes , AirportType&lt;BR /&gt;GRU , Domestic&lt;BR /&gt;GIG , Domestic&lt;BR /&gt;CGH , Domestic&lt;BR /&gt;SDU , Domestic&lt;BR /&gt;CNF , Domestic&lt;BR /&gt;JFK , International&lt;BR /&gt;CDG , International&lt;BR /&gt;EZE , International&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;MapAIrport:&lt;BR /&gt;Mapping Load AirportCodes as cod,&lt;BR /&gt;AirportType as desc&lt;BR /&gt;Resident DimTable;&lt;/P&gt;&lt;P&gt;MainTable:&lt;BR /&gt;Load * Inline [&lt;BR /&gt;Id , Sector&lt;BR /&gt;1 , GRU-JFK&lt;BR /&gt;2 , CGH-SDU-CNF&lt;BR /&gt;3 , GRU-XXX&lt;BR /&gt;4 , CGH-CDG&lt;BR /&gt;5 , SDU-ABC&lt;BR /&gt;6 , GIG-EZE&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;Tmp:&lt;BR /&gt;Load Id, Applymap('MapAIrport', SubField(Sector, '-'), 'NA') as Result&lt;BR /&gt;Resident MainTable;&lt;/P&gt;&lt;P&gt;MapNA:&lt;BR /&gt;Mapping Load Id,&lt;BR /&gt;1 as desc&lt;BR /&gt;Resident Tmp where Result = 'NA';&lt;/P&gt;&lt;P&gt;MapInternational:&lt;BR /&gt;Mapping Load Id,&lt;BR /&gt;1 as desc&lt;BR /&gt;Resident Tmp where Result = 'International';&lt;/P&gt;&lt;P&gt;MainTableFinal:&lt;BR /&gt;Load Id,&lt;BR /&gt;Sector,&lt;BR /&gt;If(ApplyMap('MapNA', Id, 0) = 1, 'NA',&lt;BR /&gt;If(ApplyMap('MapInternational', Id, 0) = 1, 'International', 'Domestic')) as Type&lt;BR /&gt;Resident MainTable;&lt;BR /&gt;Drop tables MainTable, Tmp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 May 2025 17:19:56 GMT</pubDate>
    <dc:creator>joao_renato</dc:creator>
    <dc:date>2025-05-16T17:19:56Z</dc:date>
    <item>
      <title>Mapping data</title>
      <link>https://community.qlik.com/t5/App-Development/Mapping-data/m-p/2518076#M106029</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I have three fields Sector from main table, Airport Codes and Type from master table.&lt;/P&gt;&lt;P&gt;Sector has multiple airport codes separated by '-' and I need to map them with Airport Codes from the master table.&lt;/P&gt;&lt;P&gt;1. If even one of the airport code from sector is not available in Airport Codes from master table, it should give NA.&lt;/P&gt;&lt;P&gt;2. If even one airport code from sector matches with Airport Codes from master table and the Type is showing International, it should give International.&lt;/P&gt;&lt;P&gt;3. If all the airport codes from sector matches with Airport Codes from master table and the Type is showing Domestic for all the airport codes then it should give Domestic.&lt;/P&gt;&lt;P&gt;Any help is appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Fri, 16 May 2025 16:17:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Mapping-data/m-p/2518076#M106029</guid>
      <dc:creator>qliksense1thomascook</dc:creator>
      <dc:date>2025-05-16T16:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping data</title>
      <link>https://community.qlik.com/t5/App-Development/Mapping-data/m-p/2518077#M106030</link>
      <description>&lt;P&gt;It all sounds doable in Qlik but a bit challenging to give a specific answer without sample data. Can you provide some sample input and output data?&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Fri, 16 May 2025 17:11:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Mapping-data/m-p/2518077#M106030</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2025-05-16T17:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping data</title>
      <link>https://community.qlik.com/t5/App-Development/Mapping-data/m-p/2518078#M106031</link>
      <description>&lt;P&gt;É possível usar algumas combinações de funções para obter o resultado esperado, como por exemplo MapSubstring, Replace, subfield etc.&lt;BR /&gt;&lt;BR /&gt;Fiz um exemplo um pouco mais extenso, mas talvez seja útil para usar como apoio no seu caso.&lt;/P&gt;&lt;P&gt;DimTable:&lt;BR /&gt;LOAD * Inline [&lt;BR /&gt;AirportCodes , AirportType&lt;BR /&gt;GRU , Domestic&lt;BR /&gt;GIG , Domestic&lt;BR /&gt;CGH , Domestic&lt;BR /&gt;SDU , Domestic&lt;BR /&gt;CNF , Domestic&lt;BR /&gt;JFK , International&lt;BR /&gt;CDG , International&lt;BR /&gt;EZE , International&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;MapAIrport:&lt;BR /&gt;Mapping Load AirportCodes as cod,&lt;BR /&gt;AirportType as desc&lt;BR /&gt;Resident DimTable;&lt;/P&gt;&lt;P&gt;MainTable:&lt;BR /&gt;Load * Inline [&lt;BR /&gt;Id , Sector&lt;BR /&gt;1 , GRU-JFK&lt;BR /&gt;2 , CGH-SDU-CNF&lt;BR /&gt;3 , GRU-XXX&lt;BR /&gt;4 , CGH-CDG&lt;BR /&gt;5 , SDU-ABC&lt;BR /&gt;6 , GIG-EZE&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;Tmp:&lt;BR /&gt;Load Id, Applymap('MapAIrport', SubField(Sector, '-'), 'NA') as Result&lt;BR /&gt;Resident MainTable;&lt;/P&gt;&lt;P&gt;MapNA:&lt;BR /&gt;Mapping Load Id,&lt;BR /&gt;1 as desc&lt;BR /&gt;Resident Tmp where Result = 'NA';&lt;/P&gt;&lt;P&gt;MapInternational:&lt;BR /&gt;Mapping Load Id,&lt;BR /&gt;1 as desc&lt;BR /&gt;Resident Tmp where Result = 'International';&lt;/P&gt;&lt;P&gt;MainTableFinal:&lt;BR /&gt;Load Id,&lt;BR /&gt;Sector,&lt;BR /&gt;If(ApplyMap('MapNA', Id, 0) = 1, 'NA',&lt;BR /&gt;If(ApplyMap('MapInternational', Id, 0) = 1, 'International', 'Domestic')) as Type&lt;BR /&gt;Resident MainTable;&lt;BR /&gt;Drop tables MainTable, Tmp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 May 2025 17:19:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Mapping-data/m-p/2518078#M106031</guid>
      <dc:creator>joao_renato</dc:creator>
      <dc:date>2025-05-16T17:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping data</title>
      <link>https://community.qlik.com/t5/App-Development/Mapping-data/m-p/2518156#M106053</link>
      <description>&lt;P&gt;This is working for me. Thank you very much &lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 May 2025 06:08:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Mapping-data/m-p/2518156#M106053</guid>
      <dc:creator>qliksense1thomascook</dc:creator>
      <dc:date>2025-05-19T06:08:10Z</dc:date>
    </item>
  </channel>
</rss>

