<?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 Conditional formatting on time fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditional-formatting-on-time-fields/m-p/632277#M231994</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am fairly new to Qlik but having problems getting my head around conditional formatting on time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have named objects that go through 5 stages and each stage is time stamped, i have a table that shows the time that each of the stage is completed and a scheduled completion time field and what I would like to do is set up the formatting that for example is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If Stage A&amp;nbsp; is &amp;lt;= Scheduled time - 2hrs then green&lt;/P&gt;&lt;P&gt;If Stage A is &amp;lt;=Scheduled time - 1 hr then Amber&lt;/P&gt;&lt;P&gt; If Stage A &amp;gt;= Scheduled Time then Red&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can manage this for actual numbers but cant seem to get it to work as these are time fields HH:MM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 May 2014 10:55:34 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-05-29T10:55:34Z</dc:date>
    <item>
      <title>Conditional formatting on time fields</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-formatting-on-time-fields/m-p/632277#M231994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am fairly new to Qlik but having problems getting my head around conditional formatting on time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have named objects that go through 5 stages and each stage is time stamped, i have a table that shows the time that each of the stage is completed and a scheduled completion time field and what I would like to do is set up the formatting that for example is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If Stage A&amp;nbsp; is &amp;lt;= Scheduled time - 2hrs then green&lt;/P&gt;&lt;P&gt;If Stage A is &amp;lt;=Scheduled time - 1 hr then Amber&lt;/P&gt;&lt;P&gt; If Stage A &amp;gt;= Scheduled Time then Red&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can manage this for actual numbers but cant seem to get it to work as these are time fields HH:MM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2014 10:55:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-formatting-on-time-fields/m-p/632277#M231994</guid>
      <dc:creator />
      <dc:date>2014-05-29T10:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional formatting on time fields</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-formatting-on-time-fields/m-p/632278#M231995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with this by click on the + sign in expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If( Stage &amp;lt;=&amp;nbsp; Time#(Scheduled time,'hh' ) - 2, Green( ),&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If( Stage &amp;lt;=&amp;nbsp; Time#(Scheduled time,'hh' ) - 1, Blue(),&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If( Stage &amp;gt;=&amp;nbsp; Time#(Scheduled time,'hh' ),Red())))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2014 11:01:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-formatting-on-time-fields/m-p/632278#M231995</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-05-29T11:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional formatting on time fields</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-formatting-on-time-fields/m-p/632279#M231996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have tried this and it does not appear to be working &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt; cant see any colour changes in my chart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2014 11:34:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-formatting-on-time-fields/m-p/632279#M231996</guid>
      <dc:creator />
      <dc:date>2014-05-29T11:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional formatting on time fields</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-formatting-on-time-fields/m-p/632280#M231997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Plz post any sample application then you will get correct answer in less time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2014 11:35:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-formatting-on-time-fields/m-p/632280#M231997</guid>
      <dc:creator>jsingh71</dc:creator>
      <dc:date>2014-05-29T11:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Conditional formatting on time fields</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-formatting-on-time-fields/m-p/632281#M231998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do I attached a sample qvd file, can see an option to insert a video or an image but not anything else,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2014 11:51:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-formatting-on-time-fields/m-p/632281#M231998</guid>
      <dc:creator />
      <dc:date>2014-05-29T11:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional formatting on time fields</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-formatting-on-time-fields/m-p/632282#M231999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While replying, If u did n't find the attach option in i nthe editor, switch to "Advance Editor" option. there you can find the file atatch option.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2014 12:01:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-formatting-on-time-fields/m-p/632282#M231999</guid>
      <dc:creator>PradeepReddy</dc:creator>
      <dc:date>2014-05-29T12:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional formatting on time fields</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-formatting-on-time-fields/m-p/632283#M232000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, Sue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dates and Times in QlikView are stored as a number where the integer part correspond to the day since 30th December 1899 and the decimal part to the fraction of a day. For example, today's date (29th May 2014) is 41788, and today at 8:35 am is 41788.357638889. (Actualy, they are stored in a dual format, with a string representation besides the number, but we are concerned with the number part.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if we subtract two timestamps with the same day but different times, we'll get a fractional number like 0.083333. The trick would be to know which number corresponds to intervals of one hour and two hours. But it's very easy. Since we know one day is the integer 1, one hour is 1/24 and two hours is 2/24. If w'd want minutes, we'd divide further for 60 (1/24/60), and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now we can code our conditional format:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;if([Scheduled time] - [Stage A] &amp;gt;= 2/24, RGB(0, 255, 0),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;if([Scheduled time] - [Stage A] &amp;gt;= 1/24, RGB(255, 126, 0),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;if([Scheduled time] &amp;lt;= [Stage A], RGB(255, 0, 0))))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Notice we are missing the condition when &lt;SPAN style="font-family: 'courier new', courier;"&gt;0h &amp;lt; ([Scheduled time] - [Stage A]) &amp;lt; 1h&lt;/SPAN&gt;.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I hole this helps.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Bruno.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2014 12:01:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-formatting-on-time-fields/m-p/632283#M232000</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-29T12:01:27Z</dc:date>
    </item>
  </channel>
</rss>

