<?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: Merge two values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Merge-two-values/m-p/806262#M284629</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe changing the b load only, difference with previous script posted is in bold&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt;"&gt;Sales:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt;"&gt;LOAD field, value, len(field) as len&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt;"&gt;FROM Sales.xlsx (ooxml, embedded labels, table is Sheet1);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt;"&gt;b:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt;"&gt;load&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt;"&gt;&amp;nbsp; field,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt;"&gt;&amp;nbsp; len,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt;"&gt;&amp;nbsp; value,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt;"&gt;&amp;nbsp; if(wildmatch(field, peek(&lt;STRONG&gt;fieldgroup&lt;/STRONG&gt;) &amp;amp; '*') and len(peek(field))&amp;gt;0, peek(fieldgroup), field) as fieldgroup&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;Resident Sales&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;order by field, len;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;DROP Table Sales;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style=": ; font-size: 10pt;"&gt;c:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt;"&gt;load&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt;"&gt;&amp;nbsp; fieldgroup as field,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt;"&gt;&amp;nbsp; sum(value) as value&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;Resident b&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;group by fieldgroup;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;drop table b;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 18 Jan 2015 10:09:07 GMT</pubDate>
    <dc:creator>maxgro</dc:creator>
    <dc:date>2015-01-18T10:09:07Z</dc:date>
    <item>
      <title>Merge two values</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-two-values/m-p/806242#M284609</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 need to mege two values which are existing in the same field but in last both names are different.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MyField:&lt;/STRONG&gt; These values are coming in the list box&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current Output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABC-CDE&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.6000003814697px;"&gt;ABC-CDEFG&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Required Output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.6000003814697px;"&gt;Required output&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.6000003814697px;"&gt;ABC-CDE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.6000003814697px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Both should be merge by using great method. Such as using wildmatch etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note: &lt;/STRONG&gt;Some times these values are greater then 7 digit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Example: Current scenario&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.6000003814697px;"&gt;XYZ-AB-001&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;XYZ-AB-001-C1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Requried scenario:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.6000003814697px;"&gt;XYZ-AB-001&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.6000003814697px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Therefore, I need a method which run in all the scenarios.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 19:59:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-two-values/m-p/806242#M284609</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-16T19:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: Merge two values</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-two-values/m-p/806243#M284610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see attachment, 0 in match is for rows you must keep&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/75549_1.png" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 20:29:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-two-values/m-p/806243#M284610</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-01-16T20:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: Merge two values</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-two-values/m-p/806244#M284611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Massimo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please share me script, expression. I have personal edition therefore I'm not able to open the qvd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 20:46:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-two-values/m-p/806244#M284611</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-16T20:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: Merge two values</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-two-values/m-p/806245#M284612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;a:&lt;/P&gt;&lt;P&gt;load *, len(field) as len inline [&lt;/P&gt;&lt;P&gt;field&lt;/P&gt;&lt;P&gt;ABC-CDE&lt;/P&gt;&lt;P&gt;ABC-CDEFG&lt;/P&gt;&lt;P&gt;XYZ-AB-001&lt;/P&gt;&lt;P&gt;XYZ-AB-001-C1&lt;/P&gt;&lt;P&gt;AAABBB&lt;/P&gt;&lt;P&gt;ZZZZZ&lt;/P&gt;&lt;P&gt;ZZZ&lt;/P&gt;&lt;P&gt;ZZZZ&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&amp;nbsp; field,&lt;/P&gt;&lt;P&gt;&amp;nbsp; len,&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(wildmatch(field, peek(field) &amp;amp; '*') and len(peek(field))&amp;gt;0, 1, 0) as match &lt;/P&gt;&lt;P&gt;Resident&lt;/P&gt;&lt;P&gt;&amp;nbsp; a&lt;/P&gt;&lt;P&gt;order by field, len;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table a;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 20:50:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-two-values/m-p/806245#M284612</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-01-16T20:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: Merge two values</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-two-values/m-p/806246#M284613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Massimo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is still there, as you showed in your image there is match and length column. This is not required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Current Scenario:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ABC-CDE&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ABC-CDEFG&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;XYZ-AB-001&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;XYZ-AB-001-C1&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;AAABBB&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ZZZZZ&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ZZZ&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ZZZZ&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;and Desired output required:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.8000001907349px;"&gt;ABC-CDE&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.8000001907349px;"&gt;XYZ-AB-001&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;AAABBB&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ZZZ&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Please help me, to solve this problem.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;regards,&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 21:12:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-two-values/m-p/806246#M284613</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-16T21:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: Merge two values</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-two-values/m-p/806247#M284614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I add the match and len column to show the solution, if you don't want the 2 columns add a preceding load, in bold, to filter values with match = 0 and to just keep one column&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a:&lt;/P&gt;&lt;P&gt;load *, len(field) as len inline [&lt;/P&gt;&lt;P&gt;field&lt;/P&gt;&lt;P&gt;ABC-CDE&lt;/P&gt;&lt;P&gt;ABC-CDEFG&lt;/P&gt;&lt;P&gt;XYZ-AB-001&lt;/P&gt;&lt;P&gt;XYZ-AB-001-C1&lt;/P&gt;&lt;P&gt;AAABBB&lt;/P&gt;&lt;P&gt;ZZZZZ&lt;/P&gt;&lt;P&gt;ZZZ&lt;/P&gt;&lt;P&gt;ZZZZ&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;load field where match=0;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&amp;nbsp; field,&lt;/P&gt;&lt;P&gt;&amp;nbsp; len,&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(wildmatch(field, peek(field) &amp;amp; '*') and len(peek(field))&amp;gt;0, 1, 0) as match &lt;/P&gt;&lt;P&gt;Resident&lt;/P&gt;&lt;P&gt;&amp;nbsp; a&lt;/P&gt;&lt;P&gt;order by field, len;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table a;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 21:16:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-two-values/m-p/806247#M284614</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-01-16T21:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: Merge two values</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-two-values/m-p/806248#M284615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Massimo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No effect on the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This output is coming&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ABC-CDE&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ABC-CDEFG&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;XYZ-AB-001&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;XYZ-AB-001-C1&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;AAABBB&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ZZZZZ&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ZZZ&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ZZZZ&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;instead of required output.&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12.8000001907349px;"&gt;ABC-CDE&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12.8000001907349px;"&gt;XYZ-AB-001&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12.8000001907349px;"&gt;AAABBB&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12.8000001907349px;"&gt;ZZZ&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 21:35:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-two-values/m-p/806248#M284615</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-16T21:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: Merge two values</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-two-values/m-p/806249#M284616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;are you sure?&lt;/P&gt;&lt;P&gt;I reload the script and I got 4 rows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/75558_1.png" style="height: 402px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 21:42:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-two-values/m-p/806249#M284616</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-01-16T21:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: Merge two values</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-two-values/m-p/806250#M284617</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;another solution might be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_148680_Pic1.JPG" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/75563_QlikCommunity_Thread_148680_Pic1.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro _jivemacro_uid_14214495900834172 jive_macro_code" jivemacro_uid="_14214495900834172"&gt;
