<?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: Load Dates Greater Than Date. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-Dates-Greater-Than-Date/m-p/929224#M977121</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;okay getting further, load now looks like the following with no error but unfortunately no data selected, i have set the greater than date by an variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vEndDate = Timestamp(Today()-7);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODBC CONNECT32 TO [PSA Live] (XUserId is LZGbBSNOGDIA, XPassword is OZVPSZRMGLaA);&lt;/P&gt;&lt;P&gt;//-------- Start Multiple Select Statements ------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[PSA]:&lt;/P&gt;&lt;P&gt;LOAD processtype,&lt;/P&gt;&lt;P&gt;status,&lt;/P&gt;&lt;P&gt;tech4,&lt;/P&gt;&lt;P&gt;tech6,&lt;/P&gt;&lt;P&gt;TEXT((tech6) &amp;amp; '-' &amp;amp; (tech4))AS [LInk%],&lt;/P&gt;&lt;P&gt;Description,&lt;/P&gt;&lt;P&gt;ataskenddt,&lt;/P&gt;&lt;P&gt;ataskendyw,&lt;/P&gt;&lt;P&gt;ordernumber;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM "Live PSA".dbo.Job&lt;/P&gt;&lt;P&gt;where ("processtype" like 'PRT')AND ("status" IN ('C')) and ("ataskenddt" &amp;gt;convert(datetime, '$(vEndDate)', 131));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data table&lt;/P&gt;&lt;P&gt;&lt;IMG alt="data table.png" class="jive-image image-1" src="/legacyfs/online/97293_data table.png" style="height: 130px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Aug 2015 15:18:03 GMT</pubDate>
    <dc:creator>bnelson111</dc:creator>
    <dc:date>2015-08-28T15:18:03Z</dc:date>
    <item>
      <title>Load Dates Greater Than Date.</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Dates-Greater-Than-Date/m-p/929221#M977118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Trying to load only dates greater than a date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently getting the following error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL##f - SqlState: 22008, ErrorCode: 242, ErrorMsg: [Microsoft][ODBC SQL Server Driver][SQL Server]The conversion of a varchar data type to a datetime data type resulted in an out-of-range value.&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM "Live PSA".dbo.Job&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;where ("processtype" like 'PRT')AND ("status" IN ('C'))and("ataskenddt" &amp;gt; '27/03/2014 05:53:00') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD processtype,&lt;/P&gt;&lt;P&gt;status,&lt;/P&gt;&lt;P&gt;tech4,&lt;/P&gt;&lt;P&gt;tech6,&lt;/P&gt;&lt;P&gt;TEXT((tech6) &amp;amp; '-' &amp;amp; (tech4))AS [LInk%],&lt;/P&gt;&lt;P&gt;Description,&lt;/P&gt;&lt;P&gt;ataskenddt,&lt;/P&gt;&lt;P&gt;ataskendyw,&lt;/P&gt;&lt;P&gt;ordernumber;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM "Live PSA".dbo.Job&lt;/P&gt;&lt;P&gt;where ("processtype" like 'PRT')AND ("status" IN ('C'))and("ataskenddt" &amp;gt; '27/03/2014 05:53:00') ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The format of &lt;SPAN style="font-size: 13.3333330154419px;"&gt;ataskenddt is 27/03/2014 05:53:00 so in this case i only want the dates greater than 27/03/2014 05:53:00.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2015 13:32:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Dates-Greater-Than-Date/m-p/929221#M977118</guid>
      <dc:creator>bnelson111</dc:creator>
      <dc:date>2015-08-28T13:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: Load Dates Greater Than Date.</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Dates-Greater-Than-Date/m-p/929222#M977119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt;&amp;gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;The format of &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ataskenddt is 27/03/2014 05:53:00 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you sure? The error clearly says that it does not recognise the date string you supplied. Check the canonical date format on the server (like dd-mm-yyyy hh:mm:ss) or use the SQL Convert() function with the correct formt code to convert the string to a date value. Check SQL BOL for the correct conversion code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2015 14:06:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Dates-Greater-Than-Date/m-p/929222#M977119</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-08-28T14:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Load Dates Greater Than Date.</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Dates-Greater-Than-Date/m-p/929223#M977120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In SQL Server, try this in place of just the datetime string:convert(datetime, '27/03/2014 05:53:00', 131)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2015 14:08:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Dates-Greater-Than-Date/m-p/929223#M977120</guid>
      <dc:creator>greg-anderson</dc:creator>
      <dc:date>2015-08-28T14:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: Load Dates Greater Than Date.</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Dates-Greater-Than-Date/m-p/929224#M977121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;okay getting further, load now looks like the following with no error but unfortunately no data selected, i have set the greater than date by an variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vEndDate = Timestamp(Today()-7);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODBC CONNECT32 TO [PSA Live] (XUserId is LZGbBSNOGDIA, XPassword is OZVPSZRMGLaA);&lt;/P&gt;&lt;P&gt;//-------- Start Multiple Select Statements ------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[PSA]:&lt;/P&gt;&lt;P&gt;LOAD processtype,&lt;/P&gt;&lt;P&gt;status,&lt;/P&gt;&lt;P&gt;tech4,&lt;/P&gt;&lt;P&gt;tech6,&lt;/P&gt;&lt;P&gt;TEXT((tech6) &amp;amp; '-' &amp;amp; (tech4))AS [LInk%],&lt;/P&gt;&lt;P&gt;Description,&lt;/P&gt;&lt;P&gt;ataskenddt,&lt;/P&gt;&lt;P&gt;ataskendyw,&lt;/P&gt;&lt;P&gt;ordernumber;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM "Live PSA".dbo.Job&lt;/P&gt;&lt;P&gt;where ("processtype" like 'PRT')AND ("status" IN ('C')) and ("ataskenddt" &amp;gt;convert(datetime, '$(vEndDate)', 131));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data table&lt;/P&gt;&lt;P&gt;&lt;IMG alt="data table.png" class="jive-image image-1" src="/legacyfs/online/97293_data table.png" style="height: 130px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2015 15:18:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Dates-Greater-Than-Date/m-p/929224#M977121</guid>
      <dc:creator>bnelson111</dc:creator>
      <dc:date>2015-08-28T15:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: Load Dates Greater Than Date.</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Dates-Greater-Than-Date/m-p/929225#M977122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Brett.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Two things:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Don't use 'timestamp' in SQL Server.&amp;nbsp; It's buggy.&amp;nbsp; Use datetime instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) If you declare the variable as a datetime, then you won't need the convert function.&amp;nbsp; It is used only to convert from my data type to another (e.g., varchar to datetime).&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oh, three things:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) If 'ataskenndt' is a string representing a datetime, then you'll need to use the CONVERT function on it&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2015 15:27:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Dates-Greater-Than-Date/m-p/929225#M977122</guid>
      <dc:creator>greg-anderson</dc:creator>
      <dc:date>2015-08-28T15:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: Load Dates Greater Than Date.</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Dates-Greater-Than-Date/m-p/929226#M977123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brett,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you must change the format of filter date to 'DD-MMM-YYYY HH:MM:SS'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2015 16:07:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Dates-Greater-Than-Date/m-p/929226#M977123</guid>
      <dc:creator>kiranmanoharrode</dc:creator>
      <dc:date>2015-08-28T16:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: Load Dates Greater Than Date.</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Dates-Greater-Than-Date/m-p/929227#M977124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using the date format 'YYYY-MM-DD hh:mm:ss' for your date variable, as this date format does not have any inconsistencies on whether day or month is in the correct order, and always converts correctly in MSSQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vEndDate = text(date((Today()-7), 'YYYY-MM-DD hh:mm:ss'));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODBC CONNECT32 TO [PSA Live] (XUserId is LZGbBSNOGDIA, XPassword is OZVPSZRMGLaA);&lt;/P&gt;&lt;P&gt;//-------- Start Multiple Select Statements ------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[PSA]:&lt;/P&gt;&lt;P&gt;LOAD processtype,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; status,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tech4,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tech6,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TEXT((tech6) &amp;amp; '-' &amp;amp; (tech4)) AS [LInk%],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Description,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ataskenddt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ataskendyw,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ordernumber;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM "Live PSA".dbo.Job&lt;/P&gt;&lt;P&gt;where ( "processtype" like 'PRT' )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND ( "status" IN ('C') )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and ( "ataskenddt" &amp;gt; '$(vEndDate)' );&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2015 16:17:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Dates-Greater-Than-Date/m-p/929227#M977124</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2015-08-28T16:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: Load Dates Greater Than Date.</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Dates-Greater-Than-Date/m-p/929228#M977125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks everyone, sorry for late reply been working flat out. Thanks to everyone &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2015 20:32:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Dates-Greater-Than-Date/m-p/929228#M977125</guid>
      <dc:creator>bnelson111</dc:creator>
      <dc:date>2015-08-28T20:32:58Z</dc:date>
    </item>
  </channel>
</rss>

