<?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: Convert the Numbers into Names in a field. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Convert-the-Numbers-into-Names-in-a-field/m-p/98307#M15714</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to replace IDs by descriptions in load script it is good to use applymap() function. Yo can define the map in the beginning of your script and then use it whetever you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case the map will be:&lt;/P&gt;&lt;P&gt;[M_gender]:&lt;/P&gt;&lt;P&gt;mapping load * inline [&lt;/P&gt;&lt;P&gt;gender_ID,gender_text&lt;/P&gt;&lt;P&gt;0,Female&lt;/P&gt;&lt;P&gt;1,Male&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the function during the resident load will be like:&lt;/P&gt;&lt;P&gt;applymap('M_gender',gender) as gender_text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can find more about applymap here &lt;A href="https://community.qlik.com/qlik-blogpost/4267"&gt;Data Cleansing&lt;/A&gt; or on qlik help &lt;A href="https://help.qlik.com/en-US/sense/June2018/Subsystems/Hub/Content/Scripting/MappingFunctions/ApplyMap.htm" title="https://help.qlik.com/en-US/sense/June2018/Subsystems/Hub/Content/Scripting/MappingFunctions/ApplyMap.htm"&gt;https://help.qlik.com/en-US/sense/June2018/Subsystems/Hub/Content/Scripting/MappingFunctions/ApplyMap.htm&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will help &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maria&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jul 2018 05:58:20 GMT</pubDate>
    <dc:creator>JaMajka1</dc:creator>
    <dc:date>2018-07-18T05:58:20Z</dc:date>
    <item>
      <title>Convert the Numbers into Names in a field.</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-the-Numbers-into-Names-in-a-field/m-p/98305#M15712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have column like these&lt;/P&gt;&lt;P&gt;Gender&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;0&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want output 1 with Male, 0 with Female.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gender&lt;/P&gt;&lt;P&gt;Male&lt;/P&gt;&lt;P&gt;Female&lt;/P&gt;&lt;P&gt;Male&lt;/P&gt;&lt;P&gt;Male&lt;/P&gt;&lt;P&gt;Female;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2018 03:25:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-the-Numbers-into-Names-in-a-field/m-p/98305#M15712</guid>
      <dc:creator>Kohli</dc:creator>
      <dc:date>2018-07-18T03:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Convert the Numbers into Names in a field.</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-the-Numbers-into-Names-in-a-field/m-p/98306#M15713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use expression in the list box like:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If(Gender=1, 'Male', 'Female')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;For script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;If(Gender=1, 'Male', 'Female') as Gender&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;from &amp;lt;&amp;gt;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2018 04:37:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-the-Numbers-into-Names-in-a-field/m-p/98306#M15713</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-07-18T04:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Convert the Numbers into Names in a field.</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-the-Numbers-into-Names-in-a-field/m-p/98307#M15714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to replace IDs by descriptions in load script it is good to use applymap() function. Yo can define the map in the beginning of your script and then use it whetever you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case the map will be:&lt;/P&gt;&lt;P&gt;[M_gender]:&lt;/P&gt;&lt;P&gt;mapping load * inline [&lt;/P&gt;&lt;P&gt;gender_ID,gender_text&lt;/P&gt;&lt;P&gt;0,Female&lt;/P&gt;&lt;P&gt;1,Male&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the function during the resident load will be like:&lt;/P&gt;&lt;P&gt;applymap('M_gender',gender) as gender_text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can find more about applymap here &lt;A href="https://community.qlik.com/qlik-blogpost/4267"&gt;Data Cleansing&lt;/A&gt; or on qlik help &lt;A href="https://help.qlik.com/en-US/sense/June2018/Subsystems/Hub/Content/Scripting/MappingFunctions/ApplyMap.htm" title="https://help.qlik.com/en-US/sense/June2018/Subsystems/Hub/Content/Scripting/MappingFunctions/ApplyMap.htm"&gt;https://help.qlik.com/en-US/sense/June2018/Subsystems/Hub/Content/Scripting/MappingFunctions/ApplyMap.htm&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will help &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maria&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2018 05:58:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-the-Numbers-into-Names-in-a-field/m-p/98307#M15714</guid>
      <dc:creator>JaMajka1</dc:creator>
      <dc:date>2018-07-18T05:58:20Z</dc:date>
    </item>
  </channel>
</rss>

