<?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 a chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Compare-two-fields-in-a-chart/m-p/910305#M316097</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create calculated dimesion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=aggr(if(trim(lower(IDA))=trim(lower(IDB)),'Valid','Invalid'), Dimension)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or Expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(trim(lower(IDA))=trim(lower(IDB)),'Valid','Invalid')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Aug 2015 18:55:13 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2015-08-04T18:55:13Z</dc:date>
    <item>
      <title>Compare two fields in a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-fields-in-a-chart/m-p/910298#M316090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: Calibri; font-size: 11pt;"&gt;I have two fields&amp;nbsp; of IDs : IDA and IDB I want to compare in a chart. If value of IDA appears in IDB, then mark it valid. The chart should look like this. I think there should be an expression I can write for the "Valid" column, can someone help with that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11pt;"&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="0" cellspacing="0" style="border: #a3a3a3 1pt solid;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="border: #a3a3a3 1pt solid; padding: 4pt;"&gt;&lt;P style="font-family: Calibri; font-size: 11pt;"&gt;IDA&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: #a3a3a3 1pt solid; padding: 4pt;"&gt;&lt;P style="font-family: Calibri; font-size: 11pt;"&gt;Valid&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: #a3a3a3 1pt solid; padding: 4pt;"&gt;&lt;P style="font-family: Calibri; font-size: 11pt;"&gt;251243&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: #a3a3a3 1pt solid; padding: 4pt;"&gt;&lt;P style="font-family: Calibri; font-size: 11pt;"&gt;Yes&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: #a3a3a3 1pt solid; padding: 4pt;"&gt;&lt;P style="font-family: Calibri; font-size: 11pt;"&gt;12613&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: #a3a3a3 1pt solid; padding: 4pt;"&gt;&lt;P style="font-family: Calibri; font-size: 11pt;"&gt;NO&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: #a3a3a3 1pt solid; padding: 4pt;"&gt;&lt;P style="font-family: Calibri; font-size: 11pt;"&gt;1543&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: #a3a3a3 1pt solid; padding: 4pt;"&gt;&lt;P style="font-family: Calibri; font-size: 11pt;"&gt;Yes&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: #a3a3a3 1pt solid; padding: 4pt;"&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: #a3a3a3 1pt solid; padding: 4pt;"&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 15:03:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-fields-in-a-chart/m-p/910298#M316090</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-04T15:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two fields in a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-fields-in-a-chart/m-p/910299#M316091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you send the IDB values?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 15:06:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-fields-in-a-chart/m-p/910299#M316091</guid>
      <dc:creator>maximiliano_vel</dc:creator>
      <dc:date>2015-08-04T15:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two fields in a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-fields-in-a-chart/m-p/910300#M316092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;251243,&lt;/P&gt;&lt;P&gt;12612,&lt;/P&gt;&lt;P&gt;1543&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 15:37:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-fields-in-a-chart/m-p/910300#M316092</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-04T15:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two fields in a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-fields-in-a-chart/m-p/910301#M316093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FieldsTmp:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp; IDA, IDB&lt;/P&gt;&lt;P&gt;&amp;nbsp; 251243, 1543&lt;/P&gt;&lt;P&gt;&amp;nbsp; 12613, 251243&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1543, 12612&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ToCompare:&lt;/P&gt;&lt;P&gt;LOAD IDB as CompareTo&lt;/P&gt;&lt;P&gt;RESIDENT FieldsTmp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOCONCATENATE&lt;/P&gt;&lt;P&gt;Comp:&lt;/P&gt;&lt;P&gt;LOAD IDA,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IDB,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Exists(CompareTo, IDA), 'Yes', 'No') as Valid&lt;/P&gt;&lt;P&gt;RESIDENT&amp;nbsp; FieldsTmp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table FieldsTmp, ToCompare;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 15:48:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-fields-in-a-chart/m-p/910301#M316093</guid>
      <dc:creator>maximiliano_vel</dc:creator>
      <dc:date>2015-08-04T15:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two fields in a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-fields-in-a-chart/m-p/910302#M316094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyway this can be done in the chart instead in the load script? I was trying to avoid using load script because there are a lot of fields I'm trying to compare. I feel an expresison in the chart will be easier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 17:52:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-fields-in-a-chart/m-p/910302#M316094</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-04T17:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two fields in a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-fields-in-a-chart/m-p/910303#M316095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the columns IDA and IDB are like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;IDA&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;IDB&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;12345&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12345&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1262&lt;/TD&gt;&lt;TD&gt;1263&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3425&lt;/TD&gt;&lt;TD&gt;3425&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the Valid Column shoud be something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=f([IDA]=[IDB], 'Yes', 'No')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 18:00:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-fields-in-a-chart/m-p/910303#M316095</guid>
      <dc:creator>maximiliano_vel</dc:creator>
      <dc:date>2015-08-04T18:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two fields in a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-fields-in-a-chart/m-p/910304#M316096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, IDA and IDB are fields from two differnet tables. How should the expression be modified?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 18:48:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-fields-in-a-chart/m-p/910304#M316096</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-04T18:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two fields in a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-fields-in-a-chart/m-p/910305#M316097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create calculated dimesion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=aggr(if(trim(lower(IDA))=trim(lower(IDB)),'Valid','Invalid'), Dimension)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or Expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(trim(lower(IDA))=trim(lower(IDB)),'Valid','Invalid')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 18:55:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-fields-in-a-chart/m-p/910305#M316097</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2015-08-04T18:55:13Z</dc:date>
    </item>
  </channel>
</rss>

