<?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: Problem with numbers with SQL select script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-numbers-with-SQL-select-script/m-p/1412810#M612953</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well in that case, why would you use Num() &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Nov 2017 13:59:36 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-11-17T13:59:36Z</dc:date>
    <item>
      <title>Problem with numbers with SQL select script</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-numbers-with-SQL-select-script/m-p/1412803#M612946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I encounter a problem when I load data from an Oracle table with Qlikview.&lt;/P&gt;&lt;P&gt;The source table contains a column with an ID and an other with a part of this ID (last four numbers or more).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="50" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#000000&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" style="border: 1px solid #000000; width: 394px; height: 24px;" width="393"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;ID&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;P&gt;LastNumbers&lt;/P&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="color: #000000; text-align: left; padding: 2px;"&gt;BE00120061&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0061&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;When i load this table, i use this script:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Table:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SQL SELECT *&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM "DB".TABLE;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;store Table into TABLE.qvd(qvd);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is, some data from the "LastNumbers" column are not loaded correctly when the number start with "0", like this:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="183659" alt="Capture.png" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/183659_Capture.png" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;The LastNumbers "62" should be "0062" like in source table:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="183658" alt="Capture2.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/183658_Capture2.png" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;That's really strange and totally illogic i think.&lt;/P&gt;&lt;P&gt;When i load only the line with ID "BE00120062"&amp;nbsp; whith a "WHERE" clause, the number is loaded correctly:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="183660" alt="Capture3.png" class="image-4 jive-image" src="https://community.qlik.com/legacyfs/online/183660_Capture3.png" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;I tried to force the text format with text() function but that's not working...&lt;/P&gt;&lt;P&gt;This script have been tested with Qv 11.20 SR15 and QV12, the result is exactly the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think there is a bug here...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone helps?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2017 09:36:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-numbers-with-SQL-select-script/m-p/1412803#M612946</guid>
      <dc:creator>mgolinvaux</dc:creator>
      <dc:date>2017-11-17T09:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with numbers with SQL select script</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-numbers-with-SQL-select-script/m-p/1412804#M612947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is WORK_ID always a 4 digit number? If it is, then may be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD &lt;SPAN style="color: #ff0000;"&gt;Num(WORK_ID, '0000')&lt;/SPAN&gt; as WORK_ID_NUM,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SQL SELECT *&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM "DB".TABLE;&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;store Table into TABLE.qvd(qvd);&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2017 13:02:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-numbers-with-SQL-select-script/m-p/1412804#M612947</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-17T13:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with numbers with SQL select script</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-numbers-with-SQL-select-script/m-p/1412805#M612948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maxime,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qlikview will remeber the first value, so if qlikview find 62 and then 0062 "he" think that 0062 will be 62. But if "he" find 0062 first, this will be keept as 0062. All numbers With leading 00 should be format as text to be sure that the leading part stays. I'm pretty sure that somewhere in Your Field WORK_ID have the number 62.&lt;/P&gt;&lt;P&gt;You can do as stalwar1 suggest, but I'll think you have to format it as text after that.&lt;/P&gt;&lt;P&gt; text(num(WORK_ID,'0000') as WORK_ID‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2017 13:21:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-numbers-with-SQL-select-script/m-p/1412805#M612948</guid>
      <dc:creator>stabben23</dc:creator>
      <dc:date>2017-11-17T13:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with numbers with SQL select script</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-numbers-with-SQL-select-script/m-p/1412806#M612949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a simple qvw documet to show what I mean.&lt;/P&gt;&lt;P&gt;just swith the two number and see what happens.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2017 13:26:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-numbers-with-SQL-select-script/m-p/1412806#M612949</guid>
      <dc:creator>stabben23</dc:creator>
      <dc:date>2017-11-17T13:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with numbers with SQL select script</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-numbers-with-SQL-select-script/m-p/1412807#M612950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why do you need text? I mean if you wish to convert it to text, then yes, but this should work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD RowNo() as Key,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;*,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Num(value, '0000') as NewValue;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;value&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;62&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;0062&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;0061&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;61&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;62&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&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/183693_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2017 13:31:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-numbers-with-SQL-select-script/m-p/1412807#M612950</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-17T13:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with numbers with SQL select script</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-numbers-with-SQL-select-script/m-p/1412808#M612951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Correct &lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;‌ text is not needed, and it also shows that he keeps the first readed value as I metioned.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2017 13:39:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-numbers-with-SQL-select-script/m-p/1412808#M612951</guid>
      <dc:creator>stabben23</dc:creator>
      <dc:date>2017-11-17T13:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with numbers with SQL select script</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-numbers-with-SQL-select-script/m-p/1412809#M612952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to clarify why I use text, I have met problem where Companys have ex itemnumbers created like this.&lt;/P&gt;&lt;P&gt;ex 62, 062, 0062, this must be handled as text. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2017 13:46:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-numbers-with-SQL-select-script/m-p/1412809#M612952</guid>
      <dc:creator>stabben23</dc:creator>
      <dc:date>2017-11-17T13:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with numbers with SQL select script</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-numbers-with-SQL-select-script/m-p/1412810#M612953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well in that case, why would you use Num() &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2017 13:59:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-numbers-with-SQL-select-script/m-p/1412810#M612953</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-17T13:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with numbers with SQL select script</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-numbers-with-SQL-select-script/m-p/1412811#M612954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wouldn't &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; just text()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2017 14:06:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-numbers-with-SQL-select-script/m-p/1412811#M612954</guid>
      <dc:creator>stabben23</dc:creator>
      <dc:date>2017-11-17T14:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with numbers with SQL select script</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-numbers-with-SQL-select-script/m-p/1412812#M612955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hahahaha make sense &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2017 14:07:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-numbers-with-SQL-select-script/m-p/1412812#M612955</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-17T14:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with numbers with SQL select script</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-numbers-with-SQL-select-script/m-p/1412813#M612956</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;Unfortunately, the WORK_ID is not always a 4 digit number, sometimes it's more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2017 13:48:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-numbers-with-SQL-select-script/m-p/1412813#M612956</guid>
      <dc:creator>mgolinvaux</dc:creator>
      <dc:date>2017-11-20T13:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with numbers with SQL select script</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-numbers-with-SQL-select-script/m-p/1412814#M612957</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;That's exactly the problem!&lt;/P&gt;&lt;P&gt;Some data in my source table contains "62".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will solve this in the source table and the script should be working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just need to wait tomorrow because the source table is reloaded one time a day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2017 13:51:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-numbers-with-SQL-select-script/m-p/1412814#M612957</guid>
      <dc:creator>mgolinvaux</dc:creator>
      <dc:date>2017-11-20T13:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with numbers with SQL select script</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-numbers-with-SQL-select-script/m-p/1412815#M612958</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 can tell now that was exactly the problem. After suppressing the values with "62", my script works fine and load the lines with "0062" without problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 12:18:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-numbers-with-SQL-select-script/m-p/1412815#M612958</guid>
      <dc:creator>mgolinvaux</dc:creator>
      <dc:date>2017-11-21T12:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with numbers with SQL select script</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-numbers-with-SQL-select-script/m-p/1412816#M612959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great, QlikView is sometimes to smart for it self &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 12:24:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-numbers-with-SQL-select-script/m-p/1412816#M612959</guid>
      <dc:creator>stabben23</dc:creator>
      <dc:date>2017-11-21T12:24:11Z</dc:date>
    </item>
  </channel>
</rss>

