<?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 How do I convert a numeric variable to a string? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-do-I-convert-a-numeric-variable-to-a-string/m-p/1273375#M868660</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;I am trying to convert the values of a particular variable to a string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a variable that looks like this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Location&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;101&lt;/P&gt;&lt;P&gt;102&lt;/P&gt;&lt;P&gt;103&lt;/P&gt;&lt;P&gt;...etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I want it to look like this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Location&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;'Hawaii'&lt;/P&gt;&lt;P&gt;'New York'&lt;/P&gt;&lt;P&gt;'Chicago'&lt;/P&gt;&lt;P&gt;...etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem I am running into is that my variable has &lt;EM&gt;over 100 different options&lt;/EM&gt;, so I am finding that QlikView will not allow me to create a calculated dimension like:&lt;/P&gt;&lt;P&gt;=IF(Location=101,Hawaii'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(Location=102,'New York')) etc. for more than 99 locations. It gives me an error message if I go past 99 "if" statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a different way to do what I want? Do I need to edit the variable values in the script, and if so, how would I do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>How do I convert a numeric variable to a string?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-convert-a-numeric-variable-to-a-string/m-p/1273375#M868660</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;I am trying to convert the values of a particular variable to a string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a variable that looks like this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Location&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;101&lt;/P&gt;&lt;P&gt;102&lt;/P&gt;&lt;P&gt;103&lt;/P&gt;&lt;P&gt;...etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I want it to look like this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Location&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;'Hawaii'&lt;/P&gt;&lt;P&gt;'New York'&lt;/P&gt;&lt;P&gt;'Chicago'&lt;/P&gt;&lt;P&gt;...etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem I am running into is that my variable has &lt;EM&gt;over 100 different options&lt;/EM&gt;, so I am finding that QlikView will not allow me to create a calculated dimension like:&lt;/P&gt;&lt;P&gt;=IF(Location=101,Hawaii'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(Location=102,'New York')) etc. for more than 99 locations. It gives me an error message if I go past 99 "if" statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a different way to do what I want? Do I need to edit the variable values in the script, and if so, how would I do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-convert-a-numeric-variable-to-a-string/m-p/1273375#M868660</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do I convert a numeric variable to a string?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-convert-a-numeric-variable-to-a-string/m-p/1273376#M868661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use a table to map your values:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3497"&gt;Mapping … and not the geographical kind&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2016 21:29:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-convert-a-numeric-variable-to-a-string/m-p/1273376#M868661</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-12-02T21:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: How do I convert a numeric variable to a string?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-convert-a-numeric-variable-to-a-string/m-p/1273377#M868662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you talking about field Location. ?&lt;/P&gt;&lt;P&gt;You can use a mapping table from excel sheet. &lt;/P&gt;&lt;P&gt;Can you tell us from where are you getting this Location information from i mean the ID's and the LocationNames? Is it coming from an excel sheet, if Yes, you can use Mapping functions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAPTABLE:&lt;/P&gt;&lt;P&gt;MAPPING LOAD LocID, LOCATION&lt;/P&gt;&lt;P&gt;FROM yourexcelfilename.xlsx. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ACTUALTAB:&lt;/P&gt;&lt;P&gt;LOAD col1, col2, Applymap('MAPTABLE', LocID) AS Location&lt;/P&gt;&lt;P&gt;FROM yourdatasource;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2016 21:31:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-convert-a-numeric-variable-to-a-string/m-p/1273377#M868662</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2016-12-02T21:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do I convert a numeric variable to a string?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-convert-a-numeric-variable-to-a-string/m-p/1273378#M868663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try to implement mapping table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/ScriptPrefixes/Mapping.htm" style="font-size: 10pt;" title="https://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/ScriptPrefixes/Mapping.htm"&gt;https://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/ScriptPrefixes/Mapping.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;I am attaching an example as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/145565_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2016 21:32:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-convert-a-numeric-variable-to-a-string/m-p/1273378#M868663</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2016-12-02T21:32:37Z</dc:date>
    </item>
  </channel>
</rss>

