<?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: If statement problem. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-statement-problem/m-p/568103#M1105731</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you considering A.M/P.M in now()?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Mar 2014 09:56:29 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2014-03-27T09:56:29Z</dc:date>
    <item>
      <title>If statement problem.</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-problem/m-p/568099#M1105727</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 2 listboxes with timestamps, HH:MM. Open and Close.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to check the current time to see if the store is open and or closed. So i want to return a 0 or 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my expression: if(time(now(1))&amp;gt;Open AND time(now(1))&amp;lt;Close, 1, 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It shows 0 when the open is 11:00 and close is 23:00 and now the time(now) = 10:47&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 09:47:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-problem/m-p/568099#M1105727</guid>
      <dc:creator />
      <dc:date>2014-03-27T09:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: If statement problem.</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-problem/m-p/568100#M1105728</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;The expression looks OK, but it will only work &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;in a chart/table expression or you have made selections so that no more than 1 possible open and close value (for each row in a chart).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 09:53:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-problem/m-p/568100#M1105728</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-03-27T09:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: If statement problem.</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-problem/m-p/568101#M1105729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you let me know, In which format you are having Open and Close Time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 09:53:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-problem/m-p/568101#M1105729</guid>
      <dc:creator>jsingh71</dc:creator>
      <dc:date>2014-03-27T09:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: If statement problem.</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-problem/m-p/568102#M1105730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And also can you share some sample data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Jai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 09:54:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-problem/m-p/568102#M1105730</guid>
      <dc:creator>jsingh71</dc:creator>
      <dc:date>2014-03-27T09:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: If statement problem.</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-problem/m-p/568103#M1105731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you considering A.M/P.M in now()?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 09:56:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-problem/m-p/568103#M1105731</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-03-27T09:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: If statement problem.</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-problem/m-p/568104#M1105732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cann't use Time as it is&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;if(time(Frac(now(1)))&amp;gt;Open AND time(Frac(now(1)))&amp;lt;Close, 1, 0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Becuase Time function internally it keeps the date value too.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;If this didn't works, could you please tell how your storing the time range in Open and Close?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 10:01:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-problem/m-p/568104#M1105732</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2014-03-27T10:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: If statement problem.</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-problem/m-p/568105#M1105733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That works! Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 11:20:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-problem/m-p/568105#M1105733</guid>
      <dc:creator />
      <dc:date>2014-03-27T11:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: If statement problem.</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-problem/m-p/568106#M1105734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No since im living in Sweden we don't use AM/PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 11:20:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-problem/m-p/568106#M1105734</guid>
      <dc:creator />
      <dc:date>2014-03-27T11:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: If statement problem.</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-problem/m-p/568107#M1105735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HH:MM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 11:20:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-problem/m-p/568107#M1105735</guid>
      <dc:creator />
      <dc:date>2014-03-27T11:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: If statement problem.</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-problem/m-p/568108#M1105736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One more question. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the 2 listboxes with PRU and AREA. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i want a chart to show if(time(Frac(now(1)))&amp;gt;Open AND time(Frac(now(1)))&amp;lt;Close, 0, 1) but only for PRU A and AREA A how can i hardcode this into my if statement? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 11:26:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-problem/m-p/568108#M1105736</guid>
      <dc:creator />
      <dc:date>2014-03-27T11:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: If statement problem.</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-problem/m-p/568109#M1105737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Write a condition in the chart properties as&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=time(Frac(now(1)))&amp;gt;Open AND time(Frac(now(1)))&amp;lt;Close and PRU = 'A' AND AREA = 'A'&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 11:30:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-problem/m-p/568109#M1105737</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2014-03-27T11:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: If statement problem.</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-problem/m-p/568110#M1105738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I still want it to return 0 or 1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 11:31:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-problem/m-p/568110#M1105738</guid>
      <dc:creator />
      <dc:date>2014-03-27T11:31:52Z</dc:date>
    </item>
  </channel>
</rss>

