<?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 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date/m-p/461910#M1159700</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey ,&lt;/P&gt;&lt;P&gt; now it is working . But there is a second condition where it has to satisfy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It has to show red if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;status is not delivered and&lt;/P&gt;&lt;P&gt;State is not equals to 'closed or resolved'&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Today()-Date&amp;gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;It has to satisfy all three conditions then only it should display in red colour please suggest&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 23 Dec 2012 07:18:37 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-12-23T07:18:37Z</dc:date>
    <item>
      <title>Date</title>
      <link>https://community.qlik.com/t5/QlikView/Date/m-p/461905#M1159695</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;I have 3 columns &lt;STRONG&gt;Order number, Status, Date&lt;/STRONG&gt;( which contains the date and time of the order) . Now in a staright table or pivot table i will use these columns but the background colour of the order number must be red if the difference between(in hours) Date and present date exceeds 48 hours whose status is 'Not delivered'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&amp;nbsp; :My data looks like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Order number, Status, Date&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;12,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; delivered,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2012-12-1 12:30:48&lt;/P&gt;&lt;P&gt;10,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; not delivered,&amp;nbsp;&amp;nbsp; 2012-12-22 10:02:21&lt;/P&gt;&lt;P&gt;15,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; not delivered,&amp;nbsp;&amp;nbsp; 2012-12-19 23:21:10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;. In this case for the orders 10 and 12 the background colour must be white(for the column order) since they are not exceeded 48 hours. Where as for order 15 it should display with red colour.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this there are 2 senarios . What if the time format is 24 hours and what if the format is 12 hours(am and pm).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Dec 2012 04:48:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date/m-p/461905#M1159695</guid>
      <dc:creator />
      <dc:date>2012-12-22T04:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: Date</title>
      <link>https://community.qlik.com/t5/QlikView/Date/m-p/461906#M1159696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This expression should do it if your Date field is already a timestamp. The formatting of the time doesn't matter.&lt;/P&gt;&lt;P&gt;if(Status='not delivered' and Now()-Date&amp;gt;2, red(),white())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if your Date field is a string you need to make a timestamp of it first: &lt;/P&gt;&lt;P&gt;for a 24 hour format: timestamp#(Date,'YYYY-MM-DD hh:mm:ss') &lt;/P&gt;&lt;P&gt;for an am/pm format: timestamp#(Date,'YYYY-MM-DD hh:mm:ss tt')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've used the now() function which includes the time. If you want the start of today instead use the today() function.&lt;/P&gt;&lt;P&gt;Now()-Date&amp;gt;2 means the difference between now() and Date is larger than 2 days, i.e. 48 hours.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Dec 2012 10:21:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date/m-p/461906#M1159696</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-12-22T10:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: Date</title>
      <link>https://community.qlik.com/t5/QlikView/Date/m-p/461907#M1159697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried in different ways . But it is not giving what i require . More over &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Now()-Date&lt;/SPAN&gt; nor TOday&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;()-Date is not giving the correct output. my data looks like this &lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="248"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="85"&gt;Ticket No.&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="163"&gt;Date Opened&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;"&gt;i-2166541&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;01-11-12 07:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;"&gt;i-2166707&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;01-11-12 09:11&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;"&gt;r-2167098&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;01-11-12 13:05&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;"&gt;i-2167177&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;01-11-12 13:53&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;"&gt;i-2167377&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;01-11-12 17:23&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;"&gt;i-2167758&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;02-11-12 06:39&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;"&gt;i-2168539&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;02-11-12 17:24&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;"&gt;i-2169064&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;05-11-12 02:44&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;"&gt;i-2169081&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;05-11-12 03:15&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Can you please create&amp;nbsp; a small application with this data and can you give me what i require &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;and correct me where i am going wrong.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;In the application please use both NOW and Today functions for clear understanding how they work&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Dec 2012 15:55:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date/m-p/461907#M1159697</guid>
      <dc:creator />
      <dc:date>2012-12-22T15:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: Date</title>
      <link>https://community.qlik.com/t5/QlikView/Date/m-p/461908#M1159698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached example&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Dec 2012 17:23:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date/m-p/461908#M1159698</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-12-22T17:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Date</title>
      <link>https://community.qlik.com/t5/QlikView/Date/m-p/461909#M1159699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thankq but&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;when i am trying to use this expression "if(Status='not delivered' and Today()-Date&amp;gt;2, red(),white())", it showing red colour to all those status which are nor delivered please assist. it is not taking today()- &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Date&amp;gt;2. Please assist&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Dec 2012 06:46:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date/m-p/461909#M1159699</guid>
      <dc:creator />
      <dc:date>2012-12-23T06:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: Date</title>
      <link>https://community.qlik.com/t5/QlikView/Date/m-p/461910#M1159700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey ,&lt;/P&gt;&lt;P&gt; now it is working . But there is a second condition where it has to satisfy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It has to show red if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;status is not delivered and&lt;/P&gt;&lt;P&gt;State is not equals to 'closed or resolved'&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Today()-Date&amp;gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;It has to satisfy all three conditions then only it should display in red colour please suggest&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Dec 2012 07:18:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date/m-p/461910#M1159700</guid>
      <dc:creator />
      <dc:date>2012-12-23T07:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: Date</title>
      <link>https://community.qlik.com/t5/QlikView/Date/m-p/461911#M1159701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;if(Status&amp;lt;&amp;gt;'delivered' and State&amp;lt;&amp;gt;'closed or resolved' and Today()-Date&amp;gt;2, red(), white())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or if closed and resolved are separate states try:&lt;/P&gt;&lt;P&gt;if(Status&amp;lt;&amp;gt;'delivered' and State&amp;lt;&amp;gt;'closed' and State&amp;lt;&amp;gt;'resolved' and Today()-Date&amp;gt;2, red(), white())&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Dec 2012 10:29:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date/m-p/461911#M1159701</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-12-23T10:29:06Z</dc:date>
    </item>
  </channel>
</rss>

