<?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 Filters not working with Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Filters-not-working-with-Set-Analysis/m-p/715315#M257326</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;The following is my set analysis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum( {1 &amp;lt; SalesChannel = {Retail},&amp;nbsp; RetGrpCalendarYearMonth = {"$(#vMaxYearMonth)"}&amp;gt;} NettSalesQty)/&lt;/P&gt;&lt;P&gt;count(DISTINCT {1 &amp;lt;&amp;nbsp; SalesChannel = {Retail}, RetGrpCalendarYearMonth = {"$(#vMaxYearMonth)"}&amp;gt;}IssueDate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im trying to achieve getting the average sales by day per max month by default or the max month chosen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The formula above works and it gives me what i need. However, if i choose any other filter the amounts dont change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It keeps giving me the amounts for the max month and does not drill down if i choose any filter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea what the problem might be?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Magen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jun 2014 07:23:16 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-20T07:23:16Z</dc:date>
    <item>
      <title>Filters not working with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Filters-not-working-with-Set-Analysis/m-p/715315#M257326</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;The following is my set analysis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum( {1 &amp;lt; SalesChannel = {Retail},&amp;nbsp; RetGrpCalendarYearMonth = {"$(#vMaxYearMonth)"}&amp;gt;} NettSalesQty)/&lt;/P&gt;&lt;P&gt;count(DISTINCT {1 &amp;lt;&amp;nbsp; SalesChannel = {Retail}, RetGrpCalendarYearMonth = {"$(#vMaxYearMonth)"}&amp;gt;}IssueDate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im trying to achieve getting the average sales by day per max month by default or the max month chosen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The formula above works and it gives me what i need. However, if i choose any other filter the amounts dont change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It keeps giving me the amounts for the max month and does not drill down if i choose any filter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea what the problem might be?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Magen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 07:23:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filters-not-working-with-Set-Analysis/m-p/715315#M257326</guid>
      <dc:creator />
      <dc:date>2014-06-20T07:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: Filters not working with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Filters-not-working-with-Set-Analysis/m-p/715316#M257327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Remove '1' and try like:&lt;/P&gt;&lt;P&gt;=Sum( {&amp;lt; SalesChannel = {Retail},&amp;nbsp; RetGrpCalendarYearMonth = {"$(#vMaxYearMonth)"}&amp;gt;} NettSalesQty)/&lt;/P&gt;&lt;P&gt;count(DISTINCT {&amp;lt;&amp;nbsp; SalesChannel = {Retail}, RetGrpCalendarYearMonth = {"$(#vMaxYearMonth)"}&amp;gt;}IssueDate)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 07:26:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filters-not-working-with-Set-Analysis/m-p/715316#M257327</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-06-20T07:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Filters not working with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Filters-not-working-with-Set-Analysis/m-p/715317#M257328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks mate!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the next set analysis - here im trying to always get the previous months sales vs current month or what ever month is chosen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like before it works until i try to use a filter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I removed the 1's but still nothing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum( {&amp;nbsp; &amp;lt; SalesChannel = {Retail},&amp;nbsp;&amp;nbsp; RetGrpCalendarYearMonth = {"$(#vPreviousMonth)"}&amp;gt;} NettSalesQty)/&lt;/P&gt;&lt;P&gt;count(DISTINCT {&amp;nbsp; &amp;lt; SalesChannel = {Retail}, RetGrpCalendarYearMonth = {"$(#vPreviousMonth)"}&amp;gt;}IssueDate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Magen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 07:52:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filters-not-working-with-Set-Analysis/m-p/715317#M257328</guid>
      <dc:creator />
      <dc:date>2014-06-20T07:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Filters not working with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Filters-not-working-with-Set-Analysis/m-p/715318#M257329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It could be because of your varaible vPreviousMonth. How do you define it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 08:05:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filters-not-working-with-Set-Analysis/m-p/715318#M257329</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-06-20T08:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: Filters not working with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Filters-not-working-with-Set-Analysis/m-p/715319#M257330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi try below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=Sum( {&amp;lt; SalesChannel = {Retail},&amp;nbsp; RetGrpCalendarYearMonth = {"$(#vMaxYearMonth)"}-1&amp;gt;} NettSalesQty)/&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;count(DISTINCT {&amp;lt;&amp;nbsp; SalesChannel = {Retail}, RetGrpCalendarYearMonth = {"$(#vMaxYearMonth)"}-1&amp;gt;}IssueDate)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ASHFAQ&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 08:05:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filters-not-working-with-Set-Analysis/m-p/715319#M257330</guid>
      <dc:creator>ashfaq_haseeb</dc:creator>
      <dc:date>2014-06-20T08:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: Filters not working with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Filters-not-working-with-Set-Analysis/m-p/715320#M257331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;vPreviousMonth = date(addmonths(MAX(Monthend1),-1),'YYYY-MM')&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 08:18:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filters-not-working-with-Set-Analysis/m-p/715320#M257331</guid>
      <dc:creator />
      <dc:date>2014-06-20T08:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: Filters not working with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Filters-not-working-with-Set-Analysis/m-p/715321#M257332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashfaq&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This returns the same values as the current month, also an underline error apears in the calc under the curly bracket&amp;nbsp; after the first -1&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Magen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 08:22:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filters-not-working-with-Set-Analysis/m-p/715321#M257332</guid>
      <dc:creator />
      <dc:date>2014-06-20T08:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: Filters not working with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Filters-not-working-with-Set-Analysis/m-p/715322#M257333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's because of max() in the variable declaration. If you want this vPreviousMonth variable not get affected by other filters like you wrote in main expression you have to define similarly like:&lt;/P&gt;&lt;P&gt;vPreviousMonth = date(addmonths(MAX(&amp;nbsp; &lt;STRONG&gt;{&amp;nbsp; &amp;lt; SalesChannel = {'Retail'}&amp;gt;}&lt;/STRONG&gt; Monthend1),-1),'YYYY-MM')&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 08:33:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filters-not-working-with-Set-Analysis/m-p/715322#M257333</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-06-20T08:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: Filters not working with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Filters-not-working-with-Set-Analysis/m-p/715323#M257334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tresesco&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That helps, but now when ever i select the month filter it returns nulls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i select other filters it work fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&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;Magen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 08:47:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filters-not-working-with-Set-Analysis/m-p/715323#M257334</guid>
      <dc:creator />
      <dc:date>2014-06-20T08:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: Filters not working with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Filters-not-working-with-Set-Analysis/m-p/715324#M257335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By the way the format of Monthend1 is 'YYYY/MM/DD' - if it makes a difference&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 08:54:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filters-not-working-with-Set-Analysis/m-p/715324#M257335</guid>
      <dc:creator />
      <dc:date>2014-06-20T08:54:12Z</dc:date>
    </item>
  </channel>
</rss>

