<?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 Trouble with mapping tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Trouble-with-mapping-tables/m-p/103443#M16329</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;I have the following issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working with data coming from Excel files which has to be appended to data coming from SAP.&lt;/P&gt;&lt;P&gt;Now, the customer_numbers we have from SAP are usually filled up to be 10 characters long - filled up with 0s.&lt;/P&gt;&lt;P&gt;Okay - so I have to basically do the same with the data from Excel, easy enough so far.&lt;/P&gt;&lt;P&gt;The issue is, in some records from Excel there is no customer_number - I aggregate those&amp;nbsp; to something like "2200\IT\Ext" - those would be all the records with no cust_no in the Bukrs 2200, the customer being in italy and being external. As you may have noticed, this has 11 characters, so filling up to 10 won't work.&lt;/P&gt;&lt;P&gt;So I came up with &amp;gt;&amp;gt; TRIM(Right(('0000' &amp;amp; [cust_no]), 11)) &amp;lt;&amp;lt; - this would cut out 11 characters from the right and in case there is a regular cust_no, there would be a blank to the right which I cut off with TRIM().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should work, no? Well, it doesn't - in some cases I still get an 11-character-number with five 0s to the left - how can that happen? There is no 0 to the right, only to the left - what went wrong there and how could I mend it?&lt;/P&gt;&lt;P&gt;Can somebody shed some light on this?&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Aug 2018 10:58:40 GMT</pubDate>
    <dc:creator>datanibbler</dc:creator>
    <dc:date>2018-08-03T10:58:40Z</dc:date>
    <item>
      <title>Trouble with mapping tables</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-with-mapping-tables/m-p/103443#M16329</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;I have the following issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working with data coming from Excel files which has to be appended to data coming from SAP.&lt;/P&gt;&lt;P&gt;Now, the customer_numbers we have from SAP are usually filled up to be 10 characters long - filled up with 0s.&lt;/P&gt;&lt;P&gt;Okay - so I have to basically do the same with the data from Excel, easy enough so far.&lt;/P&gt;&lt;P&gt;The issue is, in some records from Excel there is no customer_number - I aggregate those&amp;nbsp; to something like "2200\IT\Ext" - those would be all the records with no cust_no in the Bukrs 2200, the customer being in italy and being external. As you may have noticed, this has 11 characters, so filling up to 10 won't work.&lt;/P&gt;&lt;P&gt;So I came up with &amp;gt;&amp;gt; TRIM(Right(('0000' &amp;amp; [cust_no]), 11)) &amp;lt;&amp;lt; - this would cut out 11 characters from the right and in case there is a regular cust_no, there would be a blank to the right which I cut off with TRIM().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should work, no? Well, it doesn't - in some cases I still get an 11-character-number with five 0s to the left - how can that happen? There is no 0 to the right, only to the left - what went wrong there and how could I mend it?&lt;/P&gt;&lt;P&gt;Can somebody shed some light on this?&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2018 10:58:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-with-mapping-tables/m-p/103443#M16329</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2018-08-03T10:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with mapping tables</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-with-mapping-tables/m-p/103444#M16330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have found a way around it: I just cut off 11 characters and if the first one of those is a number as in "2200\IT\Ext", then I leave it so, otherwise - as in "0000240511" - I cut off one more.&lt;/P&gt;&lt;P&gt;That solves this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2018 11:38:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-with-mapping-tables/m-p/103444#M16330</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2018-08-03T11:38:38Z</dc:date>
    </item>
  </channel>
</rss>

