<?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 table with several confitions if the result isnt available in the original table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Mapping-table-with-several-confitions-if-the-result-isnt/m-p/1259621#M622845</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i just change a little bit mi script using your recommendation and now its working perfectly,.,.,Thanks a lot. for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TEMP_REGALIAS:&lt;/P&gt;&lt;P&gt;MAPPING LOAD CODIGO, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [% REG]/100 as REG&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, header is 2 lines, table is [% Regalia]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BASE:&lt;/P&gt;&lt;P&gt;LOAD CODIGO,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ORIGEN,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('TEMP_REGALIAS',CODIGO,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(left(CODIGO,3)&amp;lt;&amp;gt;'844' and Match([ORIGEN], '2','3','6'),.1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(left(CODIGO,3)='844',.2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(Match([ORIGEN], '1'),0,.15))))*1 as REGALIA&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, header is 3 lines, table is H_5857);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 04 Feb 2017 00:11:08 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-02-04T00:11:08Z</dc:date>
    <item>
      <title>Mapping table with several confitions if the result isnt available in the original table</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-table-with-several-confitions-if-the-result-isnt/m-p/1259619#M622843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been working with several tables in qlikview however i want to pull some information from one table where i could find the information, however in the case it isnt I want to generate the information using several conditionals using the information that I have in the table where i want to aggregate the information&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my script look like this, however it doesnt do what i have to change to make it work&lt;/P&gt;&lt;P&gt;BASE:&lt;/P&gt;&lt;P&gt;LOAD CODIGO,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ORIGEN&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, header is 3 lines, table is H_5857);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TEMP_REGALIAS:&lt;/P&gt;&lt;P&gt;MAPPING LOAD CODIGO, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [% REG]/100 as REG&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, header is 2 lines, table is [% Regalia]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TEMP_PREFIJO:&lt;/P&gt;&lt;P&gt;MAPPING LOAD CODIGO,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LEFT(CODIGO,3) AS PREFIJO&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, header is 3 lines, table is H_5857);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Royalty:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('REG',CODIGO,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(NOT MATCH(PREFIJO,'844') and Match([ORIGEN], '2','3','6'),.1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(MATCH(PREFIJO,'844'),.2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(Match([ORIGEN], '1'),0,.15)))) as REGALIA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your help&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2017 22:39:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-table-with-several-confitions-if-the-result-isnt/m-p/1259619#M622843</guid>
      <dc:creator />
      <dc:date>2017-01-30T22:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping table with several confitions if the result isnt available in the original table</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-table-with-several-confitions-if-the-result-isnt/m-p/1259620#M622844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Pedro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on my primary analysis I have drafted solution as below. You can provide more clarity on the issue description and expected result. This will help us to provide you more correct inputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// You can use ApplyMap as below &lt;/P&gt;&lt;P&gt;//Syntax: ApplyMap('&amp;lt;MappingTable&amp;gt;',&amp;lt;MappingColumn&amp;gt;[,DefaultValue]) as Alias&lt;/P&gt;&lt;P&gt;ApplyMap('TEMP_REGALIAS',CODIGO, IF(LEFT(CODIGO,3) &amp;lt;&amp;gt; '844' AND Match([ORIGEN], '2','3','6'),.1, IF(LEFT(CODIGO,3) ='844',.2, IF(Match([ORIGEN], '1'),0,.15)))) as REGALIA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will be helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 06:03:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-table-with-several-confitions-if-the-result-isnt/m-p/1259620#M622844</guid>
      <dc:creator>rahulpawarb</dc:creator>
      <dc:date>2017-01-31T06:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping table with several confitions if the result isnt available in the original table</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-table-with-several-confitions-if-the-result-isnt/m-p/1259621#M622845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i just change a little bit mi script using your recommendation and now its working perfectly,.,.,Thanks a lot. for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TEMP_REGALIAS:&lt;/P&gt;&lt;P&gt;MAPPING LOAD CODIGO, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [% REG]/100 as REG&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, header is 2 lines, table is [% Regalia]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BASE:&lt;/P&gt;&lt;P&gt;LOAD CODIGO,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ORIGEN,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('TEMP_REGALIAS',CODIGO,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(left(CODIGO,3)&amp;lt;&amp;gt;'844' and Match([ORIGEN], '2','3','6'),.1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(left(CODIGO,3)='844',.2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(Match([ORIGEN], '1'),0,.15))))*1 as REGALIA&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, header is 3 lines, table is H_5857);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Feb 2017 00:11:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-table-with-several-confitions-if-the-result-isnt/m-p/1259621#M622845</guid>
      <dc:creator />
      <dc:date>2017-02-04T00:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping table with several confitions if the result isnt available in the original table</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-table-with-several-confitions-if-the-result-isnt/m-p/1259622#M622846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Feb 2017 16:18:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-table-with-several-confitions-if-the-result-isnt/m-p/1259622#M622846</guid>
      <dc:creator>rahulpawarb</dc:creator>
      <dc:date>2017-02-05T16:18:31Z</dc:date>
    </item>
  </channel>
</rss>

