<?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: Ignoring all filters in set analysis in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Ignoring-all-filters-in-set-analysis/m-p/2508765#M104588</link>
    <description>&lt;P&gt;The 1 is a set identifier, so goes at the beginning of the set analysis, after a {&lt;/P&gt;
&lt;P&gt;The closing } comes at the end of the set analysis expression.&lt;/P&gt;</description>
    <pubDate>Fri, 07 Mar 2025 11:19:42 GMT</pubDate>
    <dc:creator>Ben_P</dc:creator>
    <dc:date>2025-03-07T11:19:42Z</dc:date>
    <item>
      <title>Ignoring all filters in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Ignoring-all-filters-in-set-analysis/m-p/2508756#M104582</link>
      <description>&lt;P&gt;I need a static KPI that doesn't change when any filters are used throughout my app,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;reading around it looks like the key is using {1} but I'm evidently not getting it in the right place as it's not working!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Current format is as below which returns a null when a filter is selected:&lt;/P&gt;
&lt;P&gt;1-&lt;/P&gt;
&lt;P&gt;((Sum({1}{$&amp;lt;TdateYear={"(=$(vCurrentYear))"},NPD_Other={'Overhead'}&amp;gt;} Nmhrs))+ (Sum({1}{$&amp;lt;TdateYear={"(=$(vCurrentYear))"},NPD_Other={'Overhead'}&amp;gt;} OThrs)))/&lt;/P&gt;
&lt;P&gt;((Sum({1}{$&amp;lt;TdateYear={"(=$(vCurrentYear))"}&amp;gt;} Nmhrs))+ (Sum({1}{$&amp;lt;TdateYear={"(=$(vCurrentYear))"}&amp;gt;} OThrs)))&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 10:33:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Ignoring-all-filters-in-set-analysis/m-p/2508756#M104582</guid>
      <dc:creator>orangebloss</dc:creator>
      <dc:date>2025-03-07T10:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Ignoring all filters in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Ignoring-all-filters-in-set-analysis/m-p/2508758#M104583</link>
      <description>&lt;P&gt;Hi, try using the 1 to replace the $... so instead of this :&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sum({1}{$&amp;lt;TdateYear=...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You have this:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sum({1&amp;lt;TdateYear=...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;There is some more information in the 'modifiers' section of this page:&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/qlikview/May2024/Subsystems/Client/Content/QV_QlikView/ChartFunctions/SetAnalysis/set-analysis-expressions.htm" target="_blank"&gt;Set analysis and set expressions | QlikView Help&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 10:44:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Ignoring-all-filters-in-set-analysis/m-p/2508758#M104583</guid>
      <dc:creator>Ben_P</dc:creator>
      <dc:date>2025-03-07T10:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: Ignoring all filters in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Ignoring-all-filters-in-set-analysis/m-p/2508759#M104584</link>
      <description>&lt;P&gt;You may try:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sum({&lt;STRONG&gt;1&lt;/STRONG&gt; $&amp;lt;TdateYear={"(=$(vCurrentYear))"},NPD_Other={'Overhead'}&amp;gt;} rangesum(Nmhrs, OThrs)) /&lt;BR /&gt;Sum({&lt;STRONG&gt;1&lt;/STRONG&gt; $&amp;lt;TdateYear={"(=$(vCurrentYear))"}&amp;gt;} rangesum(Nmhrs, OThrs))&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 10:44:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Ignoring-all-filters-in-set-analysis/m-p/2508759#M104584</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2025-03-07T10:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: Ignoring all filters in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Ignoring-all-filters-in-set-analysis/m-p/2508761#M104586</link>
      <description>&lt;P&gt;Thanks both - I've tried to simplify by adding the calculations to variables - would this be a better way to do it and if so where does the 1 go?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1-&lt;/P&gt;
&lt;P&gt;sum(&lt;/P&gt;
&lt;P&gt;v_Overhead_LastYear/ v_AllTime_LastYear)&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 11:13:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Ignoring-all-filters-in-set-analysis/m-p/2508761#M104586</guid>
      <dc:creator>orangebloss</dc:creator>
      <dc:date>2025-03-07T11:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: Ignoring all filters in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Ignoring-all-filters-in-set-analysis/m-p/2508763#M104587</link>
      <description>&lt;P&gt;Thanks Marcus - does there need to be a closing } for the {1 ?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 11:16:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Ignoring-all-filters-in-set-analysis/m-p/2508763#M104587</guid>
      <dc:creator>orangebloss</dc:creator>
      <dc:date>2025-03-07T11:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Ignoring all filters in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Ignoring-all-filters-in-set-analysis/m-p/2508765#M104588</link>
      <description>&lt;P&gt;The 1 is a set identifier, so goes at the beginning of the set analysis, after a {&lt;/P&gt;
&lt;P&gt;The closing } comes at the end of the set analysis expression.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 11:19:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Ignoring-all-filters-in-set-analysis/m-p/2508765#M104588</guid>
      <dc:creator>Ben_P</dc:creator>
      <dc:date>2025-03-07T11:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: Ignoring all filters in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Ignoring-all-filters-in-set-analysis/m-p/2508769#M104590</link>
      <description>&lt;P&gt;I can't get the range sum to work? it seem s to want an extra }&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="orangebloss_0-1741346700503.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/178264iABB7D9194DC06AEC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="orangebloss_0-1741346700503.png" alt="orangebloss_0-1741346700503.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 11:25:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Ignoring-all-filters-in-set-analysis/m-p/2508769#M104590</guid>
      <dc:creator>orangebloss</dc:creator>
      <dc:date>2025-03-07T11:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: Ignoring all filters in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Ignoring-all-filters-in-set-analysis/m-p/2508771#M104592</link>
      <description>&lt;P&gt;Also, your example where you have used variables... you can apply an outer set analysis expression at the start of the formula, so it then applies to the whole thing. Note this will depend on how your variables are defined, i.e. you need to make sure they aren't pre-evaluated; they need to evaluate as part of your final combined formula.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense/November2024/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/SetAnalysis/set-expressions-inner-and-outer.htm" target="_blank"&gt;Inner and outer set expressions | Qlik Sense on Windows Help&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 11:30:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Ignoring-all-filters-in-set-analysis/m-p/2508771#M104592</guid>
      <dc:creator>Ben_P</dc:creator>
      <dc:date>2025-03-07T11:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: Ignoring all filters in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Ignoring-all-filters-in-set-analysis/m-p/2508772#M104593</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I think there were not all causes fetched - therefore try it with:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sum({&lt;/SPAN&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&amp;lt;TdateYear={$(vCurrentYear)},NPD_Other={'Overhead'}&amp;gt;} rangesum(Nmhrs, OThrs)) /&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sum({&lt;/SPAN&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&amp;lt;TdateYear={$(vCurrentYear)}&amp;gt;} rangesum(Nmhrs, OThrs))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 11:33:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Ignoring-all-filters-in-set-analysis/m-p/2508772#M104593</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2025-03-07T11:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: Ignoring all filters in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Ignoring-all-filters-in-set-analysis/m-p/2508775#M104595</link>
      <description>&lt;P&gt;Variables are a very powerful feature - but they are adding complexity because there are extra dependencies to how a variable is created + where they is called again + which kind of content is included.&lt;/P&gt;
&lt;P&gt;What ever - variables shouldn't be the starting point else the end. Means if there is a working expression/logic which is either very large and/or quite redundant it might be worth to outsource into a variable - because of the fact that the working were already proofed the sometimes challenging syntax-stuff isn't so hard - but the opposite way could be quite painful.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 11:44:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Ignoring-all-filters-in-set-analysis/m-p/2508775#M104595</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2025-03-07T11:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: Ignoring all filters in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Ignoring-all-filters-in-set-analysis/m-p/2509035#M104642</link>
      <description>&lt;P&gt;Thanks Marcus - why would the rangesum give me a different result to my original total ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Mar 2025 13:30:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Ignoring-all-filters-in-set-analysis/m-p/2509035#M104642</guid>
      <dc:creator>orangebloss</dc:creator>
      <dc:date>2025-03-10T13:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: Ignoring all filters in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Ignoring-all-filters-in-set-analysis/m-p/2509045#M104646</link>
      <description>&lt;P&gt;By combining values with the normal math operators each non-numeric result for one of them will produce NULL for the entire calculation-level. The range-functions instead handle each non-numeric parameter as ZERO. Within the most scenarios is this type of error/exception-handling more suitable and expedient as getting NULL.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Mar 2025 13:56:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Ignoring-all-filters-in-set-analysis/m-p/2509045#M104646</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2025-03-10T13:56:46Z</dc:date>
    </item>
  </channel>
</rss>

