<?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: Hi Friends in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Hi-Friends/m-p/677576#M1084720</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Krish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; May I know the clear requirement. You want to see the output for past three years claims right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u want like above requirement please find the below expression it will helps you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;Year={'&amp;gt;=$(VPrevsecondYear)&amp;lt;=$(VMaxYear)'}&amp;gt;}CE_AMT_LC_1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variables:&lt;/P&gt;&lt;P&gt;VPrevsecondYear=max(Year(date(Datefield,'DD-MM-YYYY')))-2&lt;/P&gt;&lt;P&gt;VMaxYear=Max(Year(Date(Datefield,'DD-MM-YYYY')))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will helps you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jun 2014 07:35:18 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-30T07:35:18Z</dc:date>
    <item>
      <title>Hi Friends</title>
      <link>https://community.qlik.com/t5/QlikView/Hi-Friends/m-p/677575#M1084719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends !&lt;/P&gt;&lt;P&gt;i'm having a doubt in applying set analysis for calculating the claims paid of year wise.&lt;/P&gt;&lt;P&gt;Here is my expression&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;year={"&amp;gt;vCurrentYear-2&amp;gt;vCurrentYear-1&amp;lt;vCurrentYear"}&amp;gt;}CE_AMT_LC_1)&lt;/P&gt;&lt;P&gt;my output should be&lt;/P&gt;&lt;P&gt;year&amp;nbsp;&amp;nbsp; ClaimsPaid&lt;/P&gt;&lt;P&gt;2014&amp;nbsp;&amp;nbsp;&amp;nbsp; 324.23&lt;/P&gt;&lt;P&gt;2013&amp;nbsp;&amp;nbsp;&amp;nbsp; 452.12&lt;/P&gt;&lt;P&gt;2012&amp;nbsp;&amp;nbsp;&amp;nbsp; 325.23&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any mistake in my expression? please anyone help me out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Krsh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 07:28:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hi-Friends/m-p/677575#M1084719</guid>
      <dc:creator />
      <dc:date>2014-06-30T07:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: Hi Friends</title>
      <link>https://community.qlik.com/t5/QlikView/Hi-Friends/m-p/677576#M1084720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Krish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; May I know the clear requirement. You want to see the output for past three years claims right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u want like above requirement please find the below expression it will helps you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;Year={'&amp;gt;=$(VPrevsecondYear)&amp;lt;=$(VMaxYear)'}&amp;gt;}CE_AMT_LC_1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variables:&lt;/P&gt;&lt;P&gt;VPrevsecondYear=max(Year(date(Datefield,'DD-MM-YYYY')))-2&lt;/P&gt;&lt;P&gt;VMaxYear=Max(Year(Date(Datefield,'DD-MM-YYYY')))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will helps you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 07:35:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hi-Friends/m-p/677576#M1084720</guid>
      <dc:creator />
      <dc:date>2014-06-30T07:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: Hi Friends</title>
      <link>https://community.qlik.com/t5/QlikView/Hi-Friends/m-p/677577#M1084721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Try Sum({$&amp;lt;year={"&amp;gt;=$(vCurrentYear)-2&amp;lt;=$(vCurrentYear)"}&amp;gt;}CE_AMT_LC_1)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 07:35:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hi-Friends/m-p/677577#M1084721</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-06-30T07:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Hi Friends</title>
      <link>https://community.qlik.com/t5/QlikView/Hi-Friends/m-p/677578#M1084722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;SPAN lang=""&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sum&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;newyear&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'$(=max(newyear)-2)',&lt;/SPAN&gt;'$(=max(newyear)-1)',&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN lang=""&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;'$(=max(newyear))'&lt;SPAN style="font-size: 8pt;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;If you are using a variable then replace max(newyear) with it.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;HTH&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;ravi n.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 07:38:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hi-Friends/m-p/677578#M1084722</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-30T07:38:38Z</dc:date>
    </item>
  </channel>
</rss>

