<?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 Query in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Query/m-p/194668#M55482</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rainer,&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;I modified my expression -&amp;gt; {"=MonthName(AddMonths(Date#(USDOpenPeriod,'MMM YYYY'),-1))"}&lt;/P&gt;&lt;P&gt;count({&amp;lt;USD.Open_Period={"=MonthName(AddMonths(Date#(USDOpenPeriod,'MMM YYYY'),-1))"}&amp;gt;}USD.Callno)&lt;/P&gt;&lt;P&gt;I m getting the count now but instead of giving -1 in AddMonths, i am getting the count same as Selected (or Max) month.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Sep 2009 13:03:07 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-09-23T13:03:07Z</dc:date>
    <item>
      <title>Set Analysis Query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Query/m-p/194666#M55480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I have to show count for last 3 months from the month selected by User. If User do not select any month, I have to take max month. Pls Note:&lt;/P&gt;&lt;P&gt;1. Month is the MonthName() actually like Aug 2009, Jul 2009.&lt;BR /&gt;2. USDOpenPeriod is the variable that holds the month name from which i have to show last 3 months. I am changing its value On Select of the field. If user clears all selection, it will hold the max month.&lt;BR /&gt;3. I can't give "Always Selected One" on month field.&lt;/P&gt;&lt;P&gt;To get the count for Selected (or Max month), I am using below 3 options:&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;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i) count ({$} USD.Callno) - giving correct count&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P&gt;&lt;B&gt;ii) count({&amp;lt;USD.Open_Period=USDOpenPeriod&amp;gt;} USD.Callno) - not giving anything - Expression window also not showing any error in formula.&lt;/B&gt;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;iii) count(If(USD.Open_Period=USDOpenPeriod,USD.Callno)) - giving correct count&lt;BR /&gt;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P&gt;&lt;B&gt;I am not able to understand how ii) is different from i) and iii).&lt;/B&gt;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P&gt;&lt;B&gt;ii) count({&amp;lt;USD.Open_Period=USDOpenPeriod&amp;gt;} USD.Callno) - not giving anything - Expression window also not showing any error in formula.&lt;/B&gt;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;iii) count(If(USD.Open_Period=USDOpenPeriod,USD.Callno)) - giving correct count&lt;BR /&gt;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P&gt;&lt;B&gt;I am not able to understand how ii) is different from i) and iii).&lt;/B&gt;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P&gt;&lt;B&gt;ii) count({&amp;lt;USD.Open_Period=USDOpenPeriod&amp;gt;} USD.Callno) - not giving anything - Expression window also not showing any error in formula.&lt;/B&gt;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;iii) count(If(USD.Open_Period=USDOpenPeriod,USD.Callno)) - giving correct count&lt;BR /&gt;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P&gt;&lt;B&gt;I am not able to understand how ii) is different from i) and iii).&lt;/B&gt;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt; &lt;B&gt;&lt;/B&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Moreover, to get the count of Previous month of Selected (or Max month), I am trying to do like below:&lt;BR /&gt;&lt;BR /&gt;count({&amp;lt;USD.Open_Period=MonthName(AddMonths(Date#(USDOpenPeriod,'MMM YYYY'),-1))&amp;gt;}USD.Callno)&lt;/P&gt;&lt;P&gt;With this, Expression window is showing error - "Error in set modifier ad hoc expression".&lt;/P&gt;&lt;P&gt;Pls suggest!!&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&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;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&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, 22 Sep 2009 19:22:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Query/m-p/194666#M55480</guid>
      <dc:creator />
      <dc:date>2009-09-22T19:22:24Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Query/m-p/194667#M55481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arun,&lt;/P&gt;&lt;P&gt;hopefully the attached example of "Set Analysis Three Month Period" will help you.&lt;/P&gt;&lt;P&gt;God luck!&lt;/P&gt;&lt;P&gt;Rainer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2009 19:41:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Query/m-p/194667#M55481</guid>
      <dc:creator />
      <dc:date>2009-09-22T19:41:00Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Query/m-p/194668#M55482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rainer,&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;I modified my expression -&amp;gt; {"=MonthName(AddMonths(Date#(USDOpenPeriod,'MMM YYYY'),-1))"}&lt;/P&gt;&lt;P&gt;count({&amp;lt;USD.Open_Period={"=MonthName(AddMonths(Date#(USDOpenPeriod,'MMM YYYY'),-1))"}&amp;gt;}USD.Callno)&lt;/P&gt;&lt;P&gt;I m getting the count now but instead of giving -1 in AddMonths, i am getting the count same as Selected (or Max) month.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2009 13:03:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Query/m-p/194668#M55482</guid>
      <dc:creator />
      <dc:date>2009-09-23T13:03:07Z</dc:date>
    </item>
  </channel>
</rss>

