<?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: Set Analysis for fixed period and ignoring one filter in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-Analysis-for-fixed-period-and-ignoring-one-filter/m-p/1610138#M45321</link>
    <description>Thanks for the help so far.&lt;BR /&gt;Its still not working as intended. Perhaps we can work with a simpler example to make sure I understand the syntax?&lt;BR /&gt;In this case I want to count [Personnel Number]. I want the result to be unaffected by any filter applied to [Absence Type], but I do want it to change when other filters are selected.&lt;BR /&gt;I've tried the following code, but the result still is affected when I select to filter on Absence Type. What do you think?&lt;BR /&gt;Count (&lt;BR /&gt;{$&amp;lt;[Absence Type] = &amp;gt;}&lt;BR /&gt;distinct&lt;BR /&gt;[Personnel Number] )&lt;BR /&gt;</description>
    <pubDate>Wed, 07 Aug 2019 08:07:07 GMT</pubDate>
    <dc:creator>MikeH1983</dc:creator>
    <dc:date>2019-08-07T08:07:07Z</dc:date>
    <item>
      <title>Set Analysis for fixed period and ignoring one filter</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-for-fixed-period-and-ignoring-one-filter/m-p/1609683#M45280</link>
      <description>&lt;P&gt;Hi all.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm having trouble writing a set analysis, hopefully someone out there can help!&lt;/P&gt;&lt;P&gt;I want an average headcount of Month End headcount values over a Selection time period. This here works:&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;Avg(Aggr(Count(&lt;BR /&gt;&amp;nbsp;{&amp;lt;MasterMonthEnd = {"&amp;gt;=$(=[Selection Start Date])&amp;nbsp; &amp;lt;=$(=[Selection End Date])"}&amp;gt;}&amp;nbsp;&lt;BR /&gt;&amp;nbsp;if ( [Employment Status] &amp;lt;&amp;gt; 'Withdrawn'&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; and [Action Start Date] &amp;lt;= MasterMonthEnd&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; and [Action End Date] &amp;gt;= MasterMonthEnd&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; and [Position Start Date] &amp;lt;= MasterMonthEnd&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; and [Position End Date] &amp;gt;= MasterMonthEnd&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,&amp;nbsp; [Personnel Number])&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;BR /&gt;, MasterMonthEnd,[Personnel Area]))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;But now I want to ignore the selection of an Absence Type - i.e I want the values to stay the same if an Absence Type filter is selected. I've tried this below, but the values change when a filter is selected.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;Avg(Aggr(Count(&lt;BR /&gt;&amp;nbsp;{&amp;lt;MasterMonthEnd = {"&amp;gt;=$(=[Selection Start Date])&amp;nbsp; &amp;lt;=$(=[Selection End Date])"}&amp;gt; * 1&amp;lt;[Absence Type]&amp;gt;}&amp;nbsp;&lt;BR /&gt;&amp;nbsp;if ( [Employment Status] &amp;lt;&amp;gt; 'Withdrawn'&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; and [Action Start Date] &amp;lt;= MasterMonthEnd&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; and [Action End Date] &amp;gt;= MasterMonthEnd&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; and [Position Start Date] &amp;lt;= MasterMonthEnd&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; and [Position End Date] &amp;gt;= MasterMonthEnd&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,&amp;nbsp; [Personnel Number])&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;BR /&gt;, MasterMonthEnd,[Personnel Area]))&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;Any clues how I can set this expression to ignore an Absence Type filter? Thanks in advance&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 18:28:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-for-fixed-period-and-ignoring-one-filter/m-p/1609683#M45280</guid>
      <dc:creator>MikeH1983</dc:creator>
      <dc:date>2021-12-23T18:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for fixed period and ignoring one filter</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-for-fixed-period-and-ignoring-one-filter/m-p/1609716#M45282</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi Mike,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Actually&amp;nbsp; we need to nullyfy that column(field) in Setanalysis,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ex: Sum({&amp;lt; Product=&amp;nbsp; &amp;gt;&amp;lt;product=&amp;nbsp;&amp;gt;} Amount)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/product=&amp;nbsp;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please try below expression, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Avg(Aggr(Count(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;{&amp;lt;MasterMonthEnd = {"&amp;gt;=$(=[Selection Start Date])&amp;nbsp; &amp;lt;=$(=[Selection End Date])"}&amp;gt;&amp;nbsp; ,[Absence Type]= &amp;gt;}&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;if ( [Employment Status] &amp;lt;&amp;gt; 'Withdrawn'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; and [Action Start Date] &amp;lt;= MasterMonthEnd&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; and [Action End Date] &amp;gt;= MasterMonthEnd&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; and [Position Start Date] &amp;lt;= MasterMonthEnd&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; and [Position End Date] &amp;gt;= MasterMonthEnd&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,&amp;nbsp; [Personnel Number])&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;, MasterMonthEnd,[Personnel Area]))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2019 10:27:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-for-fixed-period-and-ignoring-one-filter/m-p/1609716#M45282</guid>
      <dc:creator>mahaveerbiraj</dc:creator>
      <dc:date>2019-08-06T10:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for fixed period and ignoring one filter</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-for-fixed-period-and-ignoring-one-filter/m-p/1610138#M45321</link>
      <description>Thanks for the help so far.&lt;BR /&gt;Its still not working as intended. Perhaps we can work with a simpler example to make sure I understand the syntax?&lt;BR /&gt;In this case I want to count [Personnel Number]. I want the result to be unaffected by any filter applied to [Absence Type], but I do want it to change when other filters are selected.&lt;BR /&gt;I've tried the following code, but the result still is affected when I select to filter on Absence Type. What do you think?&lt;BR /&gt;Count (&lt;BR /&gt;{$&amp;lt;[Absence Type] = &amp;gt;}&lt;BR /&gt;distinct&lt;BR /&gt;[Personnel Number] )&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Aug 2019 08:07:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-for-fixed-period-and-ignoring-one-filter/m-p/1610138#M45321</guid>
      <dc:creator>MikeH1983</dc:creator>
      <dc:date>2019-08-07T08:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for fixed period and ignoring one filter</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-for-fixed-period-and-ignoring-one-filter/m-p/1610161#M45322</link>
      <description>&lt;P&gt;For Posterity, the correct syntax for my original problem is below. Note there is only one {&amp;lt;&amp;gt;} enclosing the entire set expression.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Avg(Aggr(Count(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;lt;MasterMonthEnd = {"&amp;gt;=$(=[Selection Start Date])&amp;nbsp; &amp;lt;=$(=[Selection End Date])"},[Absence Type]=&amp;gt;}&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ( [Employment Status] &amp;lt;&amp;gt; 'Withdrawn'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; and [Action Start Date] &amp;lt;= MasterMonthEnd&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;and [Action End Date] &amp;gt;= MasterMonthEnd&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; and [Position Start Date] &amp;lt;= MasterMonthEnd&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; and [Position End Date] &amp;gt;= MasterMonthEnd&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,&amp;nbsp; [Personnel Number])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;, MasterMonthEnd,[Personnel Area]))&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 08:58:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-for-fixed-period-and-ignoring-one-filter/m-p/1610161#M45322</guid>
      <dc:creator>MikeH1983</dc:creator>
      <dc:date>2019-08-07T08:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for fixed period and ignoring one filter</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-for-fixed-period-and-ignoring-one-filter/m-p/1610162#M45323</link>
      <description>&lt;P&gt;There was a problem with the solution syntax, but also a problem with my filter.&lt;/P&gt;&lt;P&gt;I was using a dimension on a Table to filter Absence Type, and that dimension was calculated. Changing it to a dimension that was simply the Absence Type field made the set expression recognise and ignore it, with the syntax {&amp;lt;[Absence Type]=&amp;gt;}. Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 08:59:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-for-fixed-period-and-ignoring-one-filter/m-p/1610162#M45323</guid>
      <dc:creator>MikeH1983</dc:creator>
      <dc:date>2019-08-07T08:59:49Z</dc:date>
    </item>
  </channel>
</rss>

