<?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 Date +1 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-1/m-p/259623#M498097</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; well actuly every date expet to the 30/12/1899 is bigger then 23:59:59&lt;/P&gt;&lt;P&gt;you are checking dates agianst hours it not the same number&lt;/P&gt;&lt;P&gt;and 00:00:23 isnt bigger then 23:59:59it smaller&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Aug 2011 12:52:42 GMT</pubDate>
    <dc:creator>lironbaram</dc:creator>
    <dc:date>2011-08-09T12:52:42Z</dc:date>
    <item>
      <title>Date +1</title>
      <link>https://community.qlik.com/t5/QlikView/Date-1/m-p/259620#M498094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following issue, I have to increase the date by 1 when the time is &amp;gt; 23:59:59.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;01/08/2011 00:00:23 needs to be 02/08/2011 00:00:23&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following expression but this changes al the dates:&lt;/P&gt;&lt;P&gt;if(NotLiveTxStart &amp;gt; '23:59:59', NotLiveTxStart +1, NotLiveTxStart)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is missing here to get ONLY the dates higher than 23:59:59 to be increased?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; color: #0000ff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; color: #0000ff;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN style="color: #ff0000; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 12:35:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-1/m-p/259620#M498094</guid>
      <dc:creator />
      <dc:date>2011-08-09T12:35:22Z</dc:date>
    </item>
    <item>
      <title>Date +1</title>
      <link>https://community.qlik.com/t5/QlikView/Date-1/m-p/259621#M498095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; hei&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i didnt quite under stand what you want &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;may be you can explain better here are some dates tell me what the the date should be&lt;/P&gt;&lt;P&gt;01/08/2011 06:00:00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;01/08/2011 00:30:40&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;01/08/2011 23:59:59&lt;/P&gt;&lt;P&gt;01/08/2011 00:00:00&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 12:41:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-1/m-p/259621#M498095</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2011-08-09T12:41:49Z</dc:date>
    </item>
    <item>
      <title>Date +1</title>
      <link>https://community.qlik.com/t5/QlikView/Date-1/m-p/259622#M498096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; If the date is 01/08/2011 00:00:23 it should change to 02/08/2011 00:00:23&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the time stays the same but instead of august 1 it should be august 2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 12:45:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-1/m-p/259622#M498096</guid>
      <dc:creator />
      <dc:date>2011-08-09T12:45:51Z</dc:date>
    </item>
    <item>
      <title>Date +1</title>
      <link>https://community.qlik.com/t5/QlikView/Date-1/m-p/259623#M498097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; well actuly every date expet to the 30/12/1899 is bigger then 23:59:59&lt;/P&gt;&lt;P&gt;you are checking dates agianst hours it not the same number&lt;/P&gt;&lt;P&gt;and 00:00:23 isnt bigger then 23:59:59it smaller&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 12:52:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-1/m-p/259623#M498097</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2011-08-09T12:52:42Z</dc:date>
    </item>
    <item>
      <title>Date +1</title>
      <link>https://community.qlik.com/t5/QlikView/Date-1/m-p/259624#M498098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; But how do I solve this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 12:56:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-1/m-p/259624#M498098</guid>
      <dc:creator />
      <dc:date>2011-08-09T12:56:19Z</dc:date>
    </item>
    <item>
      <title>Date +1</title>
      <link>https://community.qlik.com/t5/QlikView/Date-1/m-p/259625#M498099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; hei &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you post an excel table with example of the resaults you want&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i dont realy understand what do you want to achive &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 13:01:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-1/m-p/259625#M498099</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2011-08-09T13:01:34Z</dc:date>
    </item>
    <item>
      <title>Date +1</title>
      <link>https://community.qlik.com/t5/QlikView/Date-1/m-p/259626#M498100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Let me first try to explain further.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's about television shows that are archived after they have been broadcasted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Say for example that a television show is scheduled for broadcast at August 1 23:59:00.&lt;/P&gt;&lt;P&gt;It actually starts at 00:00:20. That is technically August 2 early in the morning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data I now receive says August 1 00:00:20 which is earlier than the broadcast time of August 1 23:59:00.&lt;/P&gt;&lt;P&gt;To get accurate results in the report the date has to change to the next day when the actual start is after 23:59:59. Since it is in reality the next day.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 13:15:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-1/m-p/259626#M498100</guid>
      <dc:creator />
      <dc:date>2011-08-09T13:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: Date +1</title>
      <link>https://community.qlik.com/t5/QlikView/Date-1/m-p/259627#M498101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; ok good explantion &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but do you have in the record both the schedule time and the actual time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think your expression should be somthing like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(floor(NotLiveTxStart )=floor(ScheduleTime) and ( NotLiveTxStart -floor(NotLiveTxStart ))&amp;lt; ( ScheduleTime-floor(ScheduleTime)), NotLiveTxStart +1, NotLiveTxStart)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 13:18:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-1/m-p/259627#M498101</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2011-08-09T13:18:39Z</dc:date>
    </item>
    <item>
      <title>Date +1</title>
      <link>https://community.qlik.com/t5/QlikView/Date-1/m-p/259628#M498102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Yes and the schedule time should stay the same regardless of the actual time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 13:21:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-1/m-p/259628#M498102</guid>
      <dc:creator />
      <dc:date>2011-08-09T13:21:35Z</dc:date>
    </item>
    <item>
      <title>Date +1</title>
      <link>https://community.qlik.com/t5/QlikView/Date-1/m-p/259629#M498103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One suggestion would be, As I understood you just want to add a Day to your date and nothing else should change. Then you need to separate the date with format and where its Day add +1 and try around this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;some thing like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Mydate = 'DD/MM/YYYY', Day(Mydate, 'DD'+1), MyDate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mady&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 13:23:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-1/m-p/259629#M498103</guid>
      <dc:creator />
      <dc:date>2011-08-09T13:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: Date +1</title>
      <link>https://community.qlik.com/t5/QlikView/Date-1/m-p/259630#M498104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What you need to keep in mind is that the time is presented as the decimal part of a number, so if you are about to compare numbers you need to convert the values to be compared to similar values. The decimal value represents the fraction of 24 hours that have passed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if you are calculating seconds the decimal corresponds to ( (H * 60 * 60) + (M *60) * (S) ) / (24 * 60 * 60)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which for 23:59:59 will be (82800 + 3540 + 59) / 86400 = 86399 / 86400 = 0,99998843...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see there is no value larger than this on the clock, as 24:00:00 equals 00:00:00 and the decimal 0,0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Either way you setup your logic you only need to keep the decimal presentation in mind, and use the Time() and Time#() functions to format your data if required in the expressions. If you have a timestamp then the time functions will basically remove the integer part of the data so that you get the decimal time presentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure what your value NotLiveTxStart contains, but if it is a TimeStamp value then you will increase it's date part by a day when you make +1 since the date is the integer part of the numeric value in the TimeStamp. If this is your problem, the make sure that the field is loaded as a TimeStamp by applying TimeStamp() and/or TimeStamp#() in the script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 13:24:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-1/m-p/259630#M498104</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2011-08-09T13:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: Date +1</title>
      <link>https://community.qlik.com/t5/QlikView/Date-1/m-p/259631#M498105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; hei &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;attach is an example &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope its helps you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 13:32:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-1/m-p/259631#M498105</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2011-08-09T13:32:53Z</dc:date>
    </item>
    <item>
      <title>Date +1</title>
      <link>https://community.qlik.com/t5/QlikView/Date-1/m-p/259632#M498106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; After all the best solution was to do this on database level. Qlikview uses a view to get the data, so I used a CASE statement there to solve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2011 07:28:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-1/m-p/259632#M498106</guid>
      <dc:creator />
      <dc:date>2011-08-11T07:28:20Z</dc:date>
    </item>
  </channel>
</rss>

