<?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: new table when using applymap with resident in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/new-table-when-using-applymap-with-resident/m-p/1177270#M381973</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I really need the script &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;This code script is a simplified version of the real script.&lt;/P&gt;&lt;P&gt;In my case I need to resuse the table to add fields to it. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Jul 2016 10:05:45 GMT</pubDate>
    <dc:creator>curiousfellow</dc:creator>
    <dc:date>2016-07-29T10:05:45Z</dc:date>
    <item>
      <title>new table when using applymap with resident</title>
      <link>https://community.qlik.com/t5/QlikView/new-table-when-using-applymap-with-resident/m-p/1177265#M381968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In some examples of how to use applymap tables are "resused".&lt;/P&gt;&lt;P&gt;In&amp;nbsp;&amp;nbsp; &lt;A href="https://community.qlik.com/qlik-blogpost/2756"&gt;Don't join - use Applymap instead&lt;/A&gt;&lt;/P&gt;&lt;P&gt;the code is&amp;nbsp; :&lt;/P&gt;&lt;P&gt;Orders :&lt;/P&gt;&lt;P&gt;Load *&lt;/P&gt;&lt;P&gt;Applymap .......&lt;/P&gt;&lt;P&gt;from Orders ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I do the same I get a second table with the same name added "-1" to it. &lt;/P&gt;&lt;P&gt;Only difference in my script is that I load from a resident table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it not possible to add a field with applymap to a resident table ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 09:38:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/new-table-when-using-applymap-with-resident/m-p/1177265#M381968</guid>
      <dc:creator>curiousfellow</dc:creator>
      <dc:date>2016-07-29T09:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: new table when using applymap with resident</title>
      <link>https://community.qlik.com/t5/QlikView/new-table-when-using-applymap-with-resident/m-p/1177266#M381969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure I understand the issue? In the attached application what issue have you been facing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 09:40:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/new-table-when-using-applymap-with-resident/m-p/1177266#M381969</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-29T09:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: new table when using applymap with resident</title>
      <link>https://community.qlik.com/t5/QlikView/new-table-when-using-applymap-with-resident/m-p/1177267#M381970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the noconcatenate Function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;addres_New: noconcatenate&lt;/P&gt;&lt;P&gt;load *,&lt;/P&gt;&lt;P&gt;Applymap('map_city_to_addres',number,null()) as city&lt;/P&gt;&lt;P&gt;resident address&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table &lt;SPAN style="font-size: 13.3333px;"&gt;address;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me know&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 09:41:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/new-table-when-using-applymap-with-resident/m-p/1177267#M381970</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2016-07-29T09:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: new table when using applymap with resident</title>
      <link>https://community.qlik.com/t5/QlikView/new-table-when-using-applymap-with-resident/m-p/1177268#M381971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's because you are changing the schema while using the same table name. You will need to explicitly concatenate:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;concatenate(Orders)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load *&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Applymap .......&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;from Orders ;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;The problem has nothing to do with the applymap.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 09:43:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/new-table-when-using-applymap-with-resident/m-p/1177268#M381971</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-07-29T09:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: new table when using applymap with resident</title>
      <link>https://community.qlik.com/t5/QlikView/new-table-when-using-applymap-with-resident/m-p/1177269#M381972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure if you really need such a script.&lt;/P&gt;&lt;P&gt;Maybe that's a special needs for your Data model but I would rather make it more clean:&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14697858710388899 jive_text_macro" jivemacro_uid="_14697858710388899" modifiedtitle="true"&gt;