&lt;P&gt;table1:&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyField, fact&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ABC-CDE, 1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ABC-CDEFG, 2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; XYZ-AB-001, 3&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; XYZ-AB-001-C1, 4&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BCD-EFGHI-JKLM-0123, 5&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BCD-EFGHI-JKLM, 6&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BCD-EFGHI, 7&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BCD-EFGHIJKL, 8&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BCD-EFGHI-0123, 9&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CDEF-GHIJ-KLMNO, 10&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CDEF-GHIJ-KLMN, 11&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CDEF-GHI-KLMNO, 12&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DEF-GHIJ-LM, 13&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DEF-GHIJ-KL, 14&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DEF-GHIJ-LK, 15&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Right Join&lt;/P&gt;
&lt;P&gt;LOAD MyField Where CountMyField=1;&lt;/P&gt;
&lt;P&gt;LOAD MyField, Count(MyField) as CountMyField Group By MyField;&lt;/P&gt;
&lt;P&gt;LOAD * Where FieldIndex('MyField', MySubField);&lt;/P&gt;
&lt;P&gt;LOAD MyField, Left(MyField,IterNo()) as MySubField&lt;/P&gt;
&lt;P&gt;Resident table1 While IterNo()&amp;lt;=Len(MyField);&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 23:06:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-two-values/m-p/806250#M284617</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2015-01-16T23:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Merge two values</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-two-values/m-p/806251#M284618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Massimo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this script will give you better understanding, when I'm going to add one more field then nothing is going to be showed, please check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a:&lt;/P&gt;&lt;P&gt;load *, len(field) as len inline [&lt;/P&gt;&lt;P&gt;field, value&lt;/P&gt;&lt;P&gt;ABC-CDE, 2&lt;/P&gt;&lt;P&gt;ABC-CDEFG, 2&lt;/P&gt;&lt;P&gt;XYZ-AB-001, 3&lt;/P&gt;&lt;P&gt;XYZ-AB-001-C1,3 &lt;/P&gt;&lt;P&gt;AAABBB, 4&lt;/P&gt;&lt;P&gt;ZZZZZ, 5&lt;/P&gt;&lt;P&gt;ZZZ, 5&lt;/P&gt;&lt;P&gt;ZZZZ, 5&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b:&lt;/P&gt;&lt;P&gt;load field where match=1;&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&amp;nbsp; field,&lt;/P&gt;&lt;P&gt;&amp;nbsp; len,&lt;/P&gt;&lt;P&gt;&amp;nbsp; value,&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(wildmatch(field, peek(field) &amp;amp; '*') and len(peek(field))&amp;gt;0, 1, 0) as match&lt;/P&gt;&lt;P&gt;Resident&lt;/P&gt;&lt;P&gt;&amp;nbsp; a&lt;/P&gt;&lt;P&gt;order by field, len;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table a;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Jan 2015 07:23:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-two-values/m-p/806251#M284618</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-17T07:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Merge two values</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-two-values/m-p/806252#M284619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;in my script I have 0 not 1 because match = 1 is for values I have already found&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;load field where match=0;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Jan 2015 07:53:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-two-values/m-p/806252#M284619</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-01-17T07:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Merge two values</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-two-values/m-p/806253#M284620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Massimo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's working fine when only one filed loaded, one I'm going to load one more field then it's not working properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to load one more field called Quantity, which consist on the values of field, which are merged to each other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to load field Quantity through your valuable script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Jan 2015 17:20:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-two-values/m-p/806253#M284620</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-17T17:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: Merge two values</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-two-values/m-p/806254#M284621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please post some data, or your script, I didn't understand your new requirement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Jan 2015 17:38:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-two-values/m-p/806254#M284621</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-01-17T17:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: Merge two values</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-two-values/m-p/806255#M284622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Massimo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my sample data, I hope It will give you clear idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Input:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&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;}" 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;}" style="width: 139px;"&gt;&lt;TBODY&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TH style="color: #ffffff; text-align: center; width: 75%; background-color: #6690bc;"&gt;field&lt;/TH&gt;&lt;TH style="color: #ffffff; text-align: center; background-color: #6690bc;"&gt;value&lt;/TH&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl63" height="20" style="height: 15pt; border-top-style: none; color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: transparent;"&gt;ABC-CDE&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top-style: none; border-left-style: none; color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: transparent;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl63" height="20" style="height: 15pt; border-top-style: none; color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: transparent;"&gt;ABC-CDEFG&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top-style: none; border-left-style: none; color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: transparent;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl63" height="20" style="height: 15pt; border-top-style: none; color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: transparent;"&gt;XYZ-AB-001&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top-style: none; border-left-style: none; color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: transparent;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl63" height="20" style="height: 15pt; border-top-style: none; color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: transparent;"&gt;XYZ-AB-001-C1&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top-style: none; border-left-style: none; color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: transparent;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Required Output:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 122pt;" width="162"&gt;&lt;TBODY&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl65" height="20" style="height: 15.0pt; width: 74pt;" width="98"&gt;field&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none; width: 48pt;" width="64"&gt;value&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl65" height="20" style="height: 15.0pt; border-top: none;"&gt;ABC-CDE&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl65" height="20" style="height: 15.0pt; border-top: none;"&gt;XYZ-AB-001&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Jan 2015 17:54:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-two-values/m-p/806255#M284622</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-17T17:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: Merge two values</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-two-values/m-p/806256#M284623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;a:&lt;/P&gt;&lt;P&gt;load *, len(field) as len inline [&lt;/P&gt;&lt;P&gt;field, value&lt;/P&gt;&lt;P&gt;ABC-CDE, 2&lt;/P&gt;&lt;P&gt;ABC-CDEFG, 2&lt;/P&gt;&lt;P&gt;XYZ-AB-001, 3&lt;/P&gt;&lt;P&gt;XYZ-AB-001-C1,3&lt;/P&gt;&lt;P&gt;AAABBB, 4&lt;/P&gt;&lt;P&gt;ZZZZZ, 5&lt;/P&gt;&lt;P&gt;ZZZ, 5&lt;/P&gt;&lt;P&gt;ZZZZ, 5&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&amp;nbsp; field,&lt;/P&gt;&lt;P&gt;&amp;nbsp; len,&lt;/P&gt;&lt;P&gt;&amp;nbsp; value,&lt;/P&gt;&lt;P&gt;&amp;nbsp; //if(wildmatch(field, peek(field) &amp;amp; '*') and len(peek(field))&amp;gt;0, 1, 0) as match,&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(wildmatch(field, peek(field) &amp;amp; '*') and len(peek(field))&amp;gt;0, peek(fieldgroup), field) as fieldgroup&lt;/P&gt;&lt;P&gt;Resident a&lt;/P&gt;&lt;P&gt;order by field, len;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table a;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&amp;nbsp; fieldgroup as field,&lt;/P&gt;&lt;P&gt;&amp;nbsp; sum(value) as value&lt;/P&gt;&lt;P&gt;Resident b&lt;/P&gt;&lt;P&gt;group by fieldgroup;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table b;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Jan 2015 18:41:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-two-values/m-p/806256#M284623</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-01-17T18:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: Merge two values</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-two-values/m-p/806257#M284624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Massimo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your script working fine in inline load but when I'm going to load data from outside, then it is giving issue. I'm attaching my sample sales file "Sales.xlsx" as well as script which is modified by me. Please look into and make correction where I'm going wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp; len(field) as len,&lt;/P&gt;&lt;P&gt;&amp;nbsp; value&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[Sales.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&amp;nbsp; field,&lt;/P&gt;&lt;P&gt;&amp;nbsp; len,&lt;/P&gt;&lt;P&gt;&amp;nbsp; value,&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(wildmatch(field, peek(field) &amp;amp; '*') and len(peek(field))&amp;gt;0, peek(fieldgroup), field) as fieldgroup&lt;/P&gt;&lt;P&gt;Resident a&lt;/P&gt;&lt;P&gt;order by field, len;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table Sales;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&amp;nbsp; fieldgroup as field,&lt;/P&gt;&lt;P&gt;&amp;nbsp; sum(vale) as value&lt;/P&gt;&lt;P&gt;Resident b&lt;/P&gt;&lt;P&gt;group by fieldgroup;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table b;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Jan 2015 19:18:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-two-values/m-p/806257#M284624</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-17T19:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: Merge two values</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-two-values/m-p/806258#M284625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.8000001907349px;"&gt;Hi Massimo,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.8000001907349px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.8000001907349px;"&gt;Have you checked my sample file and script. please help me.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Jan 2015 20:25:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-two-values/m-p/806258#M284625</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-17T20:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: Merge two values</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-two-values/m-p/806259#M284626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sales:&lt;/P&gt;&lt;P&gt;LOAD field, value, len(field) as len&lt;/P&gt;&lt;P&gt;FROM Sales.xlsx (ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&amp;nbsp; field,&lt;/P&gt;&lt;P&gt;&amp;nbsp; len,&lt;/P&gt;&lt;P&gt;&amp;nbsp; value,&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(wildmatch(field, peek(field) &amp;amp; '*') and len(peek(field))&amp;gt;0, peek(fieldgroup), field) as fieldgroup&lt;/P&gt;&lt;P&gt;Resident Sales&lt;/P&gt;&lt;P&gt;order by field, len;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table Sales;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&amp;nbsp; fieldgroup as field,&lt;/P&gt;&lt;P&gt;&amp;nbsp; sum(value) as value&lt;/P&gt;&lt;P&gt;Resident b&lt;/P&gt;&lt;P&gt;group by fieldgroup;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table b;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/75590_1.png" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Jan 2015 20:33:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-two-values/m-p/806259#M284626</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-01-17T20:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: Merge two values</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-two-values/m-p/806260#M284627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Massimo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm specially thankful to you. You help me out this problem. Now It's working fine 80%. But still I need your little bit more help for achieve 100% correction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attached "Sales.xlsx" and "PrecdingLoadSolution.qvw". There is littlebit mismatch between field and value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly find attached screenshot and files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Jan 2015 21:59:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-two-values/m-p/806260#M284627</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-17T21:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Merge two values</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-two-values/m-p/806261#M284628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Massimo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me to solve the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Jan 2015 07:50:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-two-values/m-p/806261#M284628</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-18T07:50:53Z</dc:date>
    </item>
  </channel>
</rss>

