<?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: Inline mapping load before binary load? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Inline-mapping-load-before-binary-load/m-p/1507716#M601248</link>
    <description>&lt;P&gt;Do you mean that you&lt;/P&gt;&lt;P&gt;1. Create the mapping tables in App 1.&lt;BR /&gt;2. Then you binary load App 1 into your app (App 2).&lt;BR /&gt;3. And then you try to do an applymap with the tables created in App 1?&lt;/P&gt;&lt;P&gt;If that it the case then that is not possible. Mapping tables are automatically dropped at the end of script execution, so the mapping tables you created in App 1 no longer exist.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you'd like o use them as mapping tables then I suggest you create them as permanent tables in App 1, not mapping tables.&lt;/P&gt;&lt;P&gt;Then in your app, do a resident load into a new mapping table and drop the old table (from App 1).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, in the first app (App 1), create the table as a regular table (not mapping). Here's a simple table...&lt;/P&gt;&lt;P&gt;States:&lt;BR /&gt;Load * Inline [&lt;BR /&gt;Abbrev, StateName&lt;BR /&gt;AL, Alabama&lt;BR /&gt;NY, New York&lt;BR /&gt;TX, Texas&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;Then in your new app (App 2)&lt;BR /&gt;&lt;BR /&gt;Binary 'App 1'; &amp;nbsp;// You would put the real app name here.&lt;BR /&gt;&lt;BR /&gt;State_Map:&lt;BR /&gt;Mapping Load&lt;BR /&gt;&amp;nbsp; &amp;nbsp;Abbrev,&lt;BR /&gt;&amp;nbsp; &amp;nbsp;StateName&lt;BR /&gt;Resident States;&lt;BR /&gt;&lt;BR /&gt;Drop Table States; &amp;nbsp;//We don't need it anymore, because we created a mapping table from it.&lt;BR /&gt;&lt;BR /&gt;// then you can use State_Map in an ApplyMap.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;</description>
    <pubDate>Fri, 16 Nov 2018 06:25:23 GMT</pubDate>
    <dc:creator>lblumenfeld</dc:creator>
    <dc:date>2018-11-16T06:25:23Z</dc:date>
    <item>
      <title>Inline mapping load before binary load?</title>
      <link>https://community.qlik.com/t5/QlikView/Inline-mapping-load-before-binary-load/m-p/1507714#M601247</link>
      <description>&lt;P&gt;Hi all,&lt;BR /&gt;&lt;BR /&gt;In my data model qvf, it contains all the inline mapping load tables. However, in my application app, I realised that my applymap() script do not get loaded in my application app after I use binary load.&lt;BR /&gt;&lt;BR /&gt;Is there any way to do this?&lt;BR /&gt;&lt;BR /&gt;Much help is appreciated. Thank you so much.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:13:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inline-mapping-load-before-binary-load/m-p/1507714#M601247</guid>
      <dc:creator>NewToQlik</dc:creator>
      <dc:date>2024-11-16T05:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: Inline mapping load before binary load?</title>
      <link>https://community.qlik.com/t5/QlikView/Inline-mapping-load-before-binary-load/m-p/1507716#M601248</link>
      <description>&lt;P&gt;Do you mean that you&lt;/P&gt;&lt;P&gt;1. Create the mapping tables in App 1.&lt;BR /&gt;2. Then you binary load App 1 into your app (App 2).&lt;BR /&gt;3. And then you try to do an applymap with the tables created in App 1?&lt;/P&gt;&lt;P&gt;If that it the case then that is not possible. Mapping tables are automatically dropped at the end of script execution, so the mapping tables you created in App 1 no longer exist.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you'd like o use them as mapping tables then I suggest you create them as permanent tables in App 1, not mapping tables.&lt;/P&gt;&lt;P&gt;Then in your app, do a resident load into a new mapping table and drop the old table (from App 1).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, in the first app (App 1), create the table as a regular table (not mapping). Here's a simple table...&lt;/P&gt;&lt;P&gt;States:&lt;BR /&gt;Load * Inline [&lt;BR /&gt;Abbrev, StateName&lt;BR /&gt;AL, Alabama&lt;BR /&gt;NY, New York&lt;BR /&gt;TX, Texas&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;Then in your new app (App 2)&lt;BR /&gt;&lt;BR /&gt;Binary 'App 1'; &amp;nbsp;// You would put the real app name here.&lt;BR /&gt;&lt;BR /&gt;State_Map:&lt;BR /&gt;Mapping Load&lt;BR /&gt;&amp;nbsp; &amp;nbsp;Abbrev,&lt;BR /&gt;&amp;nbsp; &amp;nbsp;StateName&lt;BR /&gt;Resident States;&lt;BR /&gt;&lt;BR /&gt;Drop Table States; &amp;nbsp;//We don't need it anymore, because we created a mapping table from it.&lt;BR /&gt;&lt;BR /&gt;// then you can use State_Map in an ApplyMap.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Nov 2018 06:25:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inline-mapping-load-before-binary-load/m-p/1507716#M601248</guid>
      <dc:creator>lblumenfeld</dc:creator>
      <dc:date>2018-11-16T06:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: Inline mapping load before binary load?</title>
      <link>https://community.qlik.com/t5/QlikView/Inline-mapping-load-before-binary-load/m-p/1507765#M601249</link>
      <description>&lt;P&gt;The binary load MUST be the FIRST command in the script. There's no way around that. But the binary load will only load the entire data model from another qvw or qvf file, not its script. So I don't understand why you have problems with applymap. That would mean you're doing additional processing of data in your script after the binary load. And if that's the case you can create the needed mapping tables directly after the binary load and then later in the script use the applymap function to use your mapping tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this didn't answer your question please give some more information about what you're doing in your script and what result you are afger.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Nov 2018 07:35:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inline-mapping-load-before-binary-load/m-p/1507765#M601249</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2018-11-16T07:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: Inline mapping load before binary load?</title>
      <link>https://community.qlik.com/t5/QlikView/Inline-mapping-load-before-binary-load/m-p/1508226#M601251</link>
      <description>&lt;P&gt;&amp;nbsp;Both proposed solution is the same, and I managed to get it working.&amp;nbsp;&lt;SPAN&gt;Thanks for all your help!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;FONT color="#FF0000"&gt;EDIT&lt;/FONT&gt;: I found some problems in my data, I hope I am still able to get some help.&lt;BR /&gt;&lt;BR /&gt;In App 1, I have loaded my tables normally, Eg. Table1, Table2.&lt;BR /&gt;&lt;BR /&gt;In App 2, I binary loaded App 1, then created the mapping tables. However, I want to add a new column in Table1, that uses the applymap(). How do I achieve this?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Nov 2018 11:34:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inline-mapping-load-before-binary-load/m-p/1508226#M601251</guid>
      <dc:creator>NewToQlik</dc:creator>
      <dc:date>2018-11-17T11:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: Inline mapping load before binary load?</title>
      <link>https://community.qlik.com/t5/QlikView/Inline-mapping-load-before-binary-load/m-p/1508550#M601252</link>
      <description>&lt;P&gt;I tried loading Table1 in App1 and left joining it in App2 but it did not work. Any ideas?&lt;/P&gt;</description>
      <pubDate>Sun, 18 Nov 2018 02:02:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inline-mapping-load-before-binary-load/m-p/1508550#M601252</guid>
      <dc:creator>NewToQlik</dc:creator>
      <dc:date>2018-11-18T02:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: Inline mapping load before binary load?</title>
      <link>https://community.qlik.com/t5/QlikView/Inline-mapping-load-before-binary-load/m-p/1508551#M601253</link>
      <description>Can you share your script in your app 2 where you have this left join ? And when you left join your table name will be Table1 right? So where are you using this applymap() and where you want to add this new column. You might have to do a resident load to add a new column on table1. I am assuming you were doing like&lt;BR /&gt;&lt;BR /&gt;1. Binary load your table1 into app2&lt;BR /&gt;2. Left Join(Table1)&lt;BR /&gt;Table2:&lt;BR /&gt;LOAD .....&lt;BR /&gt;FROM Table2source;&lt;BR /&gt;&lt;BR /&gt;May be here you can add Mapping table and use your apply map on below script.&lt;BR /&gt;&lt;BR /&gt;NoConcatenate&lt;BR /&gt;Finaltable:&lt;BR /&gt;LOAD *, Applymap() as yournewfield&lt;BR /&gt;Resident Table1;&lt;BR /&gt;&lt;BR /&gt;Drop Table Table1;</description>
      <pubDate>Sun, 18 Nov 2018 02:10:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inline-mapping-load-before-binary-load/m-p/1508551#M601253</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2018-11-18T02:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: Inline mapping load before binary load?</title>
      <link>https://community.qlik.com/t5/QlikView/Inline-mapping-load-before-binary-load/m-p/1508556#M601254</link>
      <description>&lt;P&gt;Hi, this is my script in App 1.&lt;/P&gt;&lt;P&gt;CRSE_GRADE_INPUT_MAP:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Key, Value&lt;BR /&gt;A+,12&lt;BR /&gt;A,11&lt;BR /&gt;A-,10&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;N_STDNT_ENRL_CV:&lt;BR /&gt;LEFT KEEP (ACAD_PROG) LOAD&lt;BR /&gt;EMPLID,&lt;BR /&gt;ACAD_CAREER ,&lt;BR /&gt;INSTITUTION ,&lt;BR /&gt;STRM ,&lt;BR /&gt;CLASS_NBR ,CRSE_GRADE_INPUT,&lt;BR /&gt;if(CRSE_GRADE_INPUT='',NULL(),CRSE_GRADE_OFF) as CRSE_GRADE_OFF,&lt;BR /&gt;GRADING_SCHEME_ENR, GRADING_BASIS_ENRL&lt;BR /&gt;FROM&amp;nbsp;xxx;&lt;BR /&gt;&lt;BR /&gt;App 2:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;CRSE_GRADE_INPUT_MAP1:&lt;BR /&gt;mapping LOAD&lt;BR /&gt;CRSE_GRADE_INPUT_MAPKey, CRSE_GRADE_INPUT_MAPValue&lt;BR /&gt;RESIDENT CRSE_GRADE_INPUT_MAP;&lt;/P&gt;&lt;P&gt;drop table CRSE_GRADE_INPUT_MAP;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;left JOIN (N_STDNT_ENRL_CV) LOAD&lt;BR /&gt;EMPLID,&lt;BR /&gt;ACAD_CAREER ,&lt;BR /&gt;INSTITUTION ,&lt;BR /&gt;STRM ,&lt;BR /&gt;CLASS_NBR ,&lt;BR /&gt;CRSE_GRADE_OFF,&lt;BR /&gt;Dual(CRSE_GRADE_INPUT, ApplyMap('CRSE_GRADE_INPUT_MAP1', CRSE_GRADE_INPUT)) as CRSE_GRADE_INPUT_CORRELATION ,&lt;BR /&gt;Resident&amp;nbsp;&lt;SPAN&gt;N_STDNT_ENRL_CV;&lt;BR /&gt;&lt;BR /&gt;Currently my data values are wrong when compared to another app without binary load. Any ideas?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Nov 2018 04:50:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inline-mapping-load-before-binary-load/m-p/1508556#M601254</guid>
      <dc:creator>NewToQlik</dc:creator>
      <dc:date>2018-11-18T04:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: Inline mapping load before binary load?</title>
      <link>https://community.qlik.com/t5/QlikView/Inline-mapping-load-before-binary-load/m-p/1508560#M601255</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;CRSE_GRADE_INPUT_MAP&lt;/STRONG&gt;:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LOAD * INLINE [&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Key, Value&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;A+,12&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;A,11&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;A-,10&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;CRSE_GRADE_INPUT_MAP1:&lt;BR /&gt;mapping LOAD&lt;BR /&gt;CRSE_GRADE_INPUT_MAPKey, CRSE_GRADE_INPUT_MAPValue&lt;BR /&gt;RESIDENT &lt;STRONG&gt;CRSE_GRADE_INPUT_MAP&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;drop table CRSE_GRADE_INPUT_MAP;&lt;/P&gt;&lt;P&gt;Your CRSE_GRADE_INPUT_MAP coming from App1 and Mapping load where you are doing a resident load the field name mismatch is happening. Your app1 CRSE grade table has Key and Value as your fields but in your mapping you are using different fields may be you want to use Key, and Value in your resident CRSE_Grade table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Updated to below :&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CRSE_GRADE_INPUT_MAP1:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mapping LOAD&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Key, Value&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RESIDENT&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;CRSE_GRADE_INPUT_MAP&lt;/STRONG&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Nov 2018 05:28:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inline-mapping-load-before-binary-load/m-p/1508560#M601255</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2018-11-18T05:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: Inline mapping load before binary load?</title>
      <link>https://community.qlik.com/t5/QlikView/Inline-mapping-load-before-binary-load/m-p/1508602#M601256</link>
      <description>&lt;P&gt;I have changed them but it still did not work, the data is still incorrect. Any suggestions?&lt;/P&gt;</description>
      <pubDate>Sun, 18 Nov 2018 11:43:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inline-mapping-load-before-binary-load/m-p/1508602#M601256</guid>
      <dc:creator>NewToQlik</dc:creator>
      <dc:date>2018-11-18T11:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: Inline mapping load before binary load?</title>
      <link>https://community.qlik.com/t5/QlikView/Inline-mapping-load-before-binary-load/m-p/1508644#M601257</link>
      <description>&lt;P&gt;I missed this why you doing Left join to same table with resident loading same table. You can just do like in your 2nd app&lt;/P&gt;&lt;P&gt;Noconcatenate&lt;/P&gt;&lt;P&gt;FinalStudentEnrlCV:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;LOAD&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;EMPLID,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ACAD_CAREER ,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;INSTITUTION ,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;STRM ,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CLASS_NBR ,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CRSE_GRADE_OFF,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dual(CRSE_GRADE_INPUT, ApplyMap('CRSE_GRADE_INPUT_MAP1', CRSE_GRADE_INPUT)) as CRSE_GRADE_INPUT_CORRELATION ,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Resident&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;N_STDNT_ENRL_CV;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Drop Table N_STDNT_ENRL_CV;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Rename Table FinalStudentEnrlCV to N_STDNT_ENRL_CV;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Nov 2018 15:44:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inline-mapping-load-before-binary-load/m-p/1508644#M601257</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2018-11-18T15:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: Inline mapping load before binary load?</title>
      <link>https://community.qlik.com/t5/QlikView/Inline-mapping-load-before-binary-load/m-p/1508720#M601258</link>
      <description>&lt;P&gt;Thank you very much! I have one last problem with my data. Lets say I created a new table to store as below.&lt;/P&gt;&lt;P&gt;N_STDNT_TERM_CV:&lt;BR /&gt;LEFT KEEP (ACAD_PROG) LOAD&lt;BR /&gt;EMPLID ,&lt;BR /&gt;ACAD_CAREER ,&lt;BR /&gt;STRM ,&lt;BR /&gt;Num((CUR_GPA),'##.00') as CUR_GPA,&lt;BR /&gt;Num((CUM_GPA),'##.00') as CUM_GPA&lt;BR /&gt;FROM&amp;nbsp;xxx;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;MAX_STRM:&lt;BR /&gt;LOAD EMPLID ,ACAD_CAREER,INSTITUTION,MAX(STRM) as STRM1 RESIDENT N_STDNT_TERM_CV&lt;BR /&gt;where NOT ISNULL(CUM_GPA) group by EMPLID,ACAD_CAREER,INSTITUTION;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;JOIN(MAX_STRM)&lt;BR /&gt;LOAD EMPLID,ACAD_CAREER,INSTITUTION,ADMIT_TERM RESIDENT ACAD_PROG WHERE EXISTS (ADMIT_TERM);&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;LATEST_STRM_GPA:&lt;BR /&gt;LOAD EMPLID,ACAD_CAREER,INSTITUTION,STRM1,&lt;BR /&gt;'20'&amp;amp;left(STRM1,2) as STRM_YEAR RESIDENT MAX_STRM where not match(STRM1,ADMIT_TERM);&lt;/P&gt;&lt;P&gt;LEFT JOIN (LATEST_STRM_GPA)&lt;BR /&gt;&lt;BR /&gt;LOAD EMPLID ,ACAD_CAREER,INSTITUTION,STRM as STRM1,CUM_GPA as CUM_GPA_LAST&lt;BR /&gt;RESIDENT N_STDNT_TERM_CV&lt;BR /&gt;where exists(EMPLID)and exists(STRM);&lt;/P&gt;&lt;P&gt;drop table N_STDNT_TERM_CV;&lt;/P&gt;&lt;P&gt;drop table MAX_STRM;&lt;BR /&gt;&lt;BR /&gt;I am creating a new table to store EMPLIDs with a max(STRM) GPA, basically I am getting the latest GPA of an EMPLID grouped by the ACAD_CAREER. But I realised that after I binary loaded App1, the data is not recognized. Any thoughts about this behaviour?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 05:14:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inline-mapping-load-before-binary-load/m-p/1508720#M601258</guid>
      <dc:creator>NewToQlik</dc:creator>
      <dc:date>2018-11-19T05:14:21Z</dc:date>
    </item>
  </channel>
</rss>

