<?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: Row comparison in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Row-comparison/m-p/871583#M304704</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;You can you PEEK() function in the script to compare fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style=": ; font-size: 10pt; font-family: Times New Roman;"&gt;Peek(fieldname [, row [, tablename ]] &lt;/EM&gt;&lt;STRONG style=": ; font-size: 8pt; font-family: Arial;"&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. IF(Amount= Peek('Amount'), 1) AS %FieldCompareFlag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use this flag in your straight table and hide it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Jul 2015 13:58:37 GMT</pubDate>
    <dc:creator>Gabriel</dc:creator>
    <dc:date>2015-07-14T13:58:37Z</dc:date>
    <item>
      <title>Row comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Row-comparison/m-p/871580#M304701</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 the below table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; 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;Company&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;Amount&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;C&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;90&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;D&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;85&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want to do is to compare A to other companies:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; 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;Company&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Amount&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Comparison&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;No Comparison Necessary&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;200&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;B is greater than A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;C&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;90&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;C is lower than A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;D&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;85&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;D is lower than A&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just wanted to see if there is an easy way to do this with or without creating additional dimensions/tables in the load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Straight or pivot table solutions are highly desirable.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 13:49:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Row-comparison/m-p/871580#M304701</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2015-07-14T13:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Row comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Row-comparison/m-p/871581#M304702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This may be not what you want, because I am sure the data you provided above must be a sample, but this might give you an idea to proceed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Company, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Amount&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2051" data-containertype="14" data-objectid="172514" data-objecttype="1" href="https://community.qlik.com/thread/172514"&gt;https://community.qlik.com/thread/172514&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(html, codepage is 1252, embedded labels, table is @1);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Temp:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD FirstValue(Amount) as Temp&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET vTemp = Peek('Temp');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Join (Table)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Company,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; If(Company = 'A', 'No Comparison Necessary',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; If(Amount &amp;gt; $(vTemp), Company &amp;amp; ' is greater than A',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; If(Amount &amp;lt; $(vTemp), Company &amp;amp; ' is lower than A'))) as Comparison&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table Temp;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 13:55:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Row-comparison/m-p/871581#M304702</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-14T13:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Row comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Row-comparison/m-p/871582#M304703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just saw your comment that you need this on the front end. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 13:57:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Row-comparison/m-p/871582#M304703</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-14T13:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: Row comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Row-comparison/m-p/871583#M304704</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;You can you PEEK() function in the script to compare fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style=": ; font-size: 10pt; font-family: Times New Roman;"&gt;Peek(fieldname [, row [, tablename ]] &lt;/EM&gt;&lt;STRONG style=": ; font-size: 8pt; font-family: Arial;"&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. IF(Amount= Peek('Amount'), 1) AS %FieldCompareFlag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use this flag in your straight table and hide it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 13:58:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Row-comparison/m-p/871583#M304704</guid>
      <dc:creator>Gabriel</dc:creator>
      <dc:date>2015-07-14T13:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: Row comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Row-comparison/m-p/871584#M304705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in the front end you can try like this:&lt;/P&gt;&lt;P&gt;if(Company='A','No Change', if(Amount&amp;lt;=$(vAmount),Company&amp;amp;' is Lower than A', Company&amp;amp;' is Greater than A'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: create variable &lt;SPAN style="font-size: 13.3333330154419px;"&gt;vAmount=num(only({&amp;lt;Company={'A'}&amp;gt;}Amount))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 14:04:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Row-comparison/m-p/871584#M304705</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2015-07-14T14:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: Row comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Row-comparison/m-p/871585#M304706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Front end solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Company&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Amount&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If(Company = 'A', 'No Comparison Necessary',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; If(Only(TOTAL {&amp;lt;Company = {A}&amp;gt;}Amount) &amp;gt; Amount, Company &amp;amp; ' is greater than A',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; If(Only(TOTAL {&amp;lt;Company = {A}&amp;gt;}Amount) &amp;lt; Amount, Company &amp;amp; ' is less than A')))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/92809_Capture.PNG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 14:48:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Row-comparison/m-p/871585#M304706</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-14T14:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: Row comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Row-comparison/m-p/871586#M304707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are the man, Sunny.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I may have a follow up question later on though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know Robert Mika posted a solution and I don't know what happened to it. It disappeared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 15:15:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Row-comparison/m-p/871586#M304707</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2015-07-14T15:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: Row comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Row-comparison/m-p/871587#M304708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure either, but if you need to see his response, this was it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: Helvetica, Arial, sans-serif; font-size: 14px;"&gt;&lt;STRONG&gt;if(rowNO()=1,'no comaprision',if(rangesum(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #666666; font-size: 14px; font-family: Helvetica, Arial, sans-serif;"&gt;above(sum(Amount),1,1))&amp;lt;SUM(&lt;/STRONG&gt;&lt;SPAN style="color: #666666; font-family: Helvetica, Arial, sans-serif; font-size: 14px;"&gt;&lt;STRONG&gt;Amount),'lower than A','Greater than A'))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 15:18:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Row-comparison/m-p/871587#M304708</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-14T15:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: Row comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Row-comparison/m-p/871588#M304709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 15:21:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Row-comparison/m-p/871588#M304709</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2015-07-14T15:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: Row comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Row-comparison/m-p/871589#M304710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not a problem &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am glad I proved helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 15:23:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Row-comparison/m-p/871589#M304710</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-14T15:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: Row comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Row-comparison/m-p/871590#M304711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also came up with a solution which is a bit different than yours, but would you mind looking at the attached document and my expressions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is simply comparing every company to company A within regions:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/92964_Capture.PNG" style="height: 168px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;And here is the expression for folks who cannot open qvw files:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/92965_Capture.PNG" style="height: 229px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;As far as I know, this expression works because if statement is used within a function so it makes it row level. I might be wrong. However, do you think this could be a solution as well?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 23:10:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Row-comparison/m-p/871590#M304711</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2015-07-15T23:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: Row comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Row-comparison/m-p/871591#M304712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Sinan -&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;Your method &lt;/SPAN&gt;definitely&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; works and it works perfectly it seems. But, I am still a &lt;/SPAN&gt;newbie&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; to be able to tell which method is better. I have another option for the new data you shared. This one doesn't use Aggregate. Personally, I try to minimize the use of aggregate function. With that said, I am not really sure if my expression with TOTAL is any better than the one you have, but since you asked for my suggestion, I am going to give you another expression and you can probably stress test them to see which one is a better option.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Existing Expression:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If(RowNo() = 1, 'No Comparison', &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; If(Sum(Aggr(if(Company &amp;lt;&amp;gt; 'A',Amount), Region, Company)) &amp;gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Above(Sum(if(Company = 'A', Amount)),1,1), 'Greater than A', 'Lower than A'))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New Expression:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If(Match(Company, 'A'), 'No Comparison', &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; If(Sum(Total &amp;lt;Region&amp;gt; {&amp;lt;Company = {'A'}&amp;gt;}Amount) &amp;gt; Sum(Amount), 'Lower than A', 'Greater than A'))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also attaching the qvw document for you to review.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2015 02:59:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Row-comparison/m-p/871591#M304712</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-16T02:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Row comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Row-comparison/m-p/871592#M304713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much Sunny for your time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yours looks much easier to understand and read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2015 03:03:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Row-comparison/m-p/871592#M304713</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2015-07-16T03:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: Row comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Row-comparison/m-p/871593#M304714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem at all &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am glad together we can get the best solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2015 03:04:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Row-comparison/m-p/871593#M304714</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-16T03:04:33Z</dc:date>
    </item>
  </channel>
</rss>

