<?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 -less than or equal to in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-less-than-or-equal-to/m-p/573945#M213771</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;You can arrive a date field in script like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;MakeDate(Left(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;MonthYear, 4&lt;/SPAN&gt;), Right(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;MonthYear&lt;/SPAN&gt;, 2)) AS &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;DateDimensionName&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;FROM DataSource;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Mar 2014 02:33:36 GMT</pubDate>
    <dc:creator>jagan</dc:creator>
    <dc:date>2014-03-14T02:33:36Z</dc:date>
    <item>
      <title>Set Analysis -less than or equal to</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-less-than-or-equal-to/m-p/573941#M213767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following in my set analysis expression and it works fine. However I am struggling with the syntax of this part of the expression when I want to change it to MonthYear being less than or equal to the right side of the equation. I don't know where to put the &amp;lt;=&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MonthYear={$(=max(MonthYear))}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 02:04:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-less-than-or-equal-to/m-p/573941#M213767</guid>
      <dc:creator>zagzebski</dc:creator>
      <dc:date>2014-03-14T02:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis -less than or equal to</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-less-than-or-equal-to/m-p/573942#M213768</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 have a date field then you can do 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;"&gt;=SUM({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;DateDimensionName&lt;/SPAN&gt;={'&amp;lt;=$(=Date(Max(DateDimensionName)))'}&amp;gt;} Measure)&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;Replace &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;DateDimensionName&lt;/SPAN&gt; with your date field and confirm you Date field values and Today() value are in the same format if not convert the Date format in above expression.&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;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;"&gt;Jagan.&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;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 02:09:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-less-than-or-equal-to/m-p/573942#M213768</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-03-14T02:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis -less than or equal to</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-less-than-or-equal-to/m-p/573943#M213769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However this is not a date field. It is a text field (201401, 201402, etc).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would this change the above?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 02:19:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-less-than-or-equal-to/m-p/573943#M213769</guid>
      <dc:creator>zagzebski</dc:creator>
      <dc:date>2014-03-14T02:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis -less than or equal to</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-less-than-or-equal-to/m-p/573944#M213770</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 to use Num# function as follows:&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;MonthYear={"&amp;lt;=$(=max(Num#(MonthYear)))"}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 02:32:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-less-than-or-equal-to/m-p/573944#M213770</guid>
      <dc:creator>bgerchikov</dc:creator>
      <dc:date>2014-03-14T02:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis -less than or equal to</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-less-than-or-equal-to/m-p/573945#M213771</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;You can arrive a date field in script like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;MakeDate(Left(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;MonthYear, 4&lt;/SPAN&gt;), Right(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;MonthYear&lt;/SPAN&gt;, 2)) AS &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;DateDimensionName&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;FROM DataSource;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 02:33:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-less-than-or-equal-to/m-p/573945#M213771</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-03-14T02:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis -less than or equal to</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-less-than-or-equal-to/m-p/573946#M213772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Boris. Unfortunately I inserted your expression into the set analysis and it doesn't return anything.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Mar 2014 17:34:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-less-than-or-equal-to/m-p/573946#M213772</guid>
      <dc:creator>zagzebski</dc:creator>
      <dc:date>2014-03-16T17:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis -less than or equal to</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-less-than-or-equal-to/m-p/573947#M213773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you attach a sample app to review? In my test it works perfect.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2014 03:49:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-less-than-or-equal-to/m-p/573947#M213773</guid>
      <dc:creator>bgerchikov</dc:creator>
      <dc:date>2014-03-17T03:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis -less than or equal to</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-less-than-or-equal-to/m-p/573948#M213774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Zagzebsi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;well you have to make text to Num as Jagan had already suggested how to do that.&lt;/P&gt;&lt;P&gt;if you need to put '&amp;lt;=' it should be numbers as machine can give you greater or lesser in numbers not in test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2014 04:55:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-less-than-or-equal-to/m-p/573948#M213774</guid>
      <dc:creator>qlikpahadi07</dc:creator>
      <dc:date>2014-03-17T04:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis -less than or equal to</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-less-than-or-equal-to/m-p/573949#M213775</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;Hi Zagzebski,&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; This may help you.&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;MonthYear&lt;/SPAN&gt;=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;{&amp;lt;&lt;/SPAN&gt;{'&amp;lt;=$Max((&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;MonthYear&lt;/SPAN&gt;))'}&amp;gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2014 05:12:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-less-than-or-equal-to/m-p/573949#M213775</guid>
      <dc:creator />
      <dc:date>2014-03-17T05:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis -less than or equal to</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-less-than-or-equal-to/m-p/573950#M213776</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;/P&gt;&lt;P&gt;=Sum({&amp;lt;MonthYear={"&amp;lt;=$(=max(MonthYear))"}&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Measure&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR You can do convert your MonthYear Field from text to date&lt;/P&gt;&lt;P&gt;using Date(Date#(MonthYear),'YYYYMM'),'YYYYMM')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then use&lt;/P&gt;&lt;P&gt;expression given by &lt;A href="https://community.qlik.com/qlik-users/23109"&gt;Jagan Mohan&lt;/A&gt; in your set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2014 06:02:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-less-than-or-equal-to/m-p/573950#M213776</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-03-17T06:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis -less than or equal to</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-less-than-or-equal-to/m-p/573951#M213777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Zagzebski&lt;/P&gt;&lt;P&gt;Try like these&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;MonthYear&lt;/SPAN&gt;= {"&amp;lt;=$(=Max(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;MonthYear&lt;/SPAN&gt;))"}&lt;/P&gt;&lt;P&gt;Hope you get the solution&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;make your dimension as Date(MonthYear)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;and use Date =&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;{"&amp;lt;=$(=Max(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;))"} in these format&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2014 06:55:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-less-than-or-equal-to/m-p/573951#M213777</guid>
      <dc:creator>sunilkumarqv</dc:creator>
      <dc:date>2014-03-17T06:55:17Z</dc:date>
    </item>
  </channel>
</rss>

