<?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 Compare two dates in a pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Compare-two-dates-in-a-pivot-table/m-p/217624#M70810</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Xena,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, this is what I am looking for. I appreciate your help very much!! Thank you!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Oct 2009 22:27:03 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-10-29T22:27:03Z</dc:date>
    <item>
      <title>Compare two dates in a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-dates-in-a-pivot-table/m-p/217615#M70801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;I am trying to compare two dates in a pivot table. Both dates are 'DUE_DATE' pulled from the same table in the database. I have included a screen shot of the two dates I am comparing, highlighted and labeled. I have hidden some of the items to protect the innocent [:D]. As you will see, Date2 is only 3 months away from Date1. This is an example of items/cells I want to highlight. The two dates should be 6 months apart, and this will help the person reviewing this data in order to correct the database.&lt;/P&gt;&lt;P&gt;Here is what I want to accomplish, or what I think needs to be done:&lt;BR /&gt;If Date1 is greater than Date2 + 6 months, highlight as red.&lt;BR /&gt;If Date1 is less than Date2 + 6 months, highlight as red.&lt;/P&gt;&lt;P&gt;I tried comparing the two columns using relational operator &amp;gt; &amp;amp; &amp;lt;, but nothing happens. Would this have anything to do with the fact that I have other data in the columns, Month(s) fields?&lt;BR /&gt;The different combinations I have tried:&lt;BR /&gt;- If(Column(17) &amp;gt; Column(21) + 6, rgb(255,173,173))&lt;BR /&gt;- If(Column(17) &amp;gt; (Column(21) + 6), rgb(255,173,173))&lt;BR /&gt;- If(Column(17) &amp;gt; Column(21) and Column(21) + 6, rgb(255,173,173))&lt;BR /&gt;- If(Column(17) &amp;gt; Column(21) or Column(21) + 6, rgb(255,173,173))&lt;BR /&gt;- If(Column(17) &amp;gt; Column(21) and (Column(21) + 6), rgb(255,173,173))&lt;BR /&gt;- If(Column(17) &amp;gt; Column(21) or (Column(21) + 6), rgb(255,173,173))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated. Thank you!&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-508_sourceID:508" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2009 22:43:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-dates-in-a-pivot-table/m-p/217615#M70801</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-10-15T22:43:35Z</dc:date>
    </item>
    <item>
      <title>Compare two dates in a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-dates-in-a-pivot-table/m-p/217616#M70802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;P&gt;instead of + 6 try using the add months function and if you can upload some dummy application then it will be easy to understand&lt;/P&gt;&lt;P&gt;Talha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2009 23:12:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-dates-in-a-pivot-table/m-p/217616#M70802</guid>
      <dc:creator />
      <dc:date>2009-10-15T23:12:06Z</dc:date>
    </item>
    <item>
      <title>Compare two dates in a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-dates-in-a-pivot-table/m-p/217617#M70803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Talha,&lt;/P&gt;&lt;P&gt;I have tried your suggestion, but I am having no luck with it. No cells are being highlighted. Do you know how I would upload a dummy qvw to the forum? I have included code below from a test qvw I created and a screen shot of the Excel test data.&lt;/P&gt;&lt;P&gt;Here is the script code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;LOAD Name,&lt;BR /&gt; Test,&lt;BR /&gt; Code,&lt;BR /&gt; [Hire Month],&lt;BR /&gt; [Due Date],&lt;BR /&gt; Scheduled&lt;BR /&gt;FROM &lt;C&gt; (biff, embedded labels, table is [Sheet1$]);&lt;BR /&gt;&lt;/C&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Here is the 'background color' code for Due Date:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;=If(Column(1) &amp;gt; addmonths(Column(3),6),rgb(255,173,173),&lt;BR /&gt; If(Column(1) &amp;lt; addmonths(Column(3),6),rgb(255,173,173),&lt;BR /&gt; If(Column(3) &amp;gt; addmonths(Column(1),6),rgb(255,173,173),&lt;BR /&gt; If(Column(3) &amp;lt; addmonths(Column(1),6),rgb(255,173,173)))))&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/7043.excel_5F00_test_5F00_data.jpg"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/7043.excel_5F00_test_5F00_data.jpg" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2009 21:44:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-dates-in-a-pivot-table/m-p/217617#M70803</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-10-16T21:44:44Z</dc:date>
    </item>
    <item>
      <title>Compare two dates in a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-dates-in-a-pivot-table/m-p/217618#M70804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike when you reply this back on the community then there is ,on the top of this page 3 tabs compose,options and preview, go into options and there you can select the dummy qvw you want to post on this community,it will get attached to your message.&lt;/P&gt;&lt;P&gt;Try to send the dummy qvw file&lt;/P&gt;&lt;P&gt;Talha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2009 23:20:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-dates-in-a-pivot-table/m-p/217618#M70804</guid>
      <dc:creator />
      <dc:date>2009-10-16T23:20:35Z</dc:date>
    </item>
    <item>
      <title>Compare two dates in a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-dates-in-a-pivot-table/m-p/217619#M70805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let's see if this works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2009 23:25:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-dates-in-a-pivot-table/m-p/217619#M70805</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-10-16T23:25:35Z</dc:date>
    </item>
    <item>
      <title>Compare two dates in a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-dates-in-a-pivot-table/m-p/217620#M70806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And now the excel ss.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2009 23:26:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-dates-in-a-pivot-table/m-p/217620#M70806</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-10-16T23:26:40Z</dc:date>
    </item>
    <item>
      <title>Compare two dates in a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-dates-in-a-pivot-table/m-p/217621#M70807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you are looking for something like this i have not spend time on the if statement&lt;/P&gt;&lt;P&gt;Please see&lt;/P&gt;&lt;P&gt;Talha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2009 23:55:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-dates-in-a-pivot-table/m-p/217621#M70807</guid>
      <dc:creator />
      <dc:date>2009-10-16T23:55:12Z</dc:date>
    </item>
    <item>
      <title>Compare two dates in a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-dates-in-a-pivot-table/m-p/217622#M70808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;I think you are looking for something like this, which compares the 2 Due Dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Oct 2009 17:22:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-dates-in-a-pivot-table/m-p/217622#M70808</guid>
      <dc:creator />
      <dc:date>2009-10-18T17:22:33Z</dc:date>
    </item>
    <item>
      <title>Compare two dates in a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-dates-in-a-pivot-table/m-p/217623#M70809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Talha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the late reply, but this is still highlighting all fields cells for Due Date. I have tried different things with addmonths and nothing seems to work with that function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The next response from Xena works and is what I was looking for. Thank you for your time!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2009 22:25:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-dates-in-a-pivot-table/m-p/217623#M70809</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-10-29T22:25:59Z</dc:date>
    </item>
    <item>
      <title>Compare two dates in a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-dates-in-a-pivot-table/m-p/217624#M70810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Xena,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, this is what I am looking for. I appreciate your help very much!! Thank you!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2009 22:27:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-dates-in-a-pivot-table/m-p/217624#M70810</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-10-29T22:27:03Z</dc:date>
    </item>
  </channel>
</rss>

