<?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: comparing two string variables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/comparing-two-string-variables/m-p/858267#M300634</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;My suggestion is to do this in script, it is the best practice.&amp;nbsp; If it is complicated then use below expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count(DISTINCT A) + Count(DISTINCT B) - Count({&amp;lt;A=P(B)&amp;gt;}&amp;nbsp; DISTINCT A) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Jun 2015 02:49:38 GMT</pubDate>
    <dc:creator>jagan</dc:creator>
    <dc:date>2015-06-19T02:49:38Z</dc:date>
    <item>
      <title>comparing two string variables</title>
      <link>https://community.qlik.com/t5/QlikView/comparing-two-string-variables/m-p/858264#M300631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;can you please let me know how to compare string variables in qlikview UI. For example I have two variables A and B&lt;/P&gt;&lt;P&gt;with below values&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 128px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="64"&gt;A&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none;"&gt;A1234&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;A1234&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none;"&gt;A5678&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;A5675&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none;"&gt;A8901&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;A5432&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to get distinct count after combining these values which is 5. Please help.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2015 01:14:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/comparing-two-string-variables/m-p/858264#M300631</guid>
      <dc:creator />
      <dc:date>2015-06-19T01:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: comparing two string variables</title>
      <link>https://community.qlik.com/t5/QlikView/comparing-two-string-variables/m-p/858265#M300632</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;Change your script like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;A &amp;amp; '|' &amp;amp; B AS Key&lt;/P&gt;&lt;P&gt;INLINE [&lt;/P&gt;&lt;P&gt;A, B&lt;/P&gt;&lt;P&gt;A1234, A1234&lt;/P&gt;&lt;P&gt;A5678, A5675&lt;/P&gt;&lt;P&gt;A8901, A5432];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SplitValues:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Key,&lt;/P&gt;&lt;P&gt;SubField(Key, '|') AS CountField&lt;/P&gt;&lt;P&gt;RESIDENT Data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now use below expression to get distinct Count&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;=Count(DISTINCT CountField)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Hope it helps you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2015 02:30:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/comparing-two-string-variables/m-p/858265#M300632</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-06-19T02:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: comparing two string variables</title>
      <link>https://community.qlik.com/t5/QlikView/comparing-two-string-variables/m-p/858266#M300633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan Mohan,&lt;/P&gt;&lt;P&gt;Thanks for response I don't want logic in script, it needs to be in UI variables is based on complex condition and derived in UI. Please help. Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2015 02:34:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/comparing-two-string-variables/m-p/858266#M300633</guid>
      <dc:creator />
      <dc:date>2015-06-19T02:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: comparing two string variables</title>
      <link>https://community.qlik.com/t5/QlikView/comparing-two-string-variables/m-p/858267#M300634</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;My suggestion is to do this in script, it is the best practice.&amp;nbsp; If it is complicated then use below expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count(DISTINCT A) + Count(DISTINCT B) - Count({&amp;lt;A=P(B)&amp;gt;}&amp;nbsp; DISTINCT A) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2015 02:49:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/comparing-two-string-variables/m-p/858267#M300634</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-06-19T02:49:38Z</dc:date>
    </item>
  </channel>
</rss>

