<?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: Value Load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Value-Load/m-p/785449#M277899</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thnaks for reply&lt;/P&gt;&lt;P&gt;how to write Max(Year) in where condition for load&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Nov 2014 09:38:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-11-20T09:38:22Z</dc:date>
    <item>
      <title>Value Load</title>
      <link>https://community.qlik.com/t5/QlikView/Value-Load/m-p/785447#M277897</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;I need to load only the max and previous year sales values&lt;/P&gt;&lt;P&gt;i.e 2014 and 2013 year sales values and discard the other years sales.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;attached the sample app and excel sheet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 09:32:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-Load/m-p/785447#M277897</guid>
      <dc:creator />
      <dc:date>2014-11-20T09:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Value Load</title>
      <link>https://community.qlik.com/t5/QlikView/Value-Load/m-p/785448#M277898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Year, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;NEw.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1)&lt;/P&gt;&lt;P&gt;where Year&amp;gt;= Year(today())-1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ASHFAQ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 09:36:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-Load/m-p/785448#M277898</guid>
      <dc:creator>ashfaq_haseeb</dc:creator>
      <dc:date>2014-11-20T09:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Value Load</title>
      <link>https://community.qlik.com/t5/QlikView/Value-Load/m-p/785449#M277899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thnaks for reply&lt;/P&gt;&lt;P&gt;how to write Max(Year) in where condition for load&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 09:38:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-Load/m-p/785449#M277899</guid>
      <dc:creator />
      <dc:date>2014-11-20T09:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: Value Load</title>
      <link>https://community.qlik.com/t5/QlikView/Value-Load/m-p/785450#M277900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;You cann't take a Max year in where condition directly.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Try kind of like this&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;MaxYear:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD Max(Year) AS MaxYear&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;NEw.xlsx&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(ooxml, embedded labels, table is Sheet1)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LET vMaxYear = Peek('MaxYear');&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Drop Table MaxYear;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Data:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD Year,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;NEw.xlsx&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(ooxml, embedded labels, table is Sheet1)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;where Year&amp;gt;= ($(vMaxYear)-1);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 09:46:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-Load/m-p/785450#M277900</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2014-11-20T09:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: Value Load</title>
      <link>https://community.qlik.com/t5/QlikView/Value-Load/m-p/785451#M277901</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;You can try by storing max year in a variable and load directly.&lt;/P&gt;&lt;P&gt;LET vMaxYear = 2014;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD Year,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;NEw.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1)&lt;/P&gt;&lt;P&gt;where Year&amp;gt;= ($(vMaxYear)-1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ASHFAQ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 09:56:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-Load/m-p/785451#M277901</guid>
      <dc:creator>ashfaq_haseeb</dc:creator>
      <dc:date>2014-11-20T09:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Value Load</title>
      <link>https://community.qlik.com/t5/QlikView/Value-Load/m-p/785452#M277902</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;With the above code you will get for both years.&lt;/P&gt;&lt;P&gt;If you cant do that then you need to go with above solution proposed by &lt;SPAN class="j-post-author" style="font-size: 0.9em; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;A href="https://community.qlik.com/people/celambarasan"&gt;celambarasan&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ASHFAQ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 10:14:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-Load/m-p/785452#M277902</guid>
      <dc:creator>ashfaq_haseeb</dc:creator>
      <dc:date>2014-11-20T10:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Value Load</title>
      <link>https://community.qlik.com/t5/QlikView/Value-Load/m-p/785453#M277903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Load only the YEAR column to find the MAX. After getting the MAX load all the columns with condition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 10:29:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-Load/m-p/785453#M277903</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2014-11-20T10:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: Value Load</title>
      <link>https://community.qlik.com/t5/QlikView/Value-Load/m-p/785454#M277904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check This &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TemporarySalesTable:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;Year&lt;/P&gt;&lt;P&gt;,Sales&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[NEw.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MaxYear:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Max(Year) as MaxYear&lt;/P&gt;&lt;P&gt;Resident TemporarySalesTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vMaxYear = Peek('MaxYear',0,'MaxYear');&lt;/P&gt;&lt;P&gt;LET vPreviousYear = $(vMaxYear)-1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;SalesTable:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Year&lt;/P&gt;&lt;P&gt;,Sales&lt;/P&gt;&lt;P&gt;Resident TemporarySalesTable&lt;/P&gt;&lt;P&gt;Where Year &amp;gt;= $(vPreviousYear);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table TemporarySalesTable;&lt;/P&gt;&lt;P&gt;DROP Table MaxYear;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 10:40:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-Load/m-p/785454#M277904</guid>
      <dc:creator />
      <dc:date>2014-11-20T10:40:15Z</dc:date>
    </item>
  </channel>
</rss>

