<?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 need help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/need-help/m-p/794223#M1025932</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;I need current year sales and previous year sales with out making selections in year field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A table which consists of ename, sales, and year field(2001-2015)&lt;/P&gt;&lt;P&gt;Then I want to make a report with ename(dim)&lt;/P&gt;&lt;P&gt;//&lt;/P&gt;&lt;P&gt;M1:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ename,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sales,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; year&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;C:\Users\admin\Desktop\QV\qv_recent.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;M2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;LOAD Max(year) as curyear&lt;/P&gt;&lt;P&gt;Resident M1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET Vcurdate= Peek('curyear');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, it works fine for current year sales&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;year={$(Vcurdate)}&amp;gt;}sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if I take previous sales its not working&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;year={$(Vcurdate)-1}&amp;gt;}sales)&lt;/P&gt;&lt;P&gt;//&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know where am wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions will be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Mar 2015 16:25:42 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-03-12T16:25:42Z</dc:date>
    <item>
      <title>need help</title>
      <link>https://community.qlik.com/t5/QlikView/need-help/m-p/794223#M1025932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;I need current year sales and previous year sales with out making selections in year field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A table which consists of ename, sales, and year field(2001-2015)&lt;/P&gt;&lt;P&gt;Then I want to make a report with ename(dim)&lt;/P&gt;&lt;P&gt;//&lt;/P&gt;&lt;P&gt;M1:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ename,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sales,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; year&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;C:\Users\admin\Desktop\QV\qv_recent.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;M2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;LOAD Max(year) as curyear&lt;/P&gt;&lt;P&gt;Resident M1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET Vcurdate= Peek('curyear');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, it works fine for current year sales&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;year={$(Vcurdate)}&amp;gt;}sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if I take previous sales its not working&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;year={$(Vcurdate)-1}&amp;gt;}sales)&lt;/P&gt;&lt;P&gt;//&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know where am wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions will be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 16:25:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help/m-p/794223#M1025932</guid>
      <dc:creator />
      <dc:date>2015-03-12T16:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: need help</title>
      <link>https://community.qlik.com/t5/QlikView/need-help/m-p/794224#M1025933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try from front-exp using the below syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CY&lt;/P&gt;&lt;P&gt;=num(sum({$&amp;lt;Year = {$(=only(Year))}, Month = {"&amp;lt;=$(=max(Month))"}&amp;gt;} SalesAmount), '$#,##0;($#,##0)')&lt;/P&gt;&lt;P&gt;PY&lt;/P&gt;&lt;P&gt;=num(sum({$&amp;lt;Year = {$(=only(Year) - 1)}, Month = {"&amp;lt;=$(=max(Month))"}&amp;gt;}SalesAmount), '$#,##0;($#,##0)')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 16:51:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help/m-p/794224#M1025933</guid>
      <dc:creator>buzzy996</dc:creator>
      <dc:date>2015-03-12T16:51:38Z</dc:date>
    </item>
  </channel>
</rss>

