<?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: Date greater than IF statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-greater-than-IF-statement/m-p/1218763#M389990</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try this, but selections will be problematic with this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Aggr(If(ServiceDate&amp;gt;CheckinDate,'Y','N'), &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ServiceDate&lt;/SPAN&gt;, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;CheckinDate&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Jan 2017 22:36:05 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-01-09T22:36:05Z</dc:date>
    <item>
      <title>Date greater than IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Date-greater-than-IF-statement/m-p/1218755#M389982</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 need to select data based on ServiceDate less than CheckinDate so I am trying to have a listbox with expression&lt;/P&gt;&lt;P&gt;IF(ServiceDate&amp;lt;CheckinDate,'Y','N'). However, that is not doing the right selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is how I have the script in the SQL:&lt;/P&gt;&lt;P&gt;cast(ServiceDateTime as date) as ServiceDate,&lt;/P&gt;&lt;P&gt;cast(CheckinDate as date) as CheckinDate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then on the chart properties-Number, I am selecting "M/D/YYYY".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could someone please help so that I can select the data where ServiceDate&amp;gt;CheckinDate?&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>Mon, 09 Jan 2017 22:19:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-greater-than-IF-statement/m-p/1218755#M389982</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-09T22:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: Date greater than IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Date-greater-than-IF-statement/m-p/1218756#M389983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be create this logic in the script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(ServiceDate &amp;gt; CheckinDate, 'Y', 'N') as Flag&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then use Flag as a way to filter?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2017 22:22:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-greater-than-IF-statement/m-p/1218756#M389983</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-09T22:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Date greater than IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Date-greater-than-IF-statement/m-p/1218757#M389984</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 was thinking about that but it is complicated to do it in the script since I am pulling whole sets of different tables in 2 different tabs in QlikView. It seems like the IF statement is confusing because of the format may be.&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>Mon, 09 Jan 2017 22:25:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-greater-than-IF-statement/m-p/1218757#M389984</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-09T22:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: Date greater than IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Date-greater-than-IF-statement/m-p/1218758#M389985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let me try to play and edit the SQL script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2017 22:26:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-greater-than-IF-statement/m-p/1218758#M389985</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-09T22:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: Date greater than IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Date-greater-than-IF-statement/m-p/1218759#M389986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The two dates are coming from different tables?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2017 22:27:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-greater-than-IF-statement/m-p/1218759#M389986</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-09T22:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Date greater than IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Date-greater-than-IF-statement/m-p/1218760#M389987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. The 2 dates are coming from the different tables but I used the same cast function in SQL so I am confused what is still wrong. And, I now see there are some NULL ServiceDates as well to make it even more complicated. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2017 22:31:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-greater-than-IF-statement/m-p/1218760#M389987</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-09T22:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: Date greater than IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Date-greater-than-IF-statement/m-p/1218761#M389988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a table box object and see if &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ServiceDate &lt;/STRONG&gt;and CheckinDate have one to one relation. If they don't then your if statement is not going to work unless you use Aggr statetment here (I think)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2017 22:33:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-greater-than-IF-statement/m-p/1218761#M389988</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-09T22:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Date greater than IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Date-greater-than-IF-statement/m-p/1218762#M389989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. It does have one to many but shouldn't that still work? The CheckinDate will be only 1 specific. However, the ServiceDate is pulling all the charges on several ServiceDate of the same visit. So I need all the charges that has ServiceDate greater than AdmitDate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2017 22:34:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-greater-than-IF-statement/m-p/1218762#M389989</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-09T22:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: Date greater than IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Date-greater-than-IF-statement/m-p/1218763#M389990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try this, but selections will be problematic with this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Aggr(If(ServiceDate&amp;gt;CheckinDate,'Y','N'), &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ServiceDate&lt;/SPAN&gt;, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;CheckinDate&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2017 22:36:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-greater-than-IF-statement/m-p/1218763#M389990</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-09T22:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Date greater than IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Date-greater-than-IF-statement/m-p/1218764#M389991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yup. Not selecting it right.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2017 22:38:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-greater-than-IF-statement/m-p/1218764#M389991</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-09T22:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: Date greater than IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Date-greater-than-IF-statement/m-p/1218765#M389992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No worries Sunny. I will just export the data in Excel and manually do it in Excel. I am getting off.&lt;/P&gt;&lt;P&gt;Thanks much for your time again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2017 22:45:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-greater-than-IF-statement/m-p/1218765#M389992</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-09T22:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: Date greater than IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Date-greater-than-IF-statement/m-p/1218766#M389993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I know it would be a problem.... only way would be to join the two tables in the script to create a flag field&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2017 22:45:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-greater-than-IF-statement/m-p/1218766#M389993</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-09T22:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: Date greater than IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Date-greater-than-IF-statement/m-p/1218767#M389994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;‌Is there anything that is common between the fields like a room id and are the service dates fixed or do they vary like the check in date?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2017 23:13:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-greater-than-IF-statement/m-p/1218767#M389994</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-09T23:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: Date greater than IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Date-greater-than-IF-statement/m-p/1218768#M389995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. VisitID is common between the two tables. ChecinDate is fixed per visit. However, service date can be several different one depending on when an amount was paid. Btw, I need amounts that were paid with service date prior to check in so I am about to update my original question. I have figured it out in Excel though. Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2017 13:44:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-greater-than-IF-statement/m-p/1218768#M389995</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-10T13:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: Date greater than IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Date-greater-than-IF-statement/m-p/1218769#M389996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you update your question? It sounds like something I have worked on in the past and I may be able to provide some info. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2017 18:04:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-greater-than-IF-statement/m-p/1218769#M389996</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-11T18:04:17Z</dc:date>
    </item>
  </channel>
</rss>

