<?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 Set Analysis Logic in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Logic/m-p/591239#M682408</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I am using the following expression. The results are correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum($(=Only(AreaThisYear)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I want to add some conditions and add it to the set analysis expression as below but not getting the desired results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=if($(vTodaysYear)=Right(vSelectStartDate,4) AND $(vTodaysYear)=Right(vSelectEndDate,4) ,&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum({&amp;lt;AreaMonthYear = {"&amp;gt;=$(vSelectStartDateMY)&amp;lt;=$(vSelectEndDateMY)"},&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;Year={'$(vTodaysFYear)'}&amp;gt;}&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ffff00;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; color: #3366ff;"&gt;$(=Only(AreaThisYear))&lt;/STRONG&gt;&lt;/SPAN&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Kindly suggest the solution. Can we use Sum along with only in the set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Alvin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Mar 2014 23:04:41 GMT</pubDate>
    <dc:creator>alvinford</dc:creator>
    <dc:date>2014-03-18T23:04:41Z</dc:date>
    <item>
      <title>Set Analysis Logic</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Logic/m-p/591239#M682408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I am using the following expression. The results are correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum($(=Only(AreaThisYear)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I want to add some conditions and add it to the set analysis expression as below but not getting the desired results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=if($(vTodaysYear)=Right(vSelectStartDate,4) AND $(vTodaysYear)=Right(vSelectEndDate,4) ,&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum({&amp;lt;AreaMonthYear = {"&amp;gt;=$(vSelectStartDateMY)&amp;lt;=$(vSelectEndDateMY)"},&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;Year={'$(vTodaysFYear)'}&amp;gt;}&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ffff00;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; color: #3366ff;"&gt;$(=Only(AreaThisYear))&lt;/STRONG&gt;&lt;/SPAN&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Kindly suggest the solution. Can we use Sum along with only in the set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Alvin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2014 23:04:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Logic/m-p/591239#M682408</guid>
      <dc:creator>alvinford</dc:creator>
      <dc:date>2014-03-18T23:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Logic</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Logic/m-p/591240#M682409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I´ve never seen such use of Only.&lt;/P&gt;&lt;P&gt;Why do you need this nested aggregation?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2014 23:21:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Logic/m-p/591240#M682409</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2014-03-18T23:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Logic</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Logic/m-p/591241#M682410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi AlvinFord,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I work with modification data in set expression, for instance:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count(&lt;/P&gt;&lt;P&gt;{&amp;lt;Year_Month={"&amp;gt;=$(=Num(If(Num(Right(Max(Year_Month),2))=2,(Max(Year)-1)&amp;amp;'12',If(Num(Right(Max(Year_Month),2))=1,(Max(Year)-1)&amp;amp;'11',(Max(Year_Month))-2))))&amp;lt;=$(=Num(Max(Year_Month)))"},Día={"&amp;lt;=$(=If(Day(Max(Fecha))&amp;gt;=25,31,Day(Max(Fecha))))"}&amp;gt;}&lt;/P&gt;&lt;P&gt;Distinct Emisiones.Certificado)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tell us if this work for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-JFlorian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2014 23:29:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Logic/m-p/591241#M682410</guid>
      <dc:creator>javier_florian</dc:creator>
      <dc:date>2014-03-18T23:29:25Z</dc:date>
    </item>
  </channel>
</rss>

