<?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 functions for &amp;quot;find several values&amp;quot; in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/String-functions-for-quot-find-several-values-quot/m-p/1226638#M391434</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It might look a bit horrible this expression but it seems to do the trick...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14876068398689179 jive_text_macro" jivemacro_uid="_14876068398689179"&gt;
&lt;P style="font-size: 13.3333px;"&gt;=Alt(SubStringCount(v2,SubField(v1,',',1)),0)&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;+Alt(SubStringCount(v2,SubField(v1,',',2)),0)&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;+Alt(SubStringCount(v2,SubField(v1,',',3)),0)&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;+Alt(SubStringCount(v2,SubField(v1,',',4)),0)&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;+Alt(SubStringCount(v2,SubField(v1,',',5)),0)&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;+Alt(SubStringCount(v2,SubField(v1,',',6)),0)&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;+Alt(SubStringCount(v2,SubField(v1,',',7)),0)&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;+Alt(SubStringCount(v2,SubField(v1,',',8)),0)&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;+Alt(SubStringCount(v2,SubField(v1,',',9)),0)&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;+Alt(SubStringCount(v2,SubField(v1,',',10)),0)&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;+Alt(SubStringCount(v2,SubField(v1,',',11)),0)&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;+Alt(SubStringCount(v2,SubField(v1,',',12)),0)&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And as long as v1 contains a maximum of 12 values the v2 could contain as many more values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v1 and v2 could be either variables (with strings) or one specific field value in a row in a chart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Feb 2017 16:08:47 GMT</pubDate>
    <dc:creator>petter</dc:creator>
    <dc:date>2017-02-20T16:08:47Z</dc:date>
    <item>
      <title>String functions for "find several values"</title>
      <link>https://community.qlik.com/t5/QlikView/String-functions-for-quot-find-several-values-quot/m-p/1226636#M391432</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'm looking for a way to define if multiple substrings are contained in a string. Actually I'm talking about months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want for example to know if one of the months of the string :&lt;/P&gt;&lt;P&gt;'Jun,May'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is contained in the string :&lt;/P&gt;&lt;P&gt;'Apr,Aug,Dec,Feb,Jan,Jul,Jun,Mar,May,Nov,Oct,Sep'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The functions like substringcount of index will not work (alone at leaste) because it's actually 2 differents substring that I'm looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The strings will dynamically change with selections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2017 11:08:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-functions-for-quot-find-several-values-quot/m-p/1226636#M391432</guid>
      <dc:creator>maxime_gerard</dc:creator>
      <dc:date>2017-02-20T11:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: String functions for "find several values"</title>
      <link>https://community.qlik.com/t5/QlikView/String-functions-for-quot-find-several-values-quot/m-p/1226637#M391433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How many individual months can be in both of the strings are we taking about a handful or just a unique set of maximum twelve?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2017 15:56:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-functions-for-quot-find-several-values-quot/m-p/1226637#M391433</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2017-02-20T15:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: String functions for "find several values"</title>
      <link>https://community.qlik.com/t5/QlikView/String-functions-for-quot-find-several-values-quot/m-p/1226638#M391434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It might look a bit horrible this expression but it seems to do the trick...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14876068398689179 jive_text_macro" jivemacro_uid="_14876068398689179"&gt;
&lt;P style="font-size: 13.3333px;"&gt;=Alt(SubStringCount(v2,SubField(v1,',',1)),0)&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;+Alt(SubStringCount(v2,SubField(v1,',',2)),0)&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;+Alt(SubStringCount(v2,SubField(v1,',',3)),0)&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;+Alt(SubStringCount(v2,SubField(v1,',',4)),0)&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;+Alt(SubStringCount(v2,SubField(v1,',',5)),0)&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;+Alt(SubStringCount(v2,SubField(v1,',',6)),0)&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;+Alt(SubStringCount(v2,SubField(v1,',',7)),0)&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;+Alt(SubStringCount(v2,SubField(v1,',',8)),0)&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;+Alt(SubStringCount(v2,SubField(v1,',',9)),0)&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;+Alt(SubStringCount(v2,SubField(v1,',',10)),0)&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;+Alt(SubStringCount(v2,SubField(v1,',',11)),0)&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;+Alt(SubStringCount(v2,SubField(v1,',',12)),0)&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And as long as v1 contains a maximum of 12 values the v2 could contain as many more values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v1 and v2 could be either variables (with strings) or one specific field value in a row in a chart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2017 16:08:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-functions-for-quot-find-several-values-quot/m-p/1226638#M391434</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2017-02-20T16:08:47Z</dc:date>
    </item>
  </channel>
</rss>

