<?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: Compare two fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Compare-two-fields/m-p/882035#M996715</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;&lt;SPAN style="font-size: 10pt;"&gt;I dont know wht is ESTAOID but maybe this can help you:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;ID_ORDEN_IND&lt;/SPAN&gt;=&lt;SPAN style="color: #800000;"&gt;ID_ORDEN_TEM&lt;/SPAN&gt;,1,0)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Regards.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Jul 2015 17:32:47 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-07-03T17:32:47Z</dc:date>
    <item>
      <title>Compare two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-fields/m-p/882033#M996713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I have 2 fields&lt;BR /&gt;&lt;BR /&gt;ID_ORDEN_IND&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and&lt;BR /&gt;ID_ORDEN_TEM&lt;BR /&gt;&lt;BR /&gt;Both contain a sequence of numbers , for example : 445566&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN lang="en"&gt;I would like to know how many&lt;/SPAN&gt; ID are repeated each other ... something like the following:&lt;BR /&gt;&lt;BR /&gt;If ID_ORDEN_IND = ID_ORDEN_TEM , COUNT ( ESTADOID )&lt;BR /&gt;&lt;BR /&gt;But not how to translate it into an expression paragraph get the calculation.&lt;BR /&gt;&lt;BR /&gt;I hope you can help me, thanks in advance. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2015 17:14:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-fields/m-p/882033#M996713</guid>
      <dc:creator />
      <dc:date>2015-07-03T17:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-fields/m-p/882034#M996714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where does field ESTADOID come from?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do the analysis like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD ID_ORDEN_IND as TestID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'IND' as Source&lt;/P&gt;&lt;P&gt;FROM YourIndIDSource;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;LOAD ID_ORDEN_TEM as TestID,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'TEM' as Source&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;FROM YourTemIDSource;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Now you can create a chart with TestID as dimension and &lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;=Count(Distinct Source) &lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;as expression. Sort by expression descending shows all duplicate IDs on top.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;You create an overall count like&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;=Count({&amp;lt;TestID = {"=Count(Distinct Source)=2"}&amp;gt;} Distinct TestID)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2015 17:27:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-fields/m-p/882034#M996714</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-07-03T17:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-fields/m-p/882035#M996715</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;&lt;SPAN style="font-size: 10pt;"&gt;I dont know wht is ESTAOID but maybe this can help you:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;ID_ORDEN_IND&lt;/SPAN&gt;=&lt;SPAN style="color: #800000;"&gt;ID_ORDEN_TEM&lt;/SPAN&gt;,1,0)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Regards.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2015 17:32:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-fields/m-p/882035#M996715</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-03T17:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-fields/m-p/882036#M996716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Guerreiro,&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;It is your expression, right?&amp;nbsp; &lt;BR /&gt;&lt;/SPAN&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;If ID_ORDEN_IND = ID_ORDEN_TEM , COUNT ( ESTADOID )&lt;/SPAN&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;BR /&gt;&lt;/SPAN&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;So, I try rewrite it:&lt;/SPAN&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;COUNT(DISTINCT IF(ID_ORDEN_IND = ID_ORDEN_TEM, ESTADOID))&lt;/SPAN&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;BR /&gt;&lt;/SPAN&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;By the way, in my opinion, Giuseppe is right too.&lt;/SPAN&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;BR /&gt;&lt;/SPAN&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;Regards. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2015 20:14:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-fields/m-p/882036#M996716</guid>
      <dc:creator>gilbertomedeiro</dc:creator>
      <dc:date>2015-07-03T20:14:25Z</dc:date>
    </item>
  </channel>
</rss>

