<?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 query: Year in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-query-Year/m-p/1069651#M944880</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have now included this in the script but need to update the Text Object Properties. My equation is rather long and I know its not showing the correct result. Is there a way to shorten this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Num (Count(Distinct If([Company.Car Order]='BMW' AND [Status]='Completed' AND InYear([Completed Date], Today(), 0) or InYear([Completed Date], Today(), -1), [Id], )), '###,###')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Jan 2016 09:03:51 GMT</pubDate>
    <dc:creator>knightwriter</dc:creator>
    <dc:date>2016-01-12T09:03:51Z</dc:date>
    <item>
      <title>Load query: Year</title>
      <link>https://community.qlik.com/t5/QlikView/Load-query-Year/m-p/1069645#M944874</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;My dashboard showed only one years worth of data in 2015. I now want it to show 2016 and the same 2015 data. I have created the selection filters but when I reload the script only a small part of this data shows for both years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the below script and seek any guidance to fix this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * FROM \\sample.qvd (qvd)&lt;/P&gt;&lt;P&gt;Where (InYear([Planned Date], Today(), 0) or InYear([Planned Date], AddYears(Today(), 1), 0))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 08:15:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-query-Year/m-p/1069645#M944874</guid>
      <dc:creator>knightwriter</dc:creator>
      <dc:date>2016-01-12T08:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Load query: Year</title>
      <link>https://community.qlik.com/t5/QlikView/Load-query-Year/m-p/1069646#M944875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * FROM &lt;/P&gt;&lt;P&gt;sample.qvd (qvd)&lt;/P&gt;&lt;P&gt;Where Year([Planned Date])=Year(today()) or Year([Planned Date]) =Year(Today())-1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 08:24:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-query-Year/m-p/1069646#M944875</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-01-12T08:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: Load query: Year</title>
      <link>https://community.qlik.com/t5/QlikView/Load-query-Year/m-p/1069647#M944876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;your where clause refers to 2016 (first part) and 2017 (second part with addyears(today(),1))&lt;/P&gt;&lt;P&gt;if you want your plkanned data for 2015 and 2016 you Need to modify the second part to&lt;/P&gt;&lt;P&gt;or InYear([Planned Date], AddYears(Today(), -1), 0))&lt;/P&gt;&lt;P&gt;do you Show only planned data or do you want to include actual data as well?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 08:26:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-query-Year/m-p/1069647#M944876</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-12T08:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: Load query: Year</title>
      <link>https://community.qlik.com/t5/QlikView/Load-query-Year/m-p/1069648#M944877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD * FROM \\sample.qvd (qvd)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Where (InYear([Planned Date], Today(), 0) or InYear([Planned Date], AddYears(Today(), &lt;STRONG&gt;-1&lt;/STRONG&gt;), 0))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 08:26:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-query-Year/m-p/1069648#M944877</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-12T08:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: Load query: Year</title>
      <link>https://community.qlik.com/t5/QlikView/Load-query-Year/m-p/1069649#M944878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD * FROM \\sample.qvd (qvd)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;WHERE Year([Planned Date]) &amp;gt;= (Year(Today()) - 1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Best,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 08:28:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-query-Year/m-p/1069649#M944878</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-01-12T08:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: Load query: Year</title>
      <link>https://community.qlik.com/t5/QlikView/Load-query-Year/m-p/1069650#M944879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Apologies, typo on my behalf - Yes, I use AddYears(Today(), &lt;STRONG&gt;-1&lt;/STRONG&gt;), 0)).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe I have to change all the text object properties too?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently I have: &lt;/P&gt;&lt;P&gt;Count(Distinct If([Status]='Completed' AND InYear([Date], Today(), 0), [Id], ))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I need to include the "Or" function to include my 2015 data? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 08:33:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-query-Year/m-p/1069650#M944879</guid>
      <dc:creator>knightwriter</dc:creator>
      <dc:date>2016-01-12T08:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: Load query: Year</title>
      <link>https://community.qlik.com/t5/QlikView/Load-query-Year/m-p/1069651#M944880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have now included this in the script but need to update the Text Object Properties. My equation is rather long and I know its not showing the correct result. Is there a way to shorten this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Num (Count(Distinct If([Company.Car Order]='BMW' AND [Status]='Completed' AND InYear([Completed Date], Today(), 0) or InYear([Completed Date], Today(), -1), [Id], )), '###,###')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 09:03:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-query-Year/m-p/1069651#M944880</guid>
      <dc:creator>knightwriter</dc:creator>
      <dc:date>2016-01-12T09:03:51Z</dc:date>
    </item>
  </channel>
</rss>

