<?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: Please help explain this SubStringCount and Concat function expression :) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Please-help-explain-this-SubStringCount-and-Concat-function/m-p/914446#M317215</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;&lt;STRONG&gt;You are saying without the '|' it would not work properly?&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;In this application it will work, but using | is kind of a 'standard recipe', the person who elaborate the expression maybe saw this expression somewhere else&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM style="color: #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;And what do you mean by more than one occurance?&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;If you have "Category" selected (&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;or nothing is selected at all)&lt;/SPAN&gt; , &lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SubStringCount would return 1, if its not selected this will return 0.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Same remark about using a 'standard recipe'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please add &lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SubStringCount(Concat(_Dimension,'|'), 'Category') and &lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Concat(_Dimension,'|') to textboxes and play with the listbox paying attention to the values returned&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Aug 2015 20:25:04 GMT</pubDate>
    <dc:creator>Clever_Anjos</dc:creator>
    <dc:date>2015-08-06T20:25:04Z</dc:date>
    <item>
      <title>Please help explain this SubStringCount and Concat function expression :)</title>
      <link>https://community.qlik.com/t5/QlikView/Please-help-explain-this-SubStringCount-and-Concat-function/m-p/914443#M317212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following Dimensions and Expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Measures:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _MetricsNo, _Metrics&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, Sales&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, Margin&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, Margin %&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, Number of Orders&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5, Average Discount&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimensions:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _Dimension&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Category&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Company&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Country&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Division&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales Person&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Quarter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month Year&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the front end I am using the following for a Calculation Condition for the Dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SubStringCount(Concat(_Dimension,'|'), 'Category')&amp;gt;0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone explain why there is a need for '|' and &amp;gt;0 in the above expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I take away the &amp;gt;0 it seems to work fine so not sure why it is there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And similar for an Expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SubStringCount(Concat(_MetricsNo, '|'), 1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why there is a need for '|' ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the '|' is used as seperators but not really sure why it's needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached an example for you to show this in the straight table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 19:55:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Please-help-explain-this-SubStringCount-and-Concat-function/m-p/914443#M317212</guid>
      <dc:creator>jblomqvist</dc:creator>
      <dc:date>2015-08-06T19:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Please help explain this SubStringCount and Concat function expression :)</title>
      <link>https://community.qlik.com/t5/QlikView/Please-help-explain-this-SubStringCount-and-Concat-function/m-p/914444#M317213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The '|' is there to avoid misinterpretation of substrings, for example &lt;/P&gt;&lt;P&gt;"Category1", "Category2" will not be considered since the concatenation would transform into &lt;SPAN style="font-size: 13.3333330154419px;"&gt;"Category1|Category2"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;0 its a way of saying "More than one occurance"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 20:17:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Please-help-explain-this-SubStringCount-and-Concat-function/m-p/914444#M317213</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2015-08-06T20:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: Please help explain this SubStringCount and Concat function expression :)</title>
      <link>https://community.qlik.com/t5/QlikView/Please-help-explain-this-SubStringCount-and-Concat-function/m-p/914445#M317214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Clever,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; Can you please elaborate a bit more on the two I almost understand but not fully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are saying without the '|' it would not work properly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And what do you mean by more than one occurance?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 20:19:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Please-help-explain-this-SubStringCount-and-Concat-function/m-p/914445#M317214</guid>
      <dc:creator>jblomqvist</dc:creator>
      <dc:date>2015-08-06T20:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: Please help explain this SubStringCount and Concat function expression :)</title>
      <link>https://community.qlik.com/t5/QlikView/Please-help-explain-this-SubStringCount-and-Concat-function/m-p/914446#M317215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;&lt;STRONG&gt;You are saying without the '|' it would not work properly?&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;In this application it will work, but using | is kind of a 'standard recipe', the person who elaborate the expression maybe saw this expression somewhere else&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM style="color: #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;And what do you mean by more than one occurance?&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;If you have "Category" selected (&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;or nothing is selected at all)&lt;/SPAN&gt; , &lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SubStringCount would return 1, if its not selected this will return 0.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Same remark about using a 'standard recipe'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please add &lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SubStringCount(Concat(_Dimension,'|'), 'Category') and &lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Concat(_Dimension,'|') to textboxes and play with the listbox paying attention to the values returned&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 20:25:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Please-help-explain-this-SubStringCount-and-Concat-function/m-p/914446#M317215</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2015-08-06T20:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: Please help explain this SubStringCount and Concat function expression :)</title>
      <link>https://community.qlik.com/t5/QlikView/Please-help-explain-this-SubStringCount-and-Concat-function/m-p/914447#M317216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;"Please add &lt;/EM&gt;&lt;/SPAN&gt;&lt;EM style="color: #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;SubStringCount(Concat(_Dimension,'|'), 'Category') and &lt;SPAN style="font-weight: inherit;"&gt;Concat(_Dimension,'|') to textboxes and play with the listbox paying attention to the values returned"&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: inherit;"&gt;Sorry, you already have done that &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 20:27:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Please-help-explain-this-SubStringCount-and-Concat-function/m-p/914447#M317216</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2015-08-06T20:27:14Z</dc:date>
    </item>
  </channel>
</rss>

