<?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 Set Analysis Expression Issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-Issue/m-p/281784#M496996</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Check out what month(Only(Month)-1) is returning. It should return Sep for the expression to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that doesnt work try month(Max(Month)-1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Oct 2011 13:45:37 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-10-28T13:45:37Z</dc:date>
    <item>
      <title>Set Analysis Expression Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-Issue/m-p/281779#M496991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings my fellowmen and fair ladies!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am having problems with a set analysis expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({$&amp;lt;Month={$(=only(Month))}&amp;gt;}TotalOrders)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should give me the numbers of a previous month (if I select October, besides the actual result, it should return the results of the previous month for comparison).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone see where have I gone wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much in advance guys!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2011 12:13:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-Issue/m-p/281779#M496991</guid>
      <dc:creator />
      <dc:date>2011-10-28T12:13:43Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Expression Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-Issue/m-p/281780#M496992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your month is a serial number this would work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({$&amp;lt;Month={"$(=max(Month)-1)"}&amp;gt;} TotalOrders)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not, you can create the serial number for month as (num(Month)+12*(Year-2006) assuming 2006 is your least year)and name it as MonthID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your function only(month) is returned only when one month is selected, but max will give you most recent for the selection which I think is better (Ofcourse you can reason it as business needs). Secondly you need to have only(Month)-1 for previous month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2011 12:25:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-Issue/m-p/281780#M496992</guid>
      <dc:creator />
      <dc:date>2011-10-28T12:25:48Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Expression Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-Issue/m-p/281781#M496993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kiran, thank you very much for your reply!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it havent worked... follows the screenshot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="asehwhenaqfr.JPG" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/8167_asehwhenaqfr.JPG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think there's something wrong with the month... may be not considering something regarding it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you see were have I gone wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you SO much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2011 13:24:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-Issue/m-p/281781#M496993</guid>
      <dc:creator />
      <dc:date>2011-10-28T13:24:26Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Expression Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-Issue/m-p/281782#M496994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just a format issue. Try the below set analysis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{&amp;lt;Month={"$(=month(Only(Month)-1))"}&amp;gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2011 13:34:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-Issue/m-p/281782#M496994</guid>
      <dc:creator />
      <dc:date>2011-10-28T13:34:23Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Expression Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-Issue/m-p/281783#M496995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kiran, have tried but didn't work....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Only(Month)-1 part is returning a number (in the example, '9')... could it be the problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2011 13:41:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-Issue/m-p/281783#M496995</guid>
      <dc:creator />
      <dc:date>2011-10-28T13:41:56Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Expression Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-Issue/m-p/281784#M496996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Check out what month(Only(Month)-1) is returning. It should return Sep for the expression to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that doesnt work try month(Max(Month)-1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2011 13:45:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-Issue/m-p/281784#M496996</guid>
      <dc:creator />
      <dc:date>2011-10-28T13:45:37Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Expression Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-Issue/m-p/281785#M496997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please note that month(Date) takes a Date as parameter. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Month(9) will probably return January (of year 1900).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thiago, have you tried just removing the quotation marks (indicating a search string)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2011 13:58:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-Issue/m-p/281785#M496997</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-10-28T13:58:15Z</dc:date>
    </item>
  </channel>
</rss>

