<?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 Problem Using Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-Using-Set-Analysis/m-p/230942#M503948</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When i am using &amp;gt;= it is working but when i just want to calculate the value for only the last 6th month for which i have declared the variable " vLast6YearMonth" then it is not working . When using my expression in textbox i.e&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;MonthNameSort={'$(vLast6YearMonth)'},[Company Type]={'OWN'},[Sales Type]={'G ORDER'}&amp;gt;} Qty)&lt;/P&gt;&lt;P&gt;it is giving zero as output and format of my variable is DD/MM/YYYY eg 01/03/2010&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 May 2010 14:21:12 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-05-04T14:21:12Z</dc:date>
    <item>
      <title>Problem Using Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-Using-Set-Analysis/m-p/230940#M503946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;MonthNameSort={'$(vLast6YearMonth)'},[Company Type]={'OWN'},[Sales Type]={'G ORDER'}&amp;gt;} Qty)&lt;/P&gt;&lt;P&gt;i am using the above set analysis expression to calculate a value.But it is not working&lt;/P&gt;&lt;P&gt;My monthNameSort is the field which is made by using monthname function on the Date and give the values e.g Apr 2010 , Mar 2010 and vLast6YearMonth is the variable which is &lt;B&gt;addmonths&lt;/B&gt;(&lt;B&gt;MAX&lt;/B&gt;(&lt;B&gt;MonthNameSort&lt;/B&gt;),-6) so i want want to select a value for the previous 6th month.&lt;/P&gt;&lt;P&gt;and i use &lt;B&gt;Sum({$&amp;lt;MonthNameSort={"&amp;gt;=$(vLast6YearMonth)"},[Company Type]={'OWN'},[Sales Type]={'G ORDER'}&amp;gt;} (Qty)/12) then it waorks fine and gives the sum for last six months&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;but the above first expression is not working where i want to calculate the value for only the last 6th month.&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Can any one suggest what is wrong in it.&lt;/B&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Thanks in advance.&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Rahul&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 May 2010 14:01:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-Using-Set-Analysis/m-p/230940#M503946</guid>
      <dc:creator />
      <dc:date>2010-05-04T14:01:18Z</dc:date>
    </item>
    <item>
      <title>Problem Using Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-Using-Set-Analysis/m-p/230941#M503947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the format of the variable being spliced into the Set Analysis. If its not coming out as something QV understands as a numeric value then the &amp;gt;= will not work against it. Try outputing your expression to a Text Object to see how the code looks with the variable value in the expression.&lt;/P&gt;&lt;P&gt;Also you may want to post a small sample app, or describe "not working." Are you getting null, the wrong value, or an error message?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 May 2010 14:13:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-Using-Set-Analysis/m-p/230941#M503947</guid>
      <dc:creator />
      <dc:date>2010-05-04T14:13:55Z</dc:date>
    </item>
    <item>
      <title>Problem Using Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-Using-Set-Analysis/m-p/230942#M503948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When i am using &amp;gt;= it is working but when i just want to calculate the value for only the last 6th month for which i have declared the variable " vLast6YearMonth" then it is not working . When using my expression in textbox i.e&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;MonthNameSort={'$(vLast6YearMonth)'},[Company Type]={'OWN'},[Sales Type]={'G ORDER'}&amp;gt;} Qty)&lt;/P&gt;&lt;P&gt;it is giving zero as output and format of my variable is DD/MM/YYYY eg 01/03/2010&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 May 2010 14:21:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-Using-Set-Analysis/m-p/230942#M503948</guid>
      <dc:creator />
      <dc:date>2010-05-04T14:21:12Z</dc:date>
    </item>
    <item>
      <title>Problem Using Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-Using-Set-Analysis/m-p/230943#M503949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Have you verified that your first formula provides correct results?&lt;/P&gt;&lt;P&gt;Is your MonthNameSort a date value?&lt;/P&gt;&lt;P&gt;Encountered the problem that in SET expressions the date needs to be a string according to the specified date settings. Can your try to replace vLast6YearMonth with a string value e.g. 'Apr 2010' and verify that you get correct results?&lt;/P&gt;&lt;P&gt;Juerg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 May 2010 16:17:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-Using-Set-Analysis/m-p/230943#M503949</guid>
      <dc:creator />
      <dc:date>2010-05-04T16:17:16Z</dc:date>
    </item>
    <item>
      <title>Problem Using Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-Using-Set-Analysis/m-p/230944#M503950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ya i tried with Apr 2010 in place of variable but it was not giving the result but in my monthnamesort field i have values like Apr 2010, Mar 2010&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 May 2010 16:34:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-Using-Set-Analysis/m-p/230944#M503950</guid>
      <dc:creator />
      <dc:date>2010-05-04T16:34:54Z</dc:date>
    </item>
  </channel>
</rss>

