<?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: Condition based on today's date? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Condition-based-on-today-s-date/m-p/453118#M1159810</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;First check the format of the enddate and today() are same are not&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if both are same format then use the cond&lt;/P&gt;&lt;P&gt;otherwise use the conversion functions like date,timestamp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in ur exp instead of today()+30 use below expr&lt;/P&gt;&lt;P&gt;=date(today()+30)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;if([EndDate] &amp;gt;= date(today()) and [EndDate] &amp;lt;= date(today()+30), [EndDate], NULL() ) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Nov 2012 05:29:20 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-11-21T05:29:20Z</dc:date>
    <item>
      <title>Condition based on today's date?</title>
      <link>https://community.qlik.com/t5/QlikView/Condition-based-on-today-s-date/m-p/453116#M1159808</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 am trying to restrict a table to show only rows of data where a date column (let's call it EndDate) is greater or equal to today (the day when the document is viewed or at least when it was last updated works for me).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't seem to get a condition in so I tried to create a new variable that compares EndDate from my data source to today's date and returns NULL if it is outside that range. The functions people talk about in these forums are today() and now() but neither really seems to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I add such a column to my data? In the script I tried somthing like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if([EndDate] &amp;gt;= today() and [EndDate] &amp;lt;= today()+30, [EndDate], NULL() ) as DuringNext30&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The example above is something I imagined working but it didn't.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;even something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;today() as TodaysDate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;didn't work. I guess I am trying some functions that may have a different name I don't know?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2012 23:25:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Condition-based-on-today-s-date/m-p/453116#M1159808</guid>
      <dc:creator />
      <dc:date>2012-11-20T23:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Condition based on today's date?</title>
      <link>https://community.qlik.com/t5/QlikView/Condition-based-on-today-s-date/m-p/453117#M1159809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In particular I want to show 3 different tables that do not analyze or calculate anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to show &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; one table with EndDate &amp;gt;= today and EndDate &amp;lt;= today+30&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; one table with EndDate &amp;gt; today+30&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; one table with EndDate &amp;lt; today&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so I don't want to alter the dataset for the whole document, just for the table objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This really feels like such a rookie question but I am stuck. Just starting out with QlikView.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 00:02:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Condition-based-on-today-s-date/m-p/453117#M1159809</guid>
      <dc:creator />
      <dc:date>2012-11-21T00:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: Condition based on today's date?</title>
      <link>https://community.qlik.com/t5/QlikView/Condition-based-on-today-s-date/m-p/453118#M1159810</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;First check the format of the enddate and today() are same are not&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if both are same format then use the cond&lt;/P&gt;&lt;P&gt;otherwise use the conversion functions like date,timestamp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in ur exp instead of today()+30 use below expr&lt;/P&gt;&lt;P&gt;=date(today()+30)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;if([EndDate] &amp;gt;= date(today()) and [EndDate] &amp;lt;= date(today()+30), [EndDate], NULL() ) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 05:29:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Condition-based-on-today-s-date/m-p/453118#M1159810</guid>
      <dc:creator />
      <dc:date>2012-11-21T05:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: Condition based on today's date?</title>
      <link>https://community.qlik.com/t5/QlikView/Condition-based-on-today-s-date/m-p/453119#M1159811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hm, I get an error telling me I have invalid data near the if statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before QlikView I used iNetSoft and there I could simply add any condition to any sheet object. I could right-clik on it and select condition and then say: Of all the lines of data, use only those where EndDate &amp;gt;= today. This was based on the object, not the whole sheet, so I could use different conditions for each table and chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I want to do here. I'm sure it's possible and probably the solution is better than the one in iNetSoft. However, I just can't find where I can set this up.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 14:20:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Condition-based-on-today-s-date/m-p/453119#M1159811</guid>
      <dc:creator />
      <dc:date>2012-11-21T14:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: Condition based on today's date?</title>
      <link>https://community.qlik.com/t5/QlikView/Condition-based-on-today-s-date/m-p/453120#M1159812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I figured out what happened:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added a table as a new sheet object. Here it didn't work. What I have to do is to add a chart and set the chart type to straight table - then it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not a very intuitive way to do it, I have to say.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 19:11:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Condition-based-on-today-s-date/m-p/453120#M1159812</guid>
      <dc:creator />
      <dc:date>2012-11-21T19:11:17Z</dc:date>
    </item>
  </channel>
</rss>

