<?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: Binary Load x Mapping Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Binary-Load-x-Mapping-Table/m-p/1183207#M628245</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all.&lt;/P&gt;&lt;P&gt;As I was thinking a mapping table does not survive the end of script;&lt;/P&gt;&lt;P&gt;I was hoping there´s a "hack", but it seems there´s not &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Going to test what is faster:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Resident load of a table from datamart&lt;/LI&gt;&lt;LI&gt;Loading a qvd (unfortunately a mapping load seems to discard a optimized load too &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt; )&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Sep 2016 21:52:39 GMT</pubDate>
    <dc:creator>Clever_Anjos</dc:creator>
    <dc:date>2016-09-13T21:52:39Z</dc:date>
    <item>
      <title>Binary Load x Mapping Table</title>
      <link>https://community.qlik.com/t5/QlikView/Binary-Load-x-Mapping-Table/m-p/1183203#M628241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to have a &lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2012/09/18/one-favorite-function-applymap"&gt;mapping table &lt;/A&gt;coming from a datamart qvw loaded through binary load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, a table created like below is not loaded when the binary is executed&lt;/P&gt;&lt;PRE __default_attr="xml" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14737931252739050" jivemacro_uid="_14737931252739050"&gt;
&lt;P&gt;Prefixos:&lt;/P&gt;
&lt;P&gt;mapping load * ;&lt;/P&gt;
&lt;P&gt;sql SELECT DISTINCT&lt;/P&gt;
&lt;P&gt;&amp;nbsp; PREFIXO,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; isnull(b.OPERADORA_TRATADA,PRESTADORA) as PRESTADORA&lt;/P&gt;
&lt;P&gt;FROM TB_PREFIXOS a&lt;/P&gt;
&lt;P&gt;left join TB_OPERADORAS b on a.PRESTADORA = b.OPERADORA;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´m using a workaround like this that is not so optimized as I would like&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif;"&gt;Datamart.qvw&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE __default_attr="xml" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14737932149993820 jive_text_macro" jivemacro_uid="_14737932149993820"&gt;
&lt;P&gt;Prefixos:&lt;/P&gt;
&lt;P&gt;sql SELECT DISTINCT&lt;/P&gt;
&lt;P&gt;&amp;nbsp; PREFIXO,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; isnull(b.OPERADORA_TRATADA,PRESTADORA) as PRESTADORA&lt;/P&gt;
&lt;P&gt;FROM TB_PREFIXOS a&lt;/P&gt;
&lt;P&gt;left join TB_OPERADORAS b on a.PRESTADORA = b.OPERADORA;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif;"&gt;Dashboard.qvw&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE __default_attr="xml" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14737932243239364 jive_text_macro" jivemacro_uid="_14737932243239364"&gt;
&lt;P&gt;Binary [&lt;SPAN style="font-size: 13.3333px;"&gt;Datamart&lt;/SPAN&gt;.qvw];&lt;/P&gt;
&lt;P&gt;MapaPrefixos:&lt;/P&gt;
&lt;P&gt;Mapping LOAD * Resident Prefixos;&lt;/P&gt;
&lt;P&gt;Drop Table Prefixos;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas how could I improve it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2016 19:01:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Binary-Load-x-Mapping-Table/m-p/1183203#M628241</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2016-09-13T19:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: Binary Load x Mapping Table</title>
      <link>https://community.qlik.com/t5/QlikView/Binary-Load-x-Mapping-Table/m-p/1183204#M628242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the problem here is that the mapping table won't exist after the Datamart.qvw runs through and if it doesn't exits, you would not be able to do a applymap on it. I think what you have is one of the option, the other being bringing the mapping load table directly in your new qvw after saving it into a qvd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Prefixos:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;mapping&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD DISTINCT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; PREFIXO,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; isnull(b.OPERADORA_TRATADA,PRESTADORA) as PRESTADORA&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM TB_PREFIXOS.qvd (qvd)&lt;/STRONG&gt;&lt;STRONG style="font-size: 10pt; line-height: 1.5em;"&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2016 19:15:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Binary-Load-x-Mapping-Table/m-p/1183204#M628242</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-13T19:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: Binary Load x Mapping Table</title>
      <link>https://community.qlik.com/t5/QlikView/Binary-Load-x-Mapping-Table/m-p/1183205#M628243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny is right. The lifetime of a Mapping table extends to the end of the current script run. Not a second longer.. Mapping tables do not survive the current cycle as they aren't really meant to be more than temporary but extremeley fast translation tables. Ad hoc solutions ("hacks") so to say. A mapping table is also - and by design - never a part of a data mart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need a mapping table in different places, recreate it in those places. It makes no use to load it in one run and use it only in the next run. Although you may have sensible use cases.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2016 20:15:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Binary-Load-x-Mapping-Table/m-p/1183205#M628243</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-09-13T20:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: Binary Load x Mapping Table</title>
      <link>https://community.qlik.com/t5/QlikView/Binary-Load-x-Mapping-Table/m-p/1183206#M628244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Clever,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe using some loop to identify tables with names like '&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #f8f8f8;"&gt;Mapa*&lt;/SPAN&gt;' and mapping loading them resident, droping the source table afterwards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You just would need to purge the mapping prefix in your Datamart.qvw and could include such a code snippet as some sort of standard transformation in your target qvws.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2016 21:08:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Binary-Load-x-Mapping-Table/m-p/1183206#M628244</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-09-13T21:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: Binary Load x Mapping Table</title>
      <link>https://community.qlik.com/t5/QlikView/Binary-Load-x-Mapping-Table/m-p/1183207#M628245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all.&lt;/P&gt;&lt;P&gt;As I was thinking a mapping table does not survive the end of script;&lt;/P&gt;&lt;P&gt;I was hoping there´s a "hack", but it seems there´s not &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Going to test what is faster:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Resident load of a table from datamart&lt;/LI&gt;&lt;LI&gt;Loading a qvd (unfortunately a mapping load seems to discard a optimized load too &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt; )&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2016 21:52:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Binary-Load-x-Mapping-Table/m-p/1183207#M628245</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2016-09-13T21:52:39Z</dc:date>
    </item>
  </channel>
</rss>