&lt;P&gt;map_city_to_addres:&lt;/P&gt;
&lt;P&gt;Mapping LOAD * INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; number, city&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, city1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, city2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, city3&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, city4&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5, city5&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;address:&lt;/P&gt;
&lt;P&gt;LOAD *,&lt;/P&gt;
&lt;P&gt;Applymap('map_city_to_addres',number,null()) as city &lt;/P&gt;
&lt;P&gt;INLINE [&lt;/P&gt;
&lt;P&gt;number,addres&lt;/P&gt;
&lt;P&gt;1,address1&lt;/P&gt;
&lt;P&gt;2,address2&lt;/P&gt;
&lt;P&gt;3,address3&lt;/P&gt;
&lt;P&gt;4,address4&lt;/P&gt;
&lt;P&gt;5,address5&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table view:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screenshot_1.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/132989_Screenshot_1.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 09:51:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/new-table-when-using-applymap-with-resident/m-p/1177269#M381972</guid>
      <dc:creator>MindaugasBacius</dc:creator>
      <dc:date>2016-07-29T09:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: new table when using applymap with resident</title>
      <link>https://community.qlik.com/t5/QlikView/new-table-when-using-applymap-with-resident/m-p/1177270#M381973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I really need the script &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;This code script is a simplified version of the real script.&lt;/P&gt;&lt;P&gt;In my case I need to resuse the table to add fields to it. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 10:05:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/new-table-when-using-applymap-with-resident/m-p/1177270#M381973</guid>
      <dc:creator>curiousfellow</dc:creator>
      <dc:date>2016-07-29T10:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: new table when using applymap with resident</title>
      <link>https://community.qlik.com/t5/QlikView/new-table-when-using-applymap-with-resident/m-p/1177271#M381974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this maybe:&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14697881695495787" jivemacro_uid="_14697881695495787" modifiedtitle="true"&gt;
&lt;P&gt;address:&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [&lt;/P&gt;
&lt;P&gt;number,addres&lt;/P&gt;
&lt;P&gt;1,address1&lt;/P&gt;
&lt;P&gt;2,address2&lt;/P&gt;
&lt;P&gt;3,address3&lt;/P&gt;
&lt;P&gt;4,address4&lt;/P&gt;
&lt;P&gt;5,address5&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;city:&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; number, city&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, city1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, city2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, city3&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, city4&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5, city5&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;map_city_to_addres:&lt;/P&gt;
&lt;P&gt;Mapping Load number, city resident city;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;QUALIFY *;&lt;/P&gt;
&lt;P&gt;addres:&lt;/P&gt;
&lt;P&gt;load *,&lt;/P&gt;
&lt;P&gt;Applymap('map_city_to_addres',number,null()) as city&lt;/P&gt;
&lt;P&gt;resident address;&lt;/P&gt;
&lt;P&gt;UNQUALIFY *;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;drop table city; &lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screenshot_1.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/132995_Screenshot_1.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or instead of Qualify rename the fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 10:31:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/new-table-when-using-applymap-with-resident/m-p/1177271#M381974</guid>
      <dc:creator>MindaugasBacius</dc:creator>
      <dc:date>2016-07-29T10:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: new table when using applymap with resident</title>
      <link>https://community.qlik.com/t5/QlikView/new-table-when-using-applymap-with-resident/m-p/1177272#M381975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, in case it helps: You can use several Applymap in the same LOAD sentence, and also you can use AplpyMap inseide an applymap:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Applymap('Map_City', FieldID) as City,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Applymap('Map_Country', &lt;SPAN style="font-size: 13.3333px;"&gt;Applymap('Map_City', FieldID)) as Country,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another technique is using precedent load, wich one load uses the data from the LOAD after it:&lt;/P&gt;&lt;P&gt;LOAD *, ApplyMap('Map_Country', City) as Country; // Here City field is used. (And loaded because of '*')&lt;/P&gt;&lt;P&gt;LOAD *, &lt;SPAN style="font-size: 13.3333px;"&gt;Applymap('Map_City', FieldID) as City&amp;nbsp; // Here City field is generated&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 10:44:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/new-table-when-using-applymap-with-resident/m-p/1177272#M381975</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-07-29T10:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: new table when using applymap with resident</title>
      <link>https://community.qlik.com/t5/QlikView/new-table-when-using-applymap-with-resident/m-p/1177273#M381976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I use your suggestion , new rows are added. I want the city added to the row with the corresponding number in table address.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 10:55:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/new-table-when-using-applymap-with-resident/m-p/1177273#M381976</guid>
      <dc:creator>curiousfellow</dc:creator>
      <dc:date>2016-07-29T10:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: new table when using applymap with resident</title>
      <link>https://community.qlik.com/t5/QlikView/new-table-when-using-applymap-with-resident/m-p/1177274#M381977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for not being clear. What i want to prevent is that a new table is being created.&lt;/P&gt;&lt;P&gt;In the script of Henric Cronström, will there a new table Orders-1 be created ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 11:00:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/new-table-when-using-applymap-with-resident/m-p/1177274#M381977</guid>
      <dc:creator>curiousfellow</dc:creator>
      <dc:date>2016-07-29T11:00:18Z</dc:date>
    </item>
  </channel>
</rss>

