<?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 Re: Static Aggregation - ignoring filters in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Static-Aggregation-ignoring-filters/m-p/1073439#M358310</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny for your reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 May 2016 11:26:58 GMT</pubDate>
    <dc:creator>kgarvind</dc:creator>
    <dc:date>2016-05-11T11:26:58Z</dc:date>
    <item>
      <title>Static Aggregation - ignoring filters</title>
      <link>https://community.qlik.com/t5/QlikView/Static-Aggregation-ignoring-filters/m-p/1073437#M358308</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;I have a straight table that i am trying to create where i need to fetch the number of days where the [lot numbers] executed were within the range - lot min &amp;amp; lot max targets. i do get the right number and fine.. but i would want the chart to&lt;STRONG&gt; only show for this month only and should not change when i pick any other filters / dates/months / city etc...completely ignore all selections&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;Sum ({1} Aggr( &lt;/P&gt;&lt;P&gt;if(&lt;/P&gt;&lt;P&gt;COUNT({1&amp;lt;&lt;/P&gt;&lt;P&gt;[Calendar Month] ={"=Month('$(v_RptDate)')"}&amp;gt;} Distinct([Lot Number])) &amp;gt;= [Lot Min Target] AND&lt;/P&gt;&lt;P&gt;COUNT({1&amp;lt;&lt;/P&gt;&lt;P&gt;[Calendar Month] ={"=Month('$(v_RptDate)')"}&amp;gt;} Distinct([Lot Number])) &amp;lt;= [Lot Max Target]&amp;nbsp; &lt;/P&gt;&lt;P&gt;, COUNT({1&amp;lt;[Calendar Month] ={"=Month('$(v_RptDate)')"}&amp;gt;} DISTINCT(CalendarDate)),0)&lt;/P&gt;&lt;P&gt;,CalendarDate, Location_City, Prtd_Type))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CalendarDate / City / Product type are dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;appreciate any comment/feedback/help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2016 12:05:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Static-Aggregation-ignoring-filters/m-p/1073437#M358308</guid>
      <dc:creator>kgarvind</dc:creator>
      <dc:date>2016-05-04T12:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: Static Aggregation - ignoring filters</title>
      <link>https://community.qlik.com/t5/QlikView/Static-Aggregation-ignoring-filters/m-p/1073438#M358309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So based on what I understand, the expression above is working for you, you just need to restrict it in a way that it doesn't change based on any selections, right? Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;=Sum({1} Aggr(I&lt;SPAN style="line-height: 1.5em;"&gt;f(&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;SPAN style="line-height: 1.5em;"&gt;Count({1&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em;"&gt;[Calendar Month] ={"=Month('$(v_RptDate)')"}&amp;gt;} Distinct [Lot Number]) &amp;gt;= &lt;SPAN style="color: #ff0000;"&gt;Only({1}&lt;/SPAN&gt;[Lot Min Target]&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;and&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Count({1&amp;lt;[Calendar Month] ={"=Month('$(v_RptDate)')"}&amp;gt;} Distinct [Lot Number]) &amp;lt;= &lt;SPAN style="color: #ff0000;"&gt;Only({1}&lt;/SPAN&gt;[Lot Max Target]&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em;"&gt;, Count({1&amp;lt;[Calendar Month] ={"=Month('$(v_RptDate)')"}&amp;gt;} DISTINCTCalendarDate), 0)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="line-height: 1.5em;"&gt;&lt;STRONG&gt;, CalendarDate, Location_City, Prtd_Type))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;The only other thing I would check is if the variable v_RptDate has an expression where you would need to ignore selection using {1}.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2016 16:31:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Static-Aggregation-ignoring-filters/m-p/1073438#M358309</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-04T16:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: Static Aggregation - ignoring filters</title>
      <link>https://community.qlik.com/t5/QlikView/Static-Aggregation-ignoring-filters/m-p/1073439#M358310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny for your reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2016 11:26:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Static-Aggregation-ignoring-filters/m-p/1073439#M358310</guid>
      <dc:creator>kgarvind</dc:creator>
      <dc:date>2016-05-11T11:26:58Z</dc:date>
    </item>
  </channel>
</rss>

