<?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 Spaces in article number in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Spaces-in-article-number/m-p/203705#M60944</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a problem with loading the file article number from our company database.&lt;/P&gt;&lt;P&gt;There are article numbers that are different from each other only by the number of spaces. In qlikview only one article number is loaded.&lt;/P&gt;&lt;P&gt;Here my example:&lt;/P&gt;&lt;P&gt;1. Database query (Qlikview to Informix-DB): These are two different articles in the where clause!&lt;BR /&gt;SQL SELECT artikel&lt;BR /&gt;FROM cdix.fyar1sta&lt;BR /&gt;where artikel = '210 300 02' or artikel ='210 3 0002'&lt;/P&gt;&lt;P&gt;2. Listbox in Qlikview shows me only one entry.&lt;/P&gt;&lt;P&gt;Thanks in advance for your help!&lt;BR /&gt;Markus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Nov 2010 17:17:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-11-26T17:17:04Z</dc:date>
    <item>
      <title>Spaces in article number</title>
      <link>https://community.qlik.com/t5/QlikView/Spaces-in-article-number/m-p/203705#M60944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a problem with loading the file article number from our company database.&lt;/P&gt;&lt;P&gt;There are article numbers that are different from each other only by the number of spaces. In qlikview only one article number is loaded.&lt;/P&gt;&lt;P&gt;Here my example:&lt;/P&gt;&lt;P&gt;1. Database query (Qlikview to Informix-DB): These are two different articles in the where clause!&lt;BR /&gt;SQL SELECT artikel&lt;BR /&gt;FROM cdix.fyar1sta&lt;BR /&gt;where artikel = '210 300 02' or artikel ='210 3 0002'&lt;/P&gt;&lt;P&gt;2. Listbox in Qlikview shows me only one entry.&lt;/P&gt;&lt;P&gt;Thanks in advance for your help!&lt;BR /&gt;Markus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Nov 2010 17:17:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Spaces-in-article-number/m-p/203705#M60944</guid>
      <dc:creator />
      <dc:date>2010-11-26T17:17:04Z</dc:date>
    </item>
    <item>
      <title>Spaces in article number</title>
      <link>https://community.qlik.com/t5/QlikView/Spaces-in-article-number/m-p/203706#M60945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Markus,&lt;/P&gt;&lt;P&gt;Take a look at &lt;A href="http://community.qlik.com/forums/p/36953/144943.aspx" target="_blank" title="Data corruption? in Qlikview"&gt;this post&lt;/A&gt; regarding the use of TEXT() and representation in QlikView.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Table:LOAD Text(artikel) AS artikel;SQL SELECT artikelFROM cdix.fyar1stawhere artikel = '210 300 02' or artikel ='210 3 0002';&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Besides, check that those balncks are plain spaces and not any ascii characters, and if they are, change them with the Replace() function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Replace(FieldName, chr(X), ' ') AS FieldName&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;EDIT: I add a sample code for your SQL statement so you can easily check whether the field is properly loaded&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Nov 2010 20:40:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Spaces-in-article-number/m-p/203706#M60945</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-11-26T20:40:52Z</dc:date>
    </item>
    <item>
      <title>Spaces in article number</title>
      <link>https://community.qlik.com/t5/QlikView/Spaces-in-article-number/m-p/203707#M60946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Markus,&lt;/P&gt;&lt;P&gt;There are two reasons for this;&lt;BR /&gt;1) QlikView handles everything that can be interpreted as a number as a number.&lt;BR /&gt;2) A number is always displayed in the format it is first encountered.&lt;BR /&gt;&lt;BR /&gt;A simple solution to this problem is to convert it to "text" using the "text()" function as suggested. In some cases this is however not sufficient as the conversion to number takes place already in the transfer from the "sql select" to the load statement. To handle this you must ensure that the value is text already in the SQL statement. The following is a solution that I have used succefully used several times:&lt;/P&gt;&lt;P&gt;Load&lt;BR /&gt; text(mid(Xartikel,2)) as artikel;&lt;BR /&gt;SQL SELECT&lt;BR /&gt; 'X' || artikel as Xartikel&lt;BR /&gt;FROM cdix.fyar1sta&lt;BR /&gt;where artikel = '210 300 02' or artikel ='210 3 0002'&lt;/P&gt;&lt;P&gt;Good luck&lt;BR /&gt;&lt;BR /&gt;BR&lt;BR /&gt;/Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Nov 2010 19:48:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Spaces-in-article-number/m-p/203707#M60946</guid>
      <dc:creator />
      <dc:date>2010-11-27T19:48:43Z</dc:date>
    </item>
    <item>
      <title>Spaces in article number</title>
      <link>https://community.qlik.com/t5/QlikView/Spaces-in-article-number/m-p/203708#M60947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried the "Verbatim" special variable?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Nov 2010 20:20:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Spaces-in-article-number/m-p/203708#M60947</guid>
      <dc:creator>MichaelRobertshaw</dc:creator>
      <dc:date>2010-11-27T20:20:25Z</dc:date>
    </item>
    <item>
      <title>Spaces in article number</title>
      <link>https://community.qlik.com/t5/QlikView/Spaces-in-article-number/m-p/203709#M60948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi community,&lt;/P&gt;&lt;P&gt;thanks a lot for your fast and perfect answers.&lt;BR /&gt;The solution for me was the text() funktion.&lt;/P&gt;&lt;P&gt;With&lt;BR /&gt;&lt;B&gt;LOAD&lt;/B&gt; text(artikel);&lt;BR /&gt;&lt;B&gt;SQL&lt;/B&gt; &lt;B&gt;SELECT&lt;/B&gt; artikel&lt;BR /&gt;&lt;B&gt;FROM&lt;/B&gt; cdix.fyar1sta&lt;BR /&gt;where artikel = '210 300 02' or artikel ='210 3 0002'&lt;/P&gt;&lt;P&gt;evrything works fine.&lt;/P&gt;&lt;P&gt;Regards&lt;BR /&gt;Markus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Nov 2010 08:32:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Spaces-in-article-number/m-p/203709#M60948</guid>
      <dc:creator />
      <dc:date>2010-11-29T08:32:27Z</dc:date>
    </item>
  </channel>
</rss>

