<?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 Syntax with greater than and less nested in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax-with-greater-than-and-less-nested/m-p/1517459#M457386</link>
    <description>&lt;P&gt;May be you need this&lt;/P&gt;&lt;PRE&gt;Count({&amp;lt;MonthYear = {"&amp;gt;=$(=Date(AddYears(&lt;FONT color="#FF0000"&gt;Max(&lt;/FONT&gt;MonthYear&lt;FONT color="#FF0000"&gt;)&lt;/FONT&gt;, -2), 'MMM YYYY'))"}&amp;gt;} ID)&lt;/PRE&gt;&lt;P&gt;UPDATE: fixed the function name to AddYears based on Omar's response below&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Dec 2018 14:35:06 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-12-06T14:35:06Z</dc:date>
    <item>
      <title>Set Analysis Syntax with greater than and less nested</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax-with-greater-than-and-less-nested/m-p/1517419#M457383</link>
      <description>&lt;P&gt;I am working on a set analysis expression and it seams I have the logic reversed. I would like my chart to show data only within the last two years.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where should the greater than or less than operators be used within the equation?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;count({&amp;lt;MonthYear ={"&amp;gt;=$(=Date(AddYear(MonthYear, -2), 'MMM YYYY'))"}&amp;gt;}ID)&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:02:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax-with-greater-than-and-less-nested/m-p/1517419#M457383</guid>
      <dc:creator>jonathanrichey</dc:creator>
      <dc:date>2024-11-16T05:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Syntax with greater than and less nested</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax-with-greater-than-and-less-nested/m-p/1517426#M457384</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/48169"&gt;@jonathanrichey&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;The ' aren't working. You could use this. You only need to make sure that the field Date has the same format as the default date settings at the beginning of your script.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;=count({&amp;lt;Date ={"&amp;gt;=$(=Date(AddYear(MonthYear, -2)))"}&amp;gt;}ID)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2018 14:05:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax-with-greater-than-and-less-nested/m-p/1517426#M457384</guid>
      <dc:creator>avkeep01</dc:creator>
      <dc:date>2018-12-06T14:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Syntax with greater than and less nested</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax-with-greater-than-and-less-nested/m-p/1517457#M457385</link>
      <description>&lt;P&gt;Thanks for the quick response&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/35203"&gt;@avkeep01&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My date is set to=&lt;/P&gt;&lt;P&gt;SET DateFormat='M/D/YYYY';&lt;/P&gt;&lt;P&gt;Currently I have MonthYear as my dimension. I am not sure what is calculating when using the updated expression (see MonthYear.png.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I change my dimension to Date vs MonthYear my data displays only November and December 2015 (Date.png).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2018 14:30:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax-with-greater-than-and-less-nested/m-p/1517457#M457385</guid>
      <dc:creator>jonathanrichey</dc:creator>
      <dc:date>2018-12-06T14:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Syntax with greater than and less nested</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax-with-greater-than-and-less-nested/m-p/1517459#M457386</link>
      <description>&lt;P&gt;May be you need this&lt;/P&gt;&lt;PRE&gt;Count({&amp;lt;MonthYear = {"&amp;gt;=$(=Date(AddYears(&lt;FONT color="#FF0000"&gt;Max(&lt;/FONT&gt;MonthYear&lt;FONT color="#FF0000"&gt;)&lt;/FONT&gt;, -2), 'MMM YYYY'))"}&amp;gt;} ID)&lt;/PRE&gt;&lt;P&gt;UPDATE: fixed the function name to AddYears based on Omar's response below&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2018 14:35:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax-with-greater-than-and-less-nested/m-p/1517459#M457386</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-06T14:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Syntax with greater than and less nested</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax-with-greater-than-and-less-nested/m-p/1517460#M457387</link>
      <description>Your logic is correct; but instead, use AddYearS not addyear</description>
      <pubDate>Thu, 06 Dec 2018 14:32:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax-with-greater-than-and-less-nested/m-p/1517460#M457387</guid>
      <dc:creator>OmarBenSalem</dc:creator>
      <dc:date>2018-12-06T14:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Syntax with greater than and less nested</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax-with-greater-than-and-less-nested/m-p/1517463#M457388</link>
      <description>&lt;P&gt;Or this&lt;/P&gt;&lt;PRE&gt;Count({&amp;lt;MonthYear = {"&amp;gt;=$(=Date(AddYears(Today(), -2), 'MMM YYYY'))"}&amp;gt;} ID)&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;UPDATE: fixed the function name to AddYears based on Omar's response below&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2018 14:35:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax-with-greater-than-and-less-nested/m-p/1517463#M457388</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-06T14:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Syntax with greater than and less nested</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax-with-greater-than-and-less-nested/m-p/1517465#M457389</link>
      <description>&lt;P&gt;Good catch &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2018 14:34:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax-with-greater-than-and-less-nested/m-p/1517465#M457389</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-06T14:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Syntax with greater than and less nested</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax-with-greater-than-and-less-nested/m-p/1517480#M457390</link>
      <description>&lt;P&gt;This works as well.Thanks for the responses!!&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2018 14:56:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Syntax-with-greater-than-and-less-nested/m-p/1517480#M457390</guid>
      <dc:creator>jonathanrichey</dc:creator>
      <dc:date>2018-12-06T14:56:23Z</dc:date>
    </item>
  </channel>
</rss>

