<?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 Character to Number format conversions in qlikview in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Character-to-Number-format-conversions-in-qlikview/m-p/1425324#M429390</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;&amp;nbsp; I have an field which is being fetched from the DB using the format TO_CHAR(A). It will have 15 digits value like 328956000000532 randomly but in an String format because of the TO_CHAR Function. The problem is that now i need to get the first four digits of the field A which i have done through the function Left(A,4). Through this i got the first four digits separately. But now the problem is that i need to put another function which is an ApplyMap('XMapping',&lt;SPAN style="font-size: 13.3333px;"&gt;Left(A,4)&lt;/SPAN&gt;) which is not happening as i am getting an error &lt;STRONG&gt;Syntax Error &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;: Missing\Misplaced From&amp;nbsp; &lt;/STRONG&gt;. Without this Apply Map the dashboard is running fine. Any inputs on what could be the issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My guess is that since it is convert to Character through sql query it is not being able to map with the mapping table where the values are present as Number only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S : I have used the Num Function to convert the TO_CHAR value to an number but still getting the same issue. The value when put in an list box comes as Numeric only. is there any way to know whether the num function has applied correctly and the value is coming as Number format only?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Nov 2017 11:36:21 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-11-20T11:36:21Z</dc:date>
    <item>
      <title>Character to Number format conversions in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Character-to-Number-format-conversions-in-qlikview/m-p/1425324#M429390</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;&amp;nbsp; I have an field which is being fetched from the DB using the format TO_CHAR(A). It will have 15 digits value like 328956000000532 randomly but in an String format because of the TO_CHAR Function. The problem is that now i need to get the first four digits of the field A which i have done through the function Left(A,4). Through this i got the first four digits separately. But now the problem is that i need to put another function which is an ApplyMap('XMapping',&lt;SPAN style="font-size: 13.3333px;"&gt;Left(A,4)&lt;/SPAN&gt;) which is not happening as i am getting an error &lt;STRONG&gt;Syntax Error &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;: Missing\Misplaced From&amp;nbsp; &lt;/STRONG&gt;. Without this Apply Map the dashboard is running fine. Any inputs on what could be the issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My guess is that since it is convert to Character through sql query it is not being able to map with the mapping table where the values are present as Number only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S : I have used the Num Function to convert the TO_CHAR value to an number but still getting the same issue. The value when put in an list box comes as Numeric only. is there any way to know whether the num function has applied correctly and the value is coming as Number format only?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2017 11:36:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Character-to-Number-format-conversions-in-qlikview/m-p/1425324#M429390</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-20T11:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: Character to Number format conversions in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Character-to-Number-format-conversions-in-qlikview/m-p/1425325#M429391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share the exact script you are using, because the ApplyMap script itself doesn't seem to be incorrect. May be something else is missing, like the XMapping Table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2017 11:38:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Character-to-Number-format-conversions-in-qlikview/m-p/1425325#M429391</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-20T11:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: Character to Number format conversions in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Character-to-Number-format-conversions-in-qlikview/m-p/1425326#M429392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny, &lt;/P&gt;&lt;P&gt;&amp;nbsp; I am not supposed to share the exact script so i am giving an overview of how my code will look.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;XMapping:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Mapping Load&lt;/P&gt;&lt;P&gt;A as X,&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;FROM XXX.qvd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp Table:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;TO_CHAR(ID) as [Identity Number],&lt;/P&gt;&lt;P&gt;Num(left([TO_CHAR(ID),4),'####') as X&lt;/P&gt;&lt;P&gt;FROM YYY.qvd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then again after some calculations&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Final:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;ApplyMap('XMapping',X,null()) as[ License Plate Umbrella DC]&lt;/P&gt;&lt;P&gt;Resident Temp Table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the required mapping Tables is present and there is no wrong in the Mapping syntax also because i have one more mapping column and it runs perfectly the only problem i think is in the conversion to number.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2017 11:51:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Character-to-Number-format-conversions-in-qlikview/m-p/1425326#M429392</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-20T11:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Character to Number format conversions in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Character-to-Number-format-conversions-in-qlikview/m-p/1425327#M429393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Everything here looks good to me, except a closing square bracket (which you might have missed it here since this is just a sample script and not the original script). Also, I assume TO_CHAR(ID) is a sql generarted field which probably was not renamed, because QlikView doesn't have a TO_CHAR function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;XMapping:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Mapping Load&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A as X,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;B&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM XXX.qvd;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Temp Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TO_CHAR(ID) as [Identity Number],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Num(left([TO_CHAR(ID)&lt;SPAN style="color: #ff0000; font-size: 14pt;"&gt;]&lt;/SPAN&gt;,4),'####') as X&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM YYY.qvd;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;then again after some calculations&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Final:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ApplyMap('XMapping',X,null()) as[ License Plate Umbrella DC]&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Resident Temp Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2017 11:55:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Character-to-Number-format-conversions-in-qlikview/m-p/1425327#M429393</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-20T11:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: Character to Number format conversions in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Character-to-Number-format-conversions-in-qlikview/m-p/1425328#M429394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks for your reply. Yes both are correct. I had only missed the braces and TO_CHAR is done at sql generated field only.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2017 12:00:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Character-to-Number-format-conversions-in-qlikview/m-p/1425328#M429394</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-20T12:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: Character to Number format conversions in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Character-to-Number-format-conversions-in-qlikview/m-p/1425329#M429395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't see anything in the logic you have above... so won't really be able to comment much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2017 12:05:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Character-to-Number-format-conversions-in-qlikview/m-p/1425329#M429395</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-20T12:05:11Z</dc:date>
    </item>
  </channel>
</rss>

