<?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: Surely this is a simple fix... in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Surely-this-is-a-simple-fix/m-p/749068#M267286</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tested the following code with some dummy data and it seems to work just as you wanted:&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 * INLINE [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BeautyParadeDate, SiteVisitDate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01/01/2015, 12/31/2014&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 03/15/2013, 06/15/2013&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table2:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Alt(If(BeautyParadeDate &amp;gt; SiteVisitDate, BeautyParadeDate, SiteVisitDate), 'Tender') as SiteVisit&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;IMG class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/79985_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Mar 2015 11:54:47 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-03-05T11:54:47Z</dc:date>
    <item>
      <title>Surely this is a simple fix...</title>
      <link>https://community.qlik.com/t5/QlikView/Surely-this-is-a-simple-fix/m-p/749064#M267282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;...I just can't seem to figure it out!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two fields, BeautyParadeDate and SiteVisitDate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to do the following;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If both fields are blank then state "Tender", else, state BeautyParade or SiteVisit dependant on which date is greater.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For some reason I cannot get this to work &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/silly.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 11:42:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Surely-this-is-a-simple-fix/m-p/749064#M267282</guid>
      <dc:creator />
      <dc:date>2015-03-05T11:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: Surely this is a simple fix...</title>
      <link>https://community.qlik.com/t5/QlikView/Surely-this-is-a-simple-fix/m-p/749065#M267283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Samuel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this an script issue or are you stacked building an expression? Please post sample as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 11:44:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Surely-this-is-a-simple-fix/m-p/749065#M267283</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-05T11:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: Surely this is a simple fix...</title>
      <link>https://community.qlik.com/t5/QlikView/Surely-this-is-a-simple-fix/m-p/749066#M267284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to achieve it within the script, I've literally got one line of data at the moment with two fields!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 170pt; border-collapse: collapse;" width="226"&gt;&lt;TBODY&gt;&lt;TR style="height: 15pt; mso-height-source: userset;"&gt;&lt;TD class="xl63" height="20" style="border: 0px windowtext; width: 98pt; height: 15pt; background-color: transparent;" width="130"&gt;&lt;STRONG style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;Beauty Parade Date&lt;/STRONG&gt;&lt;/TD&gt; &lt;TD class="xl63" style="border: 0px windowtext; width: 72pt; background-color: transparent;" width="96"&gt;&lt;STRONG style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;Site Visit Date&lt;/STRONG&gt;&lt;/TD&gt; &lt;/TR&gt; &lt;TR style="height: 15pt; mso-height-source: userset;"&gt; &lt;TD class="xl64" height="20" style="border: 0px black; height: 15pt; background-color: transparent;"&gt;&lt;/TD&gt; &lt;TD align="right" class="xl64" style="border: 0px black; background-color: transparent;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;03/02/2015&lt;/SPAN&gt;&lt;/TD&gt; &lt;/TR&gt; &lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If they are both blank then "Tender" else state the one with the max date. The result of the above should say "Site Visit"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 11:47:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Surely-this-is-a-simple-fix/m-p/749066#M267284</guid>
      <dc:creator />
      <dc:date>2015-03-05T11:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: Surely this is a simple fix...</title>
      <link>https://community.qlik.com/t5/QlikView/Surely-this-is-a-simple-fix/m-p/749067#M267285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Alt(If(&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;BeautyParadeDate &amp;gt; SiteVisitDate, &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;BeautyParadeDate, SiteVisitDate), 'Tender') as SiteVisit&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(IsNull(&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;BeautyParadeDate) and IsNull(SiteVisitDate), 'Tender', If(&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;BeautyParadeDate &amp;gt; SiteVisitDate, &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;BeautyParadeDate, SiteVisitDate)) as SiteVisit&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&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;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 11:48:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Surely-this-is-a-simple-fix/m-p/749067#M267285</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-03-05T11:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Surely this is a simple fix...</title>
      <link>https://community.qlik.com/t5/QlikView/Surely-this-is-a-simple-fix/m-p/749068#M267286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tested the following code with some dummy data and it seems to work just as you wanted:&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 * INLINE [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BeautyParadeDate, SiteVisitDate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01/01/2015, 12/31/2014&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 03/15/2013, 06/15/2013&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table2:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Alt(If(BeautyParadeDate &amp;gt; SiteVisitDate, BeautyParadeDate, SiteVisitDate), 'Tender') as SiteVisit&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;IMG class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/79985_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 11:54:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Surely-this-is-a-simple-fix/m-p/749068#M267286</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-03-05T11:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: Surely this is a simple fix...</title>
      <link>https://community.qlik.com/t5/QlikView/Surely-this-is-a-simple-fix/m-p/749069#M267287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Must be something odd going on then as I tried these solutions before and all I get is Tender, for some reason the dates are being ignored &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 11:59:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Surely-this-is-a-simple-fix/m-p/749069#M267287</guid>
      <dc:creator />
      <dc:date>2015-03-05T11:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: Surely this is a simple fix...</title>
      <link>https://community.qlik.com/t5/QlikView/Surely-this-is-a-simple-fix/m-p/749070#M267288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be the dates you are using are picked up by QlikView as text instead of date. You might want to use Date# function if that is the case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 12:01:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Surely-this-is-a-simple-fix/m-p/749070#M267288</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-03-05T12:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: Surely this is a simple fix...</title>
      <link>https://community.qlik.com/t5/QlikView/Surely-this-is-a-simple-fix/m-p/749071#M267289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As suggested by sunindia, it is working. Please could you add sample code here which you are using .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 12:13:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Surely-this-is-a-simple-fix/m-p/749071#M267289</guid>
      <dc:creator>manojkulkarni</dc:creator>
      <dc:date>2015-03-05T12:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Surely this is a simple fix...</title>
      <link>https://community.qlik.com/t5/QlikView/Surely-this-is-a-simple-fix/m-p/749072#M267290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nothing seemed to work with this so I had to build a separate indicator field for each status and work it out from there. Thanks anyway people&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2015 11:37:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Surely-this-is-a-simple-fix/m-p/749072#M267290</guid>
      <dc:creator />
      <dc:date>2015-03-06T11:37:05Z</dc:date>
    </item>
  </channel>
</rss>

