<?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 Syntax for using a variable into Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Syntax-for-using-a-variable-into-Set-Analysis/m-p/375516#M492253</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;Please can somebody explain the difference between the following two statements:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to use a variable to calculate the previous months sales (based on MONTH Number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However the following expression is bringing back ALL MONTHS before the current month....&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({&amp;lt;CalendarMonthName =, CalendarMonthNumber = {'&amp;lt;= $(=v_Previous_Month)'}&amp;gt;} Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So after trial and error this expression works........ (brings back only the previous month)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;CalendarMonthName=, CalendarMonthNumber={'$(v_Previous_Month)'}&amp;gt;} Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody have an insight into the difference between the above expressions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Jul 2012 08:05:18 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-07-31T08:05:18Z</dc:date>
    <item>
      <title>Syntax for using a variable into Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-for-using-a-variable-into-Set-Analysis/m-p/375516#M492253</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;Please can somebody explain the difference between the following two statements:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to use a variable to calculate the previous months sales (based on MONTH Number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However the following expression is bringing back ALL MONTHS before the current month....&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({&amp;lt;CalendarMonthName =, CalendarMonthNumber = {'&amp;lt;= $(=v_Previous_Month)'}&amp;gt;} Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So after trial and error this expression works........ (brings back only the previous month)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;CalendarMonthName=, CalendarMonthNumber={'$(v_Previous_Month)'}&amp;gt;} Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody have an insight into the difference between the above expressions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2012 08:05:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-for-using-a-variable-into-Set-Analysis/m-p/375516#M492253</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-31T08:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for using a variable into Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-for-using-a-variable-into-Set-Analysis/m-p/375517#M492254</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;use this expression &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;CalendarMonthName=, CalendarMonthNumber={'$(=v_Previous_Month)'}&amp;gt;} Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Regards&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Perumal&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2012 08:11:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-for-using-a-variable-into-Set-Analysis/m-p/375517#M492254</guid>
      <dc:creator>perumal_41</dc:creator>
      <dc:date>2012-07-31T08:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for using a variable into Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-for-using-a-variable-into-Set-Analysis/m-p/375518#M492255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with the following expression:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;Sum({&amp;lt;CalendarMonthName=, CalendarMonthNumber={'$(=v_Previous_Month)'}&amp;gt;} Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;Or&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;STRONG style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;Sum({&amp;lt;CalendarMonthName=, CalendarMonthNumber={"=$(v_Previous_Month)"}&amp;gt;} Sales)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;STRONG style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2012 08:13:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-for-using-a-variable-into-Set-Analysis/m-p/375518#M492255</guid>
      <dc:creator />
      <dc:date>2012-07-31T08:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for using a variable into Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-for-using-a-variable-into-Set-Analysis/m-p/375519#M492256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the question was stated badly ... (or has been mis-read)....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found the solution but would like some explanation as to why the second expression works over the first one - which doesnt.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2012 09:05:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-for-using-a-variable-into-Set-Analysis/m-p/375519#M492256</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-31T09:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for using a variable into Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-for-using-a-variable-into-Set-Analysis/m-p/375520#M492257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the first expression you have &amp;lt;= before the "previous month number".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is like manually entering &amp;lt;= in the search box for a field - You will get all months less than or equal what you enter after the &amp;lt;=.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the second expression you do not have anything before the "previous month number".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is like manually entering just a month number in the search box for "month number" field - you will get that month.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2012 09:14:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-for-using-a-variable-into-Set-Analysis/m-p/375520#M492257</guid>
      <dc:creator>gandalfgray</dc:creator>
      <dc:date>2012-07-31T09:14:20Z</dc:date>
    </item>
  </channel>
</rss>

