<?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 ApplyMap in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/ApplyMap/m-p/160067#M34477</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I think I got you.&lt;/P&gt;&lt;P&gt;Definitely you need to use Applymap.&lt;/P&gt;&lt;P&gt;Make sure you're using it well.&lt;/P&gt;&lt;P&gt;The point of Applymap is that you have to create a mapping load table with two fields as this way :&lt;/P&gt;&lt;P style="font-weight: bold"&gt;ApplymapTable :&lt;/P&gt;&lt;P&gt;mapping load&lt;/P&gt;&lt;P&gt;firstValueToCompare,&lt;/P&gt;&lt;P&gt;valueToReplace&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Base Table :&lt;/P&gt;&lt;P&gt;firstValueToCompare,&lt;/P&gt;&lt;P&gt;applyMap('ApplymapTable', firstValueToCompare, 'defaultValueIfNotFound') as applyMapField&lt;/P&gt;&lt;P&gt;(*) The order of the fields in the Mapping table (Applymap table) is important. I'm telling you because I've been stuck with that one day.&lt;/P&gt;&lt;P&gt;I hope that it helps!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Oct 2010 14:53:44 GMT</pubDate>
    <dc:creator>marcel_olmo</dc:creator>
    <dc:date>2010-10-27T14:53:44Z</dc:date>
    <item>
      <title>ApplyMap</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMap/m-p/160064#M34474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi...&lt;/P&gt;&lt;P&gt;Can we use applymap only during load?&lt;/P&gt;&lt;P&gt;Can it be used in the development area? I have about 40 columns and based on the id returned, I have to choose the column name for displaying the value.&lt;/P&gt;&lt;P&gt;I have column names as C1, C2, C3..............................C24,C25&lt;/P&gt;&lt;P&gt;Now, based on the id field 1,2,3,4,....25 I have to choose the column C1,C2,C3.......C25 resp....&lt;/P&gt;&lt;P&gt;Can i use apply map in the expression section of a straight table?&lt;/P&gt;&lt;P&gt;Any suggestions how i go about this?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Oct 2010 03:14:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMap/m-p/160064#M34474</guid>
      <dc:creator />
      <dc:date>2010-10-27T03:14:47Z</dc:date>
    </item>
    <item>
      <title>ApplyMap</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMap/m-p/160065#M34475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Thavasikumar, I don't get it. Why do you want to do it in the expression section?&lt;/P&gt;&lt;P&gt;In fact I've never done something like this.&lt;/P&gt;&lt;P&gt;In this case I always do two options :&lt;/P&gt;&lt;P&gt;1- Doing the ApplyMap in the Load Script.&lt;/P&gt;&lt;P&gt;2-Put directly the field that you wanted to be with the applymap directly on the straight table (because if the data is well loaded, it doesn't matter if you put the column of C1,...,C25 or the column 1,....,25.&lt;/P&gt;&lt;P&gt;PS : If you insist to do it by expression, maybe you can do a little trick and put that the column of 1,...25 is equal to left('firstColumn',1) of the column C1,....C25.&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;See you around!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Oct 2010 07:13:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMap/m-p/160065#M34475</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2010-10-27T07:13:30Z</dc:date>
    </item>
    <item>
      <title>ApplyMap</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMap/m-p/160066#M34476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi...&lt;/P&gt;&lt;P&gt;To explain it better,&lt;/P&gt;&lt;P&gt;I have a straight table with two dimensions, question id and question. I have to display the score for each of the questions. The database consists of 44 columns for the 44 questions. Now, I can manually put 44 if statements to compare the question id and get the respective question score. I wanted to know if there is an easier way like decode statement in sql.&lt;/P&gt;&lt;P&gt;Eg:decode(question_id,1,C1,2,C2,........,44,C44,0)&lt;/P&gt;&lt;P&gt;But, nothing of this form is available in qlikview and the closest thing resembling to decode was applymap but even that doesnt work as it returns C1 as a string than as a column value.&lt;/P&gt;&lt;P&gt;So. I am not sure if theres an alternative to this and I will have to put in 44 if...else statements to check for each of the question_ids.&lt;/P&gt;&lt;P&gt;Thanks for inputs.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Oct 2010 14:32:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMap/m-p/160066#M34476</guid>
      <dc:creator />
      <dc:date>2010-10-27T14:32:34Z</dc:date>
    </item>
    <item>
      <title>ApplyMap</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMap/m-p/160067#M34477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I think I got you.&lt;/P&gt;&lt;P&gt;Definitely you need to use Applymap.&lt;/P&gt;&lt;P&gt;Make sure you're using it well.&lt;/P&gt;&lt;P&gt;The point of Applymap is that you have to create a mapping load table with two fields as this way :&lt;/P&gt;&lt;P style="font-weight: bold"&gt;ApplymapTable :&lt;/P&gt;&lt;P&gt;mapping load&lt;/P&gt;&lt;P&gt;firstValueToCompare,&lt;/P&gt;&lt;P&gt;valueToReplace&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Base Table :&lt;/P&gt;&lt;P&gt;firstValueToCompare,&lt;/P&gt;&lt;P&gt;applyMap('ApplymapTable', firstValueToCompare, 'defaultValueIfNotFound') as applyMapField&lt;/P&gt;&lt;P&gt;(*) The order of the fields in the Mapping table (Applymap table) is important. I'm telling you because I've been stuck with that one day.&lt;/P&gt;&lt;P&gt;I hope that it helps!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Oct 2010 14:53:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMap/m-p/160067#M34477</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2010-10-27T14:53:44Z</dc:date>
    </item>
    <item>
      <title>ApplyMap</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMap/m-p/160068#M34478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcel,&lt;/P&gt;&lt;P&gt;I used applymap in the load process and added as an additional field. But, the problem I am facing is that when I use that field in the expression of a straight table, it interprets it as a string rather than column.&lt;/P&gt;&lt;P&gt;Map1:&lt;BR /&gt;mapping load * inline [&lt;BR /&gt;x,y&lt;BR /&gt;1,C1_1&lt;BR /&gt;2,C1_2&lt;BR /&gt;3,C1_3&lt;BR /&gt;4,C1_4&lt;BR /&gt;5,C1_5&lt;BR /&gt;6,C1_6&lt;BR /&gt;7,C1_7&lt;BR /&gt;8,C2_1&lt;BR /&gt;9,C2_2&lt;BR /&gt;10,C2_3&lt;BR /&gt;11,C2_4&lt;BR /&gt;12,C2_5&lt;BR /&gt;13,C2_6&lt;BR /&gt;14,C3_1&lt;BR /&gt;15,C3_2&lt;BR /&gt;16,C3_3&lt;BR /&gt;17,C3_4&lt;BR /&gt;18,C3_5&lt;BR /&gt;19,C3_6&lt;BR /&gt;20,C3_7&lt;BR /&gt;21,C3_8&lt;BR /&gt;22,C3_9&lt;BR /&gt;23,C3_10&lt;BR /&gt;24,C3_11&lt;BR /&gt;25,C3_12&lt;BR /&gt;26,C3_13&lt;BR /&gt;27,C3_14&lt;BR /&gt;28,C3_15&lt;BR /&gt;29,C3_16&lt;BR /&gt;30,C3_17&lt;BR /&gt;31,C3_18&lt;BR /&gt;32,C3_19&lt;BR /&gt;33,C3_20&lt;BR /&gt;34,C3_21&lt;BR /&gt;35,C3_22&lt;BR /&gt;36,C3_23&lt;BR /&gt;37,C3_24&lt;BR /&gt;38,C3_25&lt;BR /&gt;39,C4_1&lt;BR /&gt;40,C4_2&lt;BR /&gt;41,C4_3&lt;BR /&gt;42,C4_4&lt;BR /&gt;43,C4_5&lt;BR /&gt;44,C4_6&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;Question_Desc:&lt;BR /&gt;load&lt;BR /&gt;QUESTION_ID,&lt;BR /&gt;APPLYMAP('Map1',QUESTION_ID) AS QID,&lt;BR /&gt;QUESTION,&lt;BR /&gt;COMPONENT_ID;&lt;BR /&gt;SQL select id question_id, text question, component_id from Question;&lt;/P&gt;&lt;P&gt;Now, I have a straight table with dimensions component_id, question and the expression as QID.&lt;/P&gt;&lt;P&gt;The result is C1 getting displayed when the question id is 1. I want the value of column C1 to be displayed rather than the string 'C1'. I tried using the if statement and it works but wanted to know if qlikview has an alternative to map column names similar to decodes.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Oct 2010 16:05:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMap/m-p/160068#M34478</guid>
      <dc:creator />
      <dc:date>2010-10-27T16:05:06Z</dc:date>
    </item>
    <item>
      <title>ApplyMap</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMap/m-p/160069#M34479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you can use dual function . please refer to dual function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dual(QUESTION_ID,APPLYMAP('Map1',QUESTION_ID) )AS QID&lt;/P&gt;&lt;P&gt;if use num(QID) ,it will return the number ;on the other hand,if we use text(QID) ,it will return the text.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Oct 2010 16:18:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMap/m-p/160069#M34479</guid>
      <dc:creator />
      <dc:date>2010-10-27T16:18:58Z</dc:date>
    </item>
    <item>
      <title>ApplyMap</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMap/m-p/160070#M34480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The dual function will continue to return a text but qlikview wont be treating it as a column name. So, I ll still have to use the if statement to reference the column using the qid(numeric or text).&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Oct 2010 16:48:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMap/m-p/160070#M34480</guid>
      <dc:creator />
      <dc:date>2010-10-27T16:48:30Z</dc:date>
    </item>
  </channel>
</rss>

