<?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: How to use &amp;gt;= and &amp;lt;= in Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-use-gt-and-lt-in-Set-Analysis/m-p/281127#M1191377</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;Just try the below expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;DATE = {'&amp;gt;=$(vCurMonthStartDate)'}, DATE ={'&amp;lt;=$(vCurMonthEndDate)'},TRANS_DATE ={'&amp;gt;=$(vCurMonthStartDate)'}, TRANS_DATE = {'&amp;lt;=$(vCurMonthEndDate)'}, CATEGORY={'MARKETING'}&amp;gt;}SALES);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Aug 2011 07:08:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-08-18T07:08:46Z</dc:date>
    <item>
      <title>How to use &gt;= and &lt;= in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-gt-and-lt-in-Set-Analysis/m-p/281124#M1191374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May I know how can make the below script with the help of Set Analysis. I tried but not sure how use &amp;gt;= and &amp;lt;= in Set Analysis. It is taking up only if I use = but it is not taking up when I use &amp;gt;= and &amp;lt;=. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone please do the required changes in the below script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;Sum(if(DATE &amp;gt;= vCurMonthStartDate &lt;/P&gt;&lt;P&gt; AND DATE &amp;lt;= vCurMonthEndDate &lt;/P&gt;&lt;P&gt; AND TRANS_DATE &amp;gt;= vCurMonthStartDate &lt;/P&gt;&lt;P&gt; AND TRANS_DATE &amp;lt;= vCurMonthEndDate &lt;/P&gt;&lt;P&gt; AND CATEGORY='MARKETING',SALES))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attitude&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 05:56:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-gt-and-lt-in-Set-Analysis/m-p/281124#M1191374</guid>
      <dc:creator />
      <dc:date>2011-08-18T05:56:33Z</dc:date>
    </item>
    <item>
      <title>How to use &gt;= and &lt;= in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-gt-and-lt-in-Set-Analysis/m-p/281125#M1191375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;DATE=&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;{"&amp;gt;=$(&lt;/SPAN&gt;vCurMonthStartDate)&amp;lt;=$(vCurMonthEndDate)"} ,TRANS_DATE &lt;/SPAN&gt;=&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;{"&amp;gt;=$(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;vCurMonthStartDate)&amp;lt;=$(vCurMonthEndDate)"} ,CATEGORY={'MARKETING'}&lt;/SPAN&gt;&amp;gt;}SALES)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 06:09:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-gt-and-lt-in-Set-Analysis/m-p/281125#M1191375</guid>
      <dc:creator>rahulgupta</dc:creator>
      <dc:date>2011-08-18T06:09:09Z</dc:date>
    </item>
    <item>
      <title>How to use &gt;= and &lt;= in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-gt-and-lt-in-Set-Analysis/m-p/281126#M1191376</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;Or try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum ({&amp;lt; field = {"&amp;gt;value"} , field={"&amp;lt;value"},....&amp;gt;} sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 06:52:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-gt-and-lt-in-Set-Analysis/m-p/281126#M1191376</guid>
      <dc:creator />
      <dc:date>2011-08-18T06:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to use &gt;= and &lt;= in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-gt-and-lt-in-Set-Analysis/m-p/281127#M1191377</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;Just try the below expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;DATE = {'&amp;gt;=$(vCurMonthStartDate)'}, DATE ={'&amp;lt;=$(vCurMonthEndDate)'},TRANS_DATE ={'&amp;gt;=$(vCurMonthStartDate)'}, TRANS_DATE = {'&amp;lt;=$(vCurMonthEndDate)'}, CATEGORY={'MARKETING'}&amp;gt;}SALES);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 07:08:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-gt-and-lt-in-Set-Analysis/m-p/281127#M1191377</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-18T07:08:46Z</dc:date>
    </item>
    <item>
      <title>How to use &gt;= and &lt;= in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-gt-and-lt-in-Set-Analysis/m-p/281128#M1191378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for replying so late. I tried with the solution that has been provided to me but unfortunately none of them are working. It is not giving the same result what "IF Statement" has provided.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the Set Analysis looks to be fine only but not sure why it is not giving the expected result. Is it becuase that we have missed out "AND" in the set analysis?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attitude&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2011 05:41:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-gt-and-lt-in-Set-Analysis/m-p/281128#M1191378</guid>
      <dc:creator />
      <dc:date>2011-08-24T05:41:56Z</dc:date>
    </item>
    <item>
      <title>How to use &gt;= and &lt;= in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-gt-and-lt-in-Set-Analysis/m-p/281129#M1191379</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;&amp;nbsp;&amp;nbsp;&amp;nbsp; Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;SUM({&amp;lt;DATE=&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;{"&amp;gt;=$(#&lt;/SPAN&gt;vCurMonthStartDate)&amp;lt;=$(#vCurMonthEndDate)"} ,TRANS_DATE &lt;/SPAN&gt;=&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;{"&amp;gt;=$(#&lt;/SPAN&gt;vCurMonthStartDate)&amp;lt;=$(#vCurMonthEndDate)"} ,CATEGORY={'MARKETING'}&lt;/SPAN&gt;&amp;gt;}SALES)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2011 05:54:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-gt-and-lt-in-Set-Analysis/m-p/281129#M1191379</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-08-24T05:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to use &gt;= and &lt;= in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-gt-and-lt-in-Set-Analysis/m-p/281130#M1191380</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 don't need to use the 'AND' within the set analysis. Use it like Kaushik Solanki posted. I also have such statements in usage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;MonthYear={'&amp;gt;=$(vMY_FromDate) &amp;lt;=$(vMY_ToDate)'}&amp;gt;} Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will sum up the all amount values from vMY_FromDate till vMY_ToDate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vMY_FromDate and vMY_ToDate are variables which you have to define and set in dependency to your calendar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Claudio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2011 06:22:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-gt-and-lt-in-Set-Analysis/m-p/281130#M1191380</guid>
      <dc:creator />
      <dc:date>2011-08-24T06:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to use &gt;= and &lt;= in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-gt-and-lt-in-Set-Analysis/m-p/281131#M1191381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Liv$Good&lt;/P&gt;&lt;P&gt;On Aug 23, 2011 11:22 PM, "scacchic" &amp;lt;qliktech@sgaur.hosted.jivesoftware.com&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2011 06:51:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-gt-and-lt-in-Set-Analysis/m-p/281131#M1191381</guid>
      <dc:creator />
      <dc:date>2011-08-24T06:51:46Z</dc:date>
    </item>
  </channel>
</rss>

