<?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: Set Analysis Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/997613#M970447</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Veena&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can have two additional date columns by converting the year(which is string here) as mentioned below...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2013-2014&lt;/P&gt;&lt;P&gt;left(fyear,4)... which gives you 2013&lt;/P&gt;&lt;P&gt;right(fyear,4).. will gives you 2014&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use these expresssions, in your set analysis to get the desired analysis...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need more help, send me your sample qvw, I will provide the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sreeni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Sep 2015 07:53:12 GMT</pubDate>
    <dc:creator>SreeniJD</dc:creator>
    <dc:date>2015-09-22T07:53:12Z</dc:date>
    <item>
      <title>Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/997610#M970444</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;Having the year format as in the attachment , how to fetch previous year data using the same year field in set analysis of an expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 07:41:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/997610#M970444</guid>
      <dc:creator />
      <dc:date>2015-09-22T07:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/997611#M970445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi veena&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum({&amp;lt;DATE={"$(=Date(AddYears(DATE,-1)))"}&amp;gt;}AMOUNT)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 07:44:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/997611#M970445</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-22T07:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/997612#M970446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you mean you need to select 2010 from your year field '2010-2011'? Something like that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{&amp;lt;Year={$(=subfield('2010-2011','-',1)}&amp;gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 07:49:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/997612#M970446</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2015-09-22T07:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/997613#M970447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Veena&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can have two additional date columns by converting the year(which is string here) as mentioned below...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2013-2014&lt;/P&gt;&lt;P&gt;left(fyear,4)... which gives you 2013&lt;/P&gt;&lt;P&gt;right(fyear,4).. will gives you 2014&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use these expresssions, in your set analysis to get the desired analysis...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need more help, send me your sample qvw, I will provide the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sreeni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 07:53:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/997613#M970447</guid>
      <dc:creator>SreeniJD</dc:creator>
      <dc:date>2015-09-22T07:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/997614#M970448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you have calculated the &lt;STRONG&gt;YearName&lt;/STRONG&gt; as &lt;STRONG&gt;yearname(Date,0,4)&lt;/STRONG&gt;, you can use below set expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(DISTINCT {&amp;lt;&lt;STRONG&gt;YearName&lt;/STRONG&gt;={"$(=yearname(max(YearName)-1,0,4))"}&amp;gt;}Value)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 08:10:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/997614#M970448</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2015-09-22T08:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/997615#M970449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Veena,&lt;/P&gt;&lt;P&gt;use like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum({&amp;lt;YEAR_FIELD_NAME={'$(=Left(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;YEAR_&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;FIELD_NAME&lt;/SPAN&gt;,4))'}&amp;gt;} SALE_AMOUNT)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Gennaro&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 08:11:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/997615#M970449</guid>
      <dc:creator />
      <dc:date>2015-09-22T08:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/997616#M970450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got it resolved. Thanks everyone! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 10:02:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/997616#M970450</guid>
      <dc:creator />
      <dc:date>2015-09-22T10:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/997617#M970451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please close the thread by marking appropriate replies answered,helpful. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 10:39:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/997617#M970451</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2015-09-22T10:39:24Z</dc:date>
    </item>
  </channel>
</rss>

