<?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: String Aggregation Function for matching text in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/String-Aggregation-Function-for-matching-text/m-p/983835#M468587</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I probably didn't explain the issue well enough.&lt;/P&gt;&lt;P&gt;I believe your solution will CONCAT all the strings, separated by ';' and then extract the first entry up to the ';'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So - if my string was:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"20% discount and free gift;20% discount voucher;20% discount with money back"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then this function would give "20% discount and free gift".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I'd like is only the common string of "20% discount".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Aug 2015 15:28:28 GMT</pubDate>
    <dc:creator>richard_chilvers</dc:creator>
    <dc:date>2015-08-24T15:28:28Z</dc:date>
    <item>
      <title>String Aggregation Function for matching text</title>
      <link>https://community.qlik.com/t5/QlikView/String-Aggregation-Function-for-matching-text/m-p/983831#M468583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My data looks like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code, Description, Value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABC, 20% discount , £100&lt;/P&gt;&lt;P&gt;ABC, 20% discount voucher, £200&lt;/P&gt;&lt;P&gt;ABC, 20% discount with money back, £140&lt;/P&gt;&lt;P&gt;DEF, another discount, £20&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a straight table chart to aggregate (SUM) values by Code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABC £340&lt;/P&gt;&lt;P&gt;DEF £20&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a string function to show the first n matching characters in Description?&lt;/P&gt;&lt;P&gt;Eg. ABC, 20% discount, £340&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 14:53:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-Aggregation-Function-for-matching-text/m-p/983831#M468583</guid>
      <dc:creator>richard_chilvers</dc:creator>
      <dc:date>2015-08-24T14:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: String Aggregation Function for matching text</title>
      <link>https://community.qlik.com/t5/QlikView/String-Aggregation-Function-for-matching-text/m-p/983832#M468584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use concat() to aggregate your string-values and then apply an mid() or left() function to cut it after x-chars or you used subfield() for returning a certain string and/or you combined it in some ways.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 15:05:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-Aggregation-Function-for-matching-text/m-p/983832#M468584</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-08-24T15:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: String Aggregation Function for matching text</title>
      <link>https://community.qlik.com/t5/QlikView/String-Aggregation-Function-for-matching-text/m-p/983833#M468585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe CONCAT() would give me a string like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"20% discount;20% discount voucher;20% discount with money back"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how would I then reduce this to a string "20% discount" (ie. the common left portion) ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 15:13:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-Aggregation-Function-for-matching-text/m-p/983833#M468585</guid>
      <dc:creator>richard_chilvers</dc:creator>
      <dc:date>2015-08-24T15:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: String Aggregation Function for matching text</title>
      <link>https://community.qlik.com/t5/QlikView/String-Aggregation-Function-for-matching-text/m-p/983834#M468586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this case per subfield() which used the same delimiter which you used for concat():&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;subfield(concat(distinct Description, ';'), ';', 1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 15:19:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-Aggregation-Function-for-matching-text/m-p/983834#M468586</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-08-24T15:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: String Aggregation Function for matching text</title>
      <link>https://community.qlik.com/t5/QlikView/String-Aggregation-Function-for-matching-text/m-p/983835#M468587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I probably didn't explain the issue well enough.&lt;/P&gt;&lt;P&gt;I believe your solution will CONCAT all the strings, separated by ';' and then extract the first entry up to the ';'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So - if my string was:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"20% discount and free gift;20% discount voucher;20% discount with money back"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then this function would give "20% discount and free gift".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I'd like is only the common string of "20% discount".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 15:28:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-Aggregation-Function-for-matching-text/m-p/983835#M468587</guid>
      <dc:creator>richard_chilvers</dc:creator>
      <dc:date>2015-08-24T15:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: String Aggregation Function for matching text</title>
      <link>https://community.qlik.com/t5/QlikView/String-Aggregation-Function-for-matching-text/m-p/983836#M468588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Richard,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using Pick and Wild Match&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Varun &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 15:38:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-Aggregation-Function-for-matching-text/m-p/983836#M468588</guid>
      <dc:creator>varunreddy</dc:creator>
      <dc:date>2015-08-24T15:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: String Aggregation Function for matching text</title>
      <link>https://community.qlik.com/t5/QlikView/String-Aggregation-Function-for-matching-text/m-p/983837#M468589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try This,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if(wildmatch(Description,'*20%*'), pick(wildmatch(Description,'*20%*'),'20% Discount'))&lt;/P&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;Varun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 15:44:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-Aggregation-Function-for-matching-text/m-p/983837#M468589</guid>
      <dc:creator>varunreddy</dc:creator>
      <dc:date>2015-08-24T15:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: String Aggregation Function for matching text</title>
      <link>https://community.qlik.com/t5/QlikView/String-Aggregation-Function-for-matching-text/m-p/983838#M468590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then you will need some logic to identify which or how many chars from string you want to return, maybe you used index() to find the max. number of return-chars like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left(Expression, index(Expression, ' ', 2) - 1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 15:44:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-Aggregation-Function-for-matching-text/m-p/983838#M468590</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-08-24T15:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: String Aggregation Function for matching text</title>
      <link>https://community.qlik.com/t5/QlikView/String-Aggregation-Function-for-matching-text/m-p/983839#M468591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Marcus &amp;amp; Varun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neither solution will give me a solution which is flexible enough. But I will keep exploring.&lt;/P&gt;&lt;P&gt;What I need is a character by character compare starting from the left until a character position fails the match.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 15:55:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-Aggregation-Function-for-matching-text/m-p/983839#M468591</guid>
      <dc:creator>richard_chilvers</dc:creator>
      <dc:date>2015-08-24T15:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: String Aggregation Function for matching text</title>
      <link>https://community.qlik.com/t5/QlikView/String-Aggregation-Function-for-matching-text/m-p/983840#M468592</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;You might have the other values also like 20% discount. 15 % discount... etc with many combinations. Without knowing the actual data it will be difficult to build the correct logic.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 15:57:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-Aggregation-Function-for-matching-text/m-p/983840#M468592</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2015-08-24T15:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: String Aggregation Function for matching text</title>
      <link>https://community.qlik.com/t5/QlikView/String-Aggregation-Function-for-matching-text/m-p/983841#M468593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;my attempt in the attachment&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 17:15:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-Aggregation-Function-for-matching-text/m-p/983841#M468593</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-08-24T17:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: String Aggregation Function for matching text</title>
      <link>https://community.qlik.com/t5/QlikView/String-Aggregation-Function-for-matching-text/m-p/983842#M468594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SubField( FieldDesc , ',',1) &amp;amp; ' ' &amp;amp; SubField( FieldDesc , ',',3)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 17:19:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-Aggregation-Function-for-matching-text/m-p/983842#M468594</guid>
      <dc:creator />
      <dc:date>2015-08-24T17:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: String Aggregation Function for matching text</title>
      <link>https://community.qlik.com/t5/QlikView/String-Aggregation-Function-for-matching-text/m-p/983843#M468595</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;Thanks for taking the time to understand my requirement and come up with a solution &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&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>Tue, 25 Aug 2015 08:07:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-Aggregation-Function-for-matching-text/m-p/983843#M468595</guid>
      <dc:creator>richard_chilvers</dc:creator>
      <dc:date>2015-08-25T08:07:22Z</dc:date>
    </item>
  </channel>
</rss>

