<?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 Keeping the dot.... in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Keeping-the-dot/m-p/181687#M47607</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erico..&lt;/P&gt;&lt;P&gt;I have used the TEXT() command in my load - no success...&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Nov 2010 22:29:26 GMT</pubDate>
    <dc:creator>pkelly</dc:creator>
    <dc:date>2010-11-10T22:29:26Z</dc:date>
    <item>
      <title>Keeping the dot....</title>
      <link>https://community.qlik.com/t5/QlikView/Keeping-the-dot/m-p/181685#M47605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an extract from our sales invoice warehouse which I am trying to link to our customer "Ship To" file to get up to date values such as the current rep for the delivery address.&lt;/P&gt;&lt;P&gt;The issue I have is that, in their wisdom, one of our users has created ship to codes with a "." at the end...&lt;/P&gt;&lt;P&gt;So for customer "ABC" I have ship to codes "1234" and "1234."&lt;/P&gt;&lt;P&gt;As a key for the link between the two tables I have concatenated customer with ship to.&lt;/P&gt;&lt;P&gt;In my sales invoice warehouse extract I have...&lt;/P&gt;&lt;P&gt;ABC-1234&lt;/P&gt;&lt;P&gt;ABC-1234.&lt;/P&gt;&lt;P&gt;When I build my extract from the customer ship to table, I only get "ABC-1234"&lt;/P&gt;&lt;P&gt;There are two records but the extract is dropping the "." from the end of the codes which is breaking my link between the two tables.&lt;/P&gt;&lt;P&gt;I have tried everything that I can think of to keep this from using cast as char in the sql to text() in the load with no success.&lt;/P&gt;&lt;P&gt;Any suggestions on how to get round this greatly appreciated.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Nov 2010 19:44:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Keeping-the-dot/m-p/181685#M47605</guid>
      <dc:creator>pkelly</dc:creator>
      <dc:date>2010-11-10T19:44:15Z</dc:date>
    </item>
    <item>
      <title>Keeping the dot....</title>
      <link>https://community.qlik.com/t5/QlikView/Keeping-the-dot/m-p/181686#M47606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try text() in your field on load instead of on SQL?&lt;/P&gt;&lt;P&gt;Maybe it works!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Nov 2010 19:58:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Keeping-the-dot/m-p/181686#M47606</guid>
      <dc:creator />
      <dc:date>2010-11-10T19:58:57Z</dc:date>
    </item>
    <item>
      <title>Keeping the dot....</title>
      <link>https://community.qlik.com/t5/QlikView/Keeping-the-dot/m-p/181687#M47607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erico..&lt;/P&gt;&lt;P&gt;I have used the TEXT() command in my load - no success...&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Nov 2010 22:29:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Keeping-the-dot/m-p/181687#M47607</guid>
      <dc:creator>pkelly</dc:creator>
      <dc:date>2010-11-10T22:29:26Z</dc:date>
    </item>
    <item>
      <title>Keeping the dot....</title>
      <link>https://community.qlik.com/t5/QlikView/Keeping-the-dot/m-p/181688#M47608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;I rebuild your example with my local oracle database and loaded some data via ODBC into a simple QV. I had no success as the data was as I expected it: all rows were correctly loaded (ie I have one "1234" and one "1234." in my source table &lt;I&gt;and&lt;/I&gt; in my qv-table)&lt;/P&gt;&lt;P&gt;There are some questions to fetch the whole picture: what database you are using, which type of connection, of what type is your db-field. And which part of the whole process "forgets" your dot ? Is it i.e. the ODBC-driver which interprets the dot as a thousand-seperator? How is the result using a flat file as stage? Did you try something like to concat your ship to code with an single char so your resulting SQL-column is at any case an char-field?&lt;/P&gt;&lt;P&gt;Regards, Roland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Nov 2010 23:19:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Keeping-the-dot/m-p/181688#M47608</guid>
      <dc:creator />
      <dc:date>2010-11-10T23:19:13Z</dc:date>
    </item>
    <item>
      <title>Keeping the dot....</title>
      <link>https://community.qlik.com/t5/QlikView/Keeping-the-dot/m-p/181689#M47609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Paul, I agree with Roland that Text(Field) should be good enough, can you try posting the sql load sentence so we can check it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Nov 2010 01:50:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Keeping-the-dot/m-p/181689#M47609</guid>
      <dc:creator>danielrozental</dc:creator>
      <dc:date>2010-11-11T01:50:49Z</dc:date>
    </item>
    <item>
      <title>Keeping the dot....</title>
      <link>https://community.qlik.com/t5/QlikView/Keeping-the-dot/m-p/181690#M47610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Other way around&lt;/P&gt;&lt;P&gt;Is it possible to reverse the key in both the tables like '123.-ABC' and then link the two tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or remove the ". " from the data so it will become easy for you to link it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Nov 2010 05:32:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Keeping-the-dot/m-p/181690#M47610</guid>
      <dc:creator>deepakk</dc:creator>
      <dc:date>2010-11-11T05:32:30Z</dc:date>
    </item>
    <item>
      <title>Keeping the dot....</title>
      <link>https://community.qlik.com/t5/QlikView/Keeping-the-dot/m-p/181691#M47611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;probably you already tried this, but did you try the text command in the QlikView part of the script or in the SQL part?&lt;BR /&gt;I noticed before that leading zeros have to be handled in the SQL part and not in the QlikView script, this might be the same issue.&lt;BR /&gt;Best of luck.&lt;/P&gt;&lt;P&gt;Rgds,&lt;BR /&gt;Jonas&lt;/P&gt;&lt;P&gt;QlikView Consultant at Optivasys | &lt;A href="http://www.optivasys.com"&gt;http://www.optivasys.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Nov 2010 08:58:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Keeping-the-dot/m-p/181691#M47611</guid>
      <dc:creator />
      <dc:date>2010-11-11T08:58:13Z</dc:date>
    </item>
    <item>
      <title>Keeping the dot....</title>
      <link>https://community.qlik.com/t5/QlikView/Keeping-the-dot/m-p/181692#M47612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try to concatenate 'x' before and after in the SQL SELECT part, and drop those in the LOAD .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;LOAD mid(Customer, 2, len(Customer) - 2) ;&lt;BR /&gt;SQL SELECT 'x' || Customer || 'x' ...&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;-Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Nov 2010 09:14:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Keeping-the-dot/m-p/181692#M47612</guid>
      <dc:creator />
      <dc:date>2010-11-11T09:14:40Z</dc:date>
    </item>
    <item>
      <title>Keeping the dot....</title>
      <link>https://community.qlik.com/t5/QlikView/Keeping-the-dot/m-p/181693#M47613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to evryone for their suggestions...&lt;/P&gt;&lt;P&gt;What I ended up with (and it appears to work) is...&lt;/P&gt;&lt;P&gt;TempCustomerShipTo:&lt;BR /&gt;LOAD&lt;BR /&gt; UPPER(cust) AS %CustKey,&lt;BR /&gt; IF("active" = 0, 'No', 'Yes') As cst_Active,&lt;BR /&gt; UPPER(cust) AS cst_CustomerCode,&lt;BR /&gt; name AS cst_CustomerName,&lt;BR /&gt;&lt;BR /&gt; TEXT(ship) AS tmpShip,&lt;BR /&gt;&lt;BR /&gt; add1 AS cst_Add1,&lt;BR /&gt; add2 AS cst_Add2,&lt;BR /&gt; add3 AS cst_Add3,&lt;BR /&gt; city AS cst_City,&lt;BR /&gt; pc AS cst_PostCode,&lt;BR /&gt; UPPER("geo-area") AS cst_TransportArea,&lt;BR /&gt; UPPER(Prov) AS cst_Prov,&lt;BR /&gt; UPPER("external-rep") AS cst_ExternalRep,&lt;BR /&gt; UPPER("silverman-rep") AS cst_AccountManager,&lt;BR /&gt; UPPER(shipterms) AS cst_ShipTerms,&lt;BR /&gt; ctry AS cst_Country;&lt;BR /&gt;SQL SELECT&lt;BR /&gt; active,&lt;BR /&gt; add1,&lt;BR /&gt; add2,&lt;BR /&gt; add3,&lt;BR /&gt; city,&lt;BR /&gt; ctry,&lt;BR /&gt; cust,&lt;BR /&gt; "external-rep",&lt;BR /&gt; "geo-area",&lt;BR /&gt; name,&lt;BR /&gt; pc,&lt;BR /&gt; Prov,&lt;BR /&gt;&lt;BR /&gt; ship,&lt;/P&gt;&lt;P&gt;shipterms,&lt;BR /&gt; "silverman-rep"&lt;BR /&gt;FROM PUB."cus_ship";&lt;/P&gt;&lt;P&gt;CustomerShipTo:&lt;BR /&gt;LOAD *,&lt;BR /&gt; UPPER(cst_CustomerCode) &amp;amp; '-' &amp;amp; UPPER("cst_ShipToCode") AS %CustShipToKey;&lt;BR /&gt;LOAD * ,&lt;BR /&gt; REPLACE(LTRIM(REPLACE(tmpShip, '0', ' ')), ' ', 0) AS cst_ShipToCode&lt;BR /&gt;RESIDENT TempCustomerShipTo;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;DROP TABLE TempCustomerShipTo;&lt;BR /&gt;DROP FIELD tmpShip;&lt;/P&gt;&lt;P&gt;This removes all the leading zeros and keeps the full stop in the key and allows me to link to my sales detail.&lt;/P&gt;&lt;P&gt;Will do more testing but initial test look good...&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Nov 2010 10:36:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Keeping-the-dot/m-p/181693#M47613</guid>
      <dc:creator>pkelly</dc:creator>
      <dc:date>2010-11-11T10:36:00Z</dc:date>
    </item>
  </channel>
</rss>

