<?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: Qlikview Load Date Issues in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Qlikview-Load-Date-Issues/m-p/279309#M713022</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since you are running SQL that parts is executed on the SQL server, so a bit hard to give an exact answer but best guess is that the format is not recognised by the server. You could check what format is used on the database server and try to apply the same in your SQL syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding the today() call SQL in general uses &lt;EM&gt;GETDATE() for today's date, maybe that works for your server as well.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still I would try to load the entire tale to give better possibility to present data in your QlikView application. By not limiting the data initially you will get grounds to do more analysis, like comparing current month with previous months or even compare Year Over Year. This is really what the basic ideas behind QlikView is all about. Of course if you load massive amounts of data you might want to limit the load to keep the QVW small, but else than that I would recommend that you load without limitations.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 May 2011 09:41:56 GMT</pubDate>
    <dc:creator>ToniKautto</dc:creator>
    <dc:date>2011-05-06T09:41:56Z</dc:date>
    <item>
      <title>Qlikview Load Date Issues</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-Load-Date-Issues/m-p/279306#M713018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm wondering if someone could help me with an issue I've been having&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I have been asked to provide a report showing monthly transactional data which automatically updates to only show the current month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried using various today() type commands in the load script but none of them seem to work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to change the highlighted transaction date in the code below to the first of the current month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What command should I be using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;UNDERWRITERS:&lt;/P&gt;&lt;P&gt;LOAD RIGHT(LEFT("CLIENT_ACCOUNT_CODE_AND_NAME",7),6) &amp;amp; ' - ' &amp;amp; RIGHT("CLIENT_ACCOUNT_CODE_AND_NAME",LEN("CLIENT_ACCOUNT_CODE_AND_NAME")-7) AS "Client Account",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ASSURED_CODE" &amp;amp; ' - ' &amp;amp; "INSURED_NAME" AS "Insured Account",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "INSURER_CODE" &amp;amp; ' - ' &amp;amp; "INSURER_NAME" AS "Insurer Account",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(Left("CLIENT_ACCOUNT_CODE_AND_NAME",2)='CA','Agent','Direct') AS ClientType,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF("DEPARTMENT_CODE"='O' Or "DEPARTMENT_CODE"='T' Or "DEPARTMENT_CODE"='V','FR','IB') AS Business,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "DEPARTMENT_NAME",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "SETTLEMENT_BROKERAGE" AS SettBrokerage,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "SETTLEMENT_CURRENCY" AS CCY_Code,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "SETTLEMENT_GROSS_PREMIUM" AS SettGross,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "SETTLEMENT_NET_PREMIUM" AS SettNet,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "TRANSACTION_DATE",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "LEDGER_POSTED_DATE",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF("CLIENT_CPI_SCORE"&amp;lt;'6',"CLIENT_CPI_SCORE",Null()) AS ClientCPI,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF("ASSURED_CPI_SCORE"&amp;lt;'6',"ASSURED_CPI_SCORE",Null()) AS InsuredCPI,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF("UWTR_CPI_SCORE"&amp;lt;'6',"UWTR_CPI_SCORE",Null()) AS InsurerCPI,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "CLIENT_COUNTRY_OF_ORIGIN" AS ClientCountryCode,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ASSURED_COUNTRY_OF_ORIGIN" AS InsuredCountryCode,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "UWTR_COUNTRY_OF_ORIGIN" AS InsurerCountryCode,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "TRANSACTION_REFERENCE";&lt;/P&gt;&lt;P&gt;SQL SELECT "CLIENT_ACCOUNT_CODE_AND_NAME",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "DEPARTMENT_CODE",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "DEPARTMENT_NAME",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "INSURED_NAME",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "INSURER_CODE",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "INSURER_NAME",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "LEDGER_POSTED_DATE",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "SETTLEMENT_BROKERAGE",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "SETTLEMENT_CURRENCY",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "SETTLEMENT_GROSS_PREMIUM",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "SETTLEMENT_NET_PREMIUM",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "TRANSACTION_DATE",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "UNDERWRITER_ACCOUNT_CODE",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "CPI_SCORE",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "CLIENT_STATUS_CODE",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ASSURED_CODE",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "CLIENT_CPI_SCORE",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ASSURED_CPI_SCORE",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "UWTR_CPI_SCORE",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "CLIENT_COUNTRY_OF_ORIGIN",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ASSURED_COUNTRY_OF_ORIGIN",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "UWTR_COUNTRY_OF_ORIGIN",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "TRANSACTION_REFERENCE"&lt;/P&gt;&lt;P&gt;FROM UNDERWRITERS where ("TRANSACTION_DATE" &amp;gt;= '&lt;SPAN style="color: #ff0000;"&gt;01-05-2011&lt;/SPAN&gt;') AND ("CLIENT_CPI_SCORE"&amp;lt;'6' Or "ASSURED_CPI_SCORE"&amp;lt;'6' Or "UWTR_CPI_SCORE"&amp;lt;'6');&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnks in advance for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2011 09:05:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-Load-Date-Issues/m-p/279306#M713018</guid>
      <dc:creator />
      <dc:date>2011-05-06T09:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview Load Date Issues</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-Load-Date-Issues/m-p/279307#M713019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Usually you would load your data first, and then make the time limitation within the actual objects that show your data. This way you will create a solid data model and add dynamic possibility to alter the presentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please describe in more details exactly what problem you are experiencing, as I can not find any highlighted datat in the above entry.&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;SPAN&gt;Note that you can find more details on date and time funcitons in the Reference Manual (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://download.qlik.com"&gt;http://download.qlik.com&lt;/A&gt;&lt;SPAN&gt;) or in the Desktop Client help (Press F1)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2011 09:13:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-Load-Date-Issues/m-p/279307#M713019</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2011-05-06T09:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview Load Date Issues</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-Load-Date-Issues/m-p/279308#M713021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My apologies, the date at the bottom was highlighted in the edit screen but not on the posted massage&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the part of the code that was supposed to be highlighted&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;FROM UNDERWRITERS where ("TRANSACTION_DATE" &amp;gt;= '01-05-2011')&lt;/CODE&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to be able to replace the date with a variable showing the first of the current month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have gotten round the issue on some of our smaller reports by doing exactly as you suggest but due to the large amount of data in the database I want to be able to pull through the bare minimum number of lines to improve reload times&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2011 09:22:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-Load-Date-Issues/m-p/279308#M713021</guid>
      <dc:creator />
      <dc:date>2011-05-06T09:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview Load Date Issues</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-Load-Date-Issues/m-p/279309#M713022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since you are running SQL that parts is executed on the SQL server, so a bit hard to give an exact answer but best guess is that the format is not recognised by the server. You could check what format is used on the database server and try to apply the same in your SQL syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding the today() call SQL in general uses &lt;EM&gt;GETDATE() for today's date, maybe that works for your server as well.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still I would try to load the entire tale to give better possibility to present data in your QlikView application. By not limiting the data initially you will get grounds to do more analysis, like comparing current month with previous months or even compare Year Over Year. This is really what the basic ideas behind QlikView is all about. Of course if you load massive amounts of data you might want to limit the load to keep the QVW small, but else than that I would recommend that you load without limitations.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2011 09:41:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-Load-Date-Issues/m-p/279309#M713022</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2011-05-06T09:41:56Z</dc:date>
    </item>
    <item>
      <title>Qlikview Load Date Issues</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-Load-Date-Issues/m-p/279310#M713023</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;If i understand you, you want something like this :&lt;/P&gt;&lt;P&gt;first day of this month in QV script :&amp;nbsp; &lt;STRONG&gt;DATE(NOW(),'YYYY-MM-01')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;same in t-sql : &lt;STRONG&gt;cast(convert(varchar(8), getdate(), 21) + '01' as datetime)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;21 - it's time index, depend of what time format you use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if problems with format, there are many solutions, for example:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;year(&lt;CODE class="jive-code"&gt;TRANSACTION_DATE&lt;/CODE&gt;) = year(getdate()) and month(&lt;CODE class="jive-code"&gt;TRANSACTION_DATE&lt;/CODE&gt;) = month(getdate())&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry, but i use reload from csv files, and a don't know, what code you need - t-sql or qlikview, when do reload from server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2011 10:18:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-Load-Date-Issues/m-p/279310#M713023</guid>
      <dc:creator />
      <dc:date>2011-05-06T10:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview Load Date Issues</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-Load-Date-Issues/m-p/279311#M713024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I eventually found out how to do what I was proposing with the help of these forums and various colleagues. I needed to create a variable with the generated date before I could reference it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First I created the new variable at the beginning of the load script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;Let vStartDate = Date(AddYears(YearStart(Today(),0,5),-2),'YYYY-MM-DD');&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then put the following line of code into the WHERE part of my SQL statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;(&lt;CODE class="jive-code"&gt;"TRANSACTION_DATE"&lt;/CODE&gt;&amp;gt;='$(vStartDate)')&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to everyone that offered a solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2011 16:26:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-Load-Date-Issues/m-p/279311#M713024</guid>
      <dc:creator />
      <dc:date>2011-08-12T16:26:48Z</dc:date>
    </item>
  </channel>
</rss>

