<?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 columns in table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Comparing-two-columns-in-table/m-p/1739336#M56550</link>
    <description>&lt;P&gt;try below&lt;/P&gt;&lt;P&gt;if(Field1 = 'A', if(Date &amp;gt; Below(&lt;STRONG&gt;total&lt;/STRONG&gt; Date),Green(),Red()))&lt;/P&gt;</description>
    <pubDate>Thu, 27 Aug 2020 22:56:34 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2020-08-27T22:56:34Z</dc:date>
    <item>
      <title>Comparing two columns in table</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-two-columns-in-table/m-p/1739334#M56549</link>
      <description>&lt;P&gt;I'm having a requirement where I need to compare two columns within a table:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="0" width="127px" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="62px" height="17"&gt;FIELD1&lt;/TD&gt;&lt;TD width="64px"&gt;Date&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="62px" height="17"&gt;A&lt;/TD&gt;&lt;TD width="64px"&gt;3/2/16&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="62px" height="17"&gt;B&lt;/TD&gt;&lt;TD width="64px"&gt;2/5/15&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am needing to provide a visual cue such as a a different background color for 'A' if the date for that field is earlier or later than 'B'.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using the following expression:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if(Field1 = 'A', if(Date &amp;gt; Below(Date),Green(),Red()))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;however the background color only showing red for me when it should be showing&amp;nbsp; as green&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there something that I am doing wrong?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 21:08:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-two-columns-in-table/m-p/1739334#M56549</guid>
      <dc:creator>aswinnar</dc:creator>
      <dc:date>2021-12-20T21:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two columns in table</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-two-columns-in-table/m-p/1739336#M56550</link>
      <description>&lt;P&gt;try below&lt;/P&gt;&lt;P&gt;if(Field1 = 'A', if(Date &amp;gt; Below(&lt;STRONG&gt;total&lt;/STRONG&gt; Date),Green(),Red()))&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2020 22:56:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-two-columns-in-table/m-p/1739336#M56550</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-08-27T22:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two columns in table</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-two-columns-in-table/m-p/1739345#M56553</link>
      <description>&lt;P&gt;Yes, that worked. Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had forgotten to mention that the they were also wanting grey color if the dates are the same.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What would the expression be?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="lia-message-body lia-component-message-view-widget-body lia-component-body-signature-highlight-escalation lia-component-message-view-widget-body-signature-highlight-escalation"&gt;&lt;DIV class="lia-message-body-content"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="AddMessageTags lia-message-tags lia-component-message-view-widget-tags"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Aug 2020 03:03:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-two-columns-in-table/m-p/1739345#M56553</guid>
      <dc:creator>aswinnar</dc:creator>
      <dc:date>2020-08-28T03:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two columns in table</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-two-columns-in-table/m-p/1739535#M56587</link>
      <description>&lt;P&gt;add one more if in it try below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if(Field1 = 'A', if(Date &amp;gt; Below(&lt;/SPAN&gt;&lt;STRONG&gt;total&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;Date),Green(),if(Date&amp;lt;Below(total Date),Red(),grey())))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Aug 2020 15:37:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-two-columns-in-table/m-p/1739535#M56587</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2020-08-28T15:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two columns in table</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-two-columns-in-table/m-p/1739586#M56588</link>
      <description>&lt;P&gt;Hi I tried that, seems that I am still seeing the text turn green when the dates are the same&lt;/P&gt;</description>
      <pubDate>Fri, 28 Aug 2020 19:28:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-two-columns-in-table/m-p/1739586#M56588</guid>
      <dc:creator>aswinnar</dc:creator>
      <dc:date>2020-08-28T19:28:18Z</dc:date>
    </item>
  </channel>
</rss>

