<?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 String comparision in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/String-comparision/m-p/1157694#M893182</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have below scenario and need your inputs on how to solve this prob..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a variable with complex set analysis which will give the result as below. These are Comments_ID of a table Comment which are separated by ";".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vCommentsID= ( 173-Bogus_ID;1971-Bogus_ID;1972-Bogus_ID;1977-Bogus_ID;1978-Bogus_ID;1979-Bogus_ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I need to compare above result set with the column Comments_ID from Comments and extract the remaining values like Comments_text, Comments_dt etc..&lt;/P&gt;&lt;P&gt;For this I used below expression where vcommentsID is the variable as descried above:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;if(SubStringCount('$(vCommentIds)',[comments_Id])&amp;gt;0,[comments_Id]&lt;/SPAN&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;But the problem is, I'm getting all the desired result as well as few&lt;/SPAN&gt; extra rows. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Ex: 173-Bogus_ID is resulting in 2 more ID's 73-Bogus_ID and 3-Bogus_ID from Comments table as these are also substring of the vCommentsId variable. But I don't want these 2 extra comment ID as they don't satisfy the criteria..&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Can you please suggest if there is any other way to handle this situation?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Thanks a lot!!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>String comparision</title>
      <link>https://community.qlik.com/t5/QlikView/String-comparision/m-p/1157694#M893182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have below scenario and need your inputs on how to solve this prob..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a variable with complex set analysis which will give the result as below. These are Comments_ID of a table Comment which are separated by ";".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vCommentsID= ( 173-Bogus_ID;1971-Bogus_ID;1972-Bogus_ID;1977-Bogus_ID;1978-Bogus_ID;1979-Bogus_ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I need to compare above result set with the column Comments_ID from Comments and extract the remaining values like Comments_text, Comments_dt etc..&lt;/P&gt;&lt;P&gt;For this I used below expression where vcommentsID is the variable as descried above:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;if(SubStringCount('$(vCommentIds)',[comments_Id])&amp;gt;0,[comments_Id]&lt;/SPAN&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;But the problem is, I'm getting all the desired result as well as few&lt;/SPAN&gt; extra rows. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Ex: 173-Bogus_ID is resulting in 2 more ID's 73-Bogus_ID and 3-Bogus_ID from Comments table as these are also substring of the vCommentsId variable. But I don't want these 2 extra comment ID as they don't satisfy the criteria..&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Can you please suggest if there is any other way to handle this situation?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Thanks a lot!!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-comparision/m-p/1157694#M893182</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: String comparision</title>
      <link>https://community.qlik.com/t5/QlikView/String-comparision/m-p/1157695#M893183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be set this up like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;vCommentsID = (&lt;SPAN style="color: #ff0000;"&gt;|&lt;/SPAN&gt;173-Bogus_ID&lt;SPAN style="color: #ff0000;"&gt;|&lt;/SPAN&gt;;&lt;SPAN style="color: #ff0000;"&gt;|&lt;/SPAN&gt;1971-Bogus_ID&lt;SPAN style="color: #ff0000;"&gt;|&lt;/SPAN&gt;;&lt;SPAN style="color: #ff0000;"&gt;|&lt;/SPAN&gt;1972-Bogus_ID&lt;SPAN style="color: #ff0000;"&gt;|&lt;/SPAN&gt;;&lt;SPAN style="color: #ff0000;"&gt;|&lt;/SPAN&gt;1977-Bogus_ID&lt;SPAN style="color: #ff0000;"&gt;|&lt;/SPAN&gt;;&lt;SPAN style="color: #ff0000;"&gt;|&lt;/SPAN&gt;1978-Bogus_ID&lt;SPAN style="color: #ff0000;"&gt;|&lt;/SPAN&gt;;&lt;SPAN style="color: #ff0000;"&gt;|&lt;/SPAN&gt;1979-Bogus_ID&lt;SPAN style="color: #ff0000;"&gt;|&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;if(SubStringCount('$(vCommentIds)', &lt;SPAN style="color: #ff0000;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;|&lt;SPAN style="color: #575757;"&gt;&lt;SPAN style="color: #ff0000;"&gt;' &amp;amp;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #575757;"&gt;[&lt;/SPAN&gt;comments_Id] &lt;SPAN style="color: #ff0000;"&gt;&amp;amp; '|'&lt;/SPAN&gt;) &amp;gt; 0,[comments_Id]&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2016 16:16:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-comparision/m-p/1157695#M893183</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-09T16:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: String comparision</title>
      <link>https://community.qlik.com/t5/QlikView/String-comparision/m-p/1157696#M893184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply.. I will try to implement the same and see if it works.. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 06:07:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-comparision/m-p/1157696#M893184</guid>
      <dc:creator />
      <dc:date>2016-08-10T06:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: String comparision</title>
      <link>https://community.qlik.com/t5/QlikView/String-comparision/m-p/1157697#M893185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot sunny, it is working now.. Thanks again for ur time &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 07:06:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-comparision/m-p/1157697#M893185</guid>
      <dc:creator />
      <dc:date>2016-08-10T07:06:52Z</dc:date>
    </item>
  </channel>
</rss>

