<?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 SubStringCount(Concat in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SubStringCount-Concat/m-p/612833#M1113675</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello together,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´m trying to show some expressions in my chart only conditionally. Therefore I created in my script a table that I use in a list box:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;INLINE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[_DisplayChartReference, _references&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, Plan,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, YTD,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, Outlook,&lt;BR /&gt;]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Now my expression in my chart has the following condition: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SubStringCount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Concat&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;_DisplayChartReference&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, '|'), 1) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I also tried:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SubStringCount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Concat&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;_references&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, '|'), 'Plan')&amp;gt;1,1,0&lt;/SPAN&gt;&lt;STRONG style=": ; color: #ff0000; font-size: 8pt;"&gt;) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;But both doesn´t work. I already created a self report with a pivot table. Here this worked well and therefore I don´t understand what I´m doing wrong? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Many thanks for your help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Carolin&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Mar 2014 12:12:04 GMT</pubDate>
    <dc:creator>carolin01</dc:creator>
    <dc:date>2014-03-07T12:12:04Z</dc:date>
    <item>
      <title>SubStringCount(Concat</title>
      <link>https://community.qlik.com/t5/QlikView/SubStringCount-Concat/m-p/612833#M1113675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello together,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´m trying to show some expressions in my chart only conditionally. Therefore I created in my script a table that I use in a list box:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;INLINE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[_DisplayChartReference, _references&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, Plan,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, YTD,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, Outlook,&lt;BR /&gt;]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Now my expression in my chart has the following condition: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SubStringCount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Concat&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;_DisplayChartReference&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, '|'), 1) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I also tried:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SubStringCount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Concat&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;_references&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, '|'), 'Plan')&amp;gt;1,1,0&lt;/SPAN&gt;&lt;STRONG style=": ; color: #ff0000; font-size: 8pt;"&gt;) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;But both doesn´t work. I already created a self report with a pivot table. Here this worked well and therefore I don´t understand what I´m doing wrong? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Many thanks for your help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Carolin&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2014 12:12:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SubStringCount-Concat/m-p/612833#M1113675</guid>
      <dc:creator>carolin01</dc:creator>
      <dc:date>2014-03-07T12:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: SubStringCount(Concat</title>
      <link>https://community.qlik.com/t5/QlikView/SubStringCount-Concat/m-p/612834#M1113676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps: &lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;SubStringCount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;Concat&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;_DisplayChartReference&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;, '|'), '1')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second won't work without an if:&lt;/P&gt;&lt;P&gt;=if(&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;SubStringCount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;Concat&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;_references&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;, '|'), 'Plan')&amp;gt;1,1,0)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2014 12:18:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SubStringCount-Concat/m-p/612834#M1113676</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-03-07T12:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: SubStringCount(Concat</title>
      <link>https://community.qlik.com/t5/QlikView/SubStringCount-Concat/m-p/612835#M1113677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: 'Courier New'; font-size: 9pt;"&gt;try this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-size: 9pt; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;"&gt; In the dimension properties, check the option for “Enable Conditional” and enter the following code&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-size: 9pt; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;"&gt;You will want to add similar code to each dimension, changing the letter to correspond with what you used in your inline table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: 'Courier New'; font-size: 9pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: 'Courier New'; font-size: 9pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;SubStringCount&lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;Concat&lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;SPAN style="color: #800000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 11px;"&gt;_references&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: 'Courier New'; font-size: 9pt;"&gt;, '|'), '&lt;SPAN style="color: #800000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 11px;"&gt;Plan&lt;/SPAN&gt;')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: 'Courier New'; font-size: 9pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;"&gt;The last thing to do is add a Calculation Condition to the general tab of the object so that the object only displays when at least one dimension and expression is selected:&lt;/P&gt;&lt;P style="color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;GetSelectedCount&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;SPAN style="color: #800000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 11px;"&gt;_DisplayChartReference&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 9pt;"&gt;)&amp;gt;0 &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;AND&lt;/SPAN&gt; &lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;GetSelectedCount&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;_Expression&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 9pt;"&gt;)&amp;gt;0&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2014 12:30:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SubStringCount-Concat/m-p/612835#M1113677</guid>
      <dc:creator>sunilkumarqv</dc:creator>
      <dc:date>2014-03-07T12:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: SubStringCount(Concat</title>
      <link>https://community.qlik.com/t5/QlikView/SubStringCount-Concat/m-p/612836#M1113678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This document I wrote on substringcount could be useful for your implementation:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-5841"&gt;http://community.qlik.com/docs/DOC-5841&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2014 12:39:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SubStringCount-Concat/m-p/612836#M1113678</guid>
      <dc:creator>simondachstr</dc:creator>
      <dc:date>2014-03-07T12:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: SubStringCount(Concat</title>
      <link>https://community.qlik.com/t5/QlikView/SubStringCount-Concat/m-p/612837#M1113679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you both, both worked well. Maybe you could help me with another question:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My list box has got three values that I will connect to the expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plan, YTD and Outlook&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now, if nothing is selected then all three expression appear. I would like to have the oposite: Only if Plan, YTD or Outlook is selected the expression should appear. Is this possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2014 12:40:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SubStringCount-Concat/m-p/612837#M1113679</guid>
      <dc:creator>carolin01</dc:creator>
      <dc:date>2014-03-07T12:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: SubStringCount(Concat</title>
      <link>https://community.qlik.com/t5/QlikView/SubStringCount-Concat/m-p/612838#M1113680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunil already posted the answer to that in his last post. You can use the getselectedcount function for that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2014 12:52:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SubStringCount-Concat/m-p/612838#M1113680</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-03-07T12:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: SubStringCount(Concat</title>
      <link>https://community.qlik.com/t5/QlikView/SubStringCount-Concat/m-p/612839#M1113681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry right, I see. Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2014 13:06:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SubStringCount-Concat/m-p/612839#M1113681</guid>
      <dc:creator>carolin01</dc:creator>
      <dc:date>2014-03-07T13:06:27Z</dc:date>
    </item>
  </channel>
</rss>

