<?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: Less then equal to not working in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Less-then-equal-to-not-working-in-set-analysis/m-p/534505#M199679</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;If you created a field with Month() function. Then you can use &amp;lt;= operator but you should compare this with string.&lt;/P&gt;&lt;P&gt;May be something like this&lt;/P&gt;&lt;P&gt;Assuming that&lt;/P&gt;&lt;P&gt;vThisMonthText = Max(Month)&lt;/P&gt;&lt;P&gt;where Month field arrived from Month(DateField)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum({$&amp;lt;Year = {$(vThisYear)}, Month = {"&amp;lt;=$(=vThisMonthText)"}&amp;gt;} [Product Bookings Net])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Aug 2013 09:39:22 GMT</pubDate>
    <dc:creator>CELAMBARASAN</dc:creator>
    <dc:date>2013-08-27T09:39:22Z</dc:date>
    <item>
      <title>Less then equal to not working in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Less-then-equal-to-not-working-in-set-analysis/m-p/534502#M199676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Geniuses&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem in set related with less then equal to &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Year = {$(vThisYear)}, Month = {"&amp;lt;=$(=vThisMonthText)"}&amp;gt;} [Product Bookings Net])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above formula is not working when I am using less then equal to after month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;require ur assistance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shashnak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2013 09:29:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Less-then-equal-to-not-working-in-set-analysis/m-p/534502#M199676</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-27T09:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: Less then equal to not working in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Less-then-equal-to-not-working-in-set-analysis/m-p/534503#M199677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shashnak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since your Month is in text, and less than or equal to is a numeric operator, this will not work. You will need to create an additional field in the script where the Month is stored in numeric value, like the Year, and use this new numeric field in the variable. That will fix it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2013 09:34:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Less-then-equal-to-not-working-in-set-analysis/m-p/534503#M199677</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2013-08-27T09:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: Less then equal to not working in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Less-then-equal-to-not-working-in-set-analysis/m-p/534504#M199678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shashnak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you attach a sample document? You may need an = in front of vThisYear What about:&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;"&gt;sum({$&amp;lt;Year = {$(=vThisYear)}, Month = {"&amp;lt;=$(=vThisMonthText)"}&amp;gt;} [Product Bookings Net]) or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum({$&amp;lt;Year = {"$(=vThisYear)"}, Month = {"&amp;lt;=$(=vThisMonthText)"}&amp;gt;} [Product Bookings Net])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;Have you tried that?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;Andy&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2013 09:37:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Less-then-equal-to-not-working-in-set-analysis/m-p/534504#M199678</guid>
      <dc:creator />
      <dc:date>2013-08-27T09:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: Less then equal to not working in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Less-then-equal-to-not-working-in-set-analysis/m-p/534505#M199679</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;If you created a field with Month() function. Then you can use &amp;lt;= operator but you should compare this with string.&lt;/P&gt;&lt;P&gt;May be something like this&lt;/P&gt;&lt;P&gt;Assuming that&lt;/P&gt;&lt;P&gt;vThisMonthText = Max(Month)&lt;/P&gt;&lt;P&gt;where Month field arrived from Month(DateField)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum({$&amp;lt;Year = {$(vThisYear)}, Month = {"&amp;lt;=$(=vThisMonthText)"}&amp;gt;} [Product Bookings Net])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2013 09:39:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Less-then-equal-to-not-working-in-set-analysis/m-p/534505#M199679</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2013-08-27T09:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: Less then equal to not working in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Less-then-equal-to-not-working-in-set-analysis/m-p/534506#M199680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This wont work since vThisMonthText is not numeric: '2' &amp;gt; '10'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2013 09:39:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Less-then-equal-to-not-working-in-set-analysis/m-p/534506#M199680</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2013-08-27T09:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: Less then equal to not working in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Less-then-equal-to-not-working-in-set-analysis/m-p/534507#M199681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or you could use the Dual function right? Something like Dual(month, autonumber(month)) as month.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2013 09:40:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Less-then-equal-to-not-working-in-set-analysis/m-p/534507#M199681</guid>
      <dc:creator />
      <dc:date>2013-08-27T09:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: Less then equal to not working in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Less-then-equal-to-not-working-in-set-analysis/m-p/534508#M199682</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;Try like this&lt;/P&gt;&lt;P&gt;Use DateField, i think Month is in text format&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;"&gt; SUM({$&amp;lt;DateField = {"&amp;lt;=$(=MonthStart(max(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;DateField&lt;/SPAN&gt;)))"}&amp;gt;} &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; [Product Bookings Net]&lt;/SPAN&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;"&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;"&gt;Hope that helps&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2013 09:40:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Less-then-equal-to-not-working-in-set-analysis/m-p/534508#M199682</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2013-08-27T09:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: Less then equal to not working in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Less-then-equal-to-not-working-in-set-analysis/m-p/534509#M199683</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;try this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;sum({$&amp;lt;Year = {$(vThisYear)}, Month = {"&amp;lt;=$(vThisMonthText)"}&amp;gt;} [Product Bookings Net])&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kalyan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2013 10:28:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Less-then-equal-to-not-working-in-set-analysis/m-p/534509#M199683</guid>
      <dc:creator>kalyandg</dc:creator>
      <dc:date>2013-08-27T10:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Less then equal to not working in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Less-then-equal-to-not-working-in-set-analysis/m-p/534510#M199684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Geniuses,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find attached qvw which I am refering to calculate YTD MTD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this go the sheet set analysis static and go the pivot table at bottom u can see the formula there&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;he is comparing the text month with the number and getting desired result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in my case the variables are below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vThisMonth is number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vThisMonthText is text lik Aug sep&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Month dimension is Aug Sep&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now please enlighten me guys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2013 10:50:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Less-then-equal-to-not-working-in-set-analysis/m-p/534510#M199684</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-27T10:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Less then equal to not working in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Less-then-equal-to-not-working-in-set-analysis/m-p/534511#M199685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Shashank,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As already told by &lt;A href="https://community.qlik.com/qlik-users/70029"&gt;Celambarasan Adhimulam&lt;/A&gt;, you can use '&amp;lt;=' operator if the month values are created using&amp;nbsp; Month() function (you can notice the same in your referred application). So it could be a major point of consideration how you are creating this month field. Best way people here can help you, if you can upload your sample application.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2013 11:02:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Less-then-equal-to-not-working-in-set-analysis/m-p/534511#M199685</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-08-27T11:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: Less then equal to not working in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Less-then-equal-to-not-working-in-set-analysis/m-p/534512#M199686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If you are having date field you could make use of that.&lt;/P&gt;&lt;P&gt;like the one below for YTD previous year&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Year = , Month =, Date={"&amp;gt;=$(=YearStart(AddYears(vToday,-1)))&amp;lt;=$(=AddYears(vToday,-1))"}&amp;gt;} LineSalesAmount)&lt;/P&gt;&lt;P&gt;Probably current year would be&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Year = , Month =, Date={"&amp;gt;=$(=YearStart(vToday))&amp;lt;=$(=vToday)"}&amp;gt;} LineSalesAmount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2013 11:07:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Less-then-equal-to-not-working-in-set-analysis/m-p/534512#M199686</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2013-08-27T11:07:22Z</dc:date>
    </item>
  </channel>
</rss>

