<?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: MeshTable with string concatenation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/MeshTable-with-string-concatenation/m-p/551462#M1125622</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yep, was a typo error in the post.&lt;/P&gt;&lt;P&gt;the problem is that CODE for customer 00011:&lt;/P&gt;&lt;P&gt;CustPrefix = '&lt;SPAN style="color: #000000;"&gt;cc&lt;/SPAN&gt;', CustCode='00011', RegionalCode='New England'&lt;/P&gt;&lt;P&gt;is 'CC00011NEW E' instead of 'CC00011NEWEN'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 04 Jan 2014 12:58:19 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-01-04T12:58:19Z</dc:date>
    <item>
      <title>MeshTable with string concatenation</title>
      <link>https://community.qlik.com/t5/QlikView/MeshTable-with-string-concatenation/m-p/551460#M1125620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi to all,&lt;/P&gt;&lt;P&gt;I'm a newbie.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, I need help for this scenario:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;OLEDB CONNECT TO&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt; [Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=DataStore1;Data Source=192.168.10.1;Use Procedure for Prepare=1;Auto Translate=True;Packet Size=4096;Workstation ID=GIANLUCA-PC;Use Encryption for Data=False;Tag with column collation when possible=False]&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;CustomersDB1:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;Load&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;CustPrefix&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;CustCode1&lt;/SPAN&gt;,&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;text&lt;/SPAN&gt;(&lt;SPAN style="color: #ff0000;"&gt;CustCode&lt;/SPAN&gt;) &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;CustCode2&lt;/SPAN&gt;,&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;RegionalCode,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;CustName, CustFiscalCode, Address, City, ZipCode, Country;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;SQL&lt;/SPAN&gt; SELECT&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;CustPrefix,&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;CustCode,&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;RegionalCode,&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;CustName, CustFiscalCode, Address, City, ZipCode, Country&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;FROM "DataStore1".dbo."CustDAT"&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;where "DataStore1".dbo."CustDAT".CustStatus = 'active'&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;Directory;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;LOAD&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;CODE, &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ACTIVITYTYPE, &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TRANSACTION, &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CHARGE, &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATE&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;FROM&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Data.xls&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;(&lt;SPAN style="color: #0000ff;"&gt;biff, embedded labels, table is&lt;/SPAN&gt; Customer$);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CODE in table Customer$ is the upper result of literal join of CustCode1, CustCode2 and the first 5 char of RegionalCode&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;CustPrefix = '&lt;SPAN style="color: #000000;"&gt;cc&lt;/SPAN&gt;', CustCode='00011', RegionalCode='New England'&lt;/P&gt;&lt;P&gt;CODE= 'CC00011NEWEN'&lt;/P&gt;&lt;P&gt;CustPrefix = '&lt;SPAN style="color: #000000;"&gt;cc&lt;/SPAN&gt;', CustCode='00730', RegionalCode='Italy'&lt;/P&gt;&lt;P&gt;CODE= 'CC00730ITALY'&lt;/P&gt;&lt;P&gt;CustPrefix = '&lt;SPAN style="color: #000000;"&gt;rc&lt;/SPAN&gt;', CustCode='00974', RegionalCode='Sweden'&lt;/P&gt;&lt;P&gt;CODE= 'RC00974SWEDE'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to connect the two tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;MeshTable:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;Load&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;CustFiscalCode,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;(upper(CustCode1) &amp;amp; text(CustCode2) &amp;amp; upper(left(trim(RegionalCode)),5)) &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;CODE&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;resident&lt;/SPAN&gt; CustomersDB1&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But my code &lt;SPAN class="hps"&gt;has no desire&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;to work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;Thanks in Advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;Gianluca.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Jan 2014 04:33:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MeshTable-with-string-concatenation/m-p/551460#M1125620</guid>
      <dc:creator />
      <dc:date>2014-01-04T04:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: MeshTable with string concatenation</title>
      <link>https://community.qlik.com/t5/QlikView/MeshTable-with-string-concatenation/m-p/551461#M1125621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you get an error? Or is the result not like expected (and if so, how does it look, then)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think there is a misplaced parenthesis in your code:&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;"&gt;( upper(CustCode1) &amp;amp; text(CustCode2) &amp;amp; upper(left(trim(RegionalCode&lt;STRONG&gt;),5)) )&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ff0000;"&gt;CODE&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Jan 2014 11:21:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MeshTable-with-string-concatenation/m-p/551461#M1125621</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-01-04T11:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: MeshTable with string concatenation</title>
      <link>https://community.qlik.com/t5/QlikView/MeshTable-with-string-concatenation/m-p/551462#M1125622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yep, was a typo error in the post.&lt;/P&gt;&lt;P&gt;the problem is that CODE for customer 00011:&lt;/P&gt;&lt;P&gt;CustPrefix = '&lt;SPAN style="color: #000000;"&gt;cc&lt;/SPAN&gt;', CustCode='00011', RegionalCode='New England'&lt;/P&gt;&lt;P&gt;is 'CC00011NEW E' instead of 'CC00011NEWEN'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Jan 2014 12:58:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MeshTable-with-string-concatenation/m-p/551462#M1125622</guid>
      <dc:creator />
      <dc:date>2014-01-04T12:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: MeshTable with string concatenation</title>
      <link>https://community.qlik.com/t5/QlikView/MeshTable-with-string-concatenation/m-p/551463#M1125623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you want to remove the space in regional code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are multiple approaches, please check the string functions. You can try something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replace(RegionalCode,' ','')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;keepchar(upper(RegionalCode),'ABCDEFGHIJKLMNOPQRSTUVWXYZ')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: In total, it may look like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; upper(CustCode1) &amp;amp; text(CustCode2) &amp;amp; upper(left(replace(RegionalCode,' ',''),5)) ) &lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;as&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ff0000;"&gt;CODE&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Jan 2014 13:03:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MeshTable-with-string-concatenation/m-p/551463#M1125623</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-01-04T13:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: MeshTable with string concatenation</title>
      <link>https://community.qlik.com/t5/QlikView/MeshTable-with-string-concatenation/m-p/551464#M1125624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;thanks&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;exactly&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;what i needed&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Jan 2014 13:10:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MeshTable-with-string-concatenation/m-p/551464#M1125624</guid>
      <dc:creator />
      <dc:date>2014-01-04T13:10:45Z</dc:date>
    </item>
  </channel>
</rss>

