<?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 Keeping a KPI from changing with filter selections. in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Keeping-a-KPI-from-changing-with-filter-selections/m-p/1586358#M63040</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a KPI on a sheet that I want to have and keep the value for a specific set modifier no matter what is selected on the sheet.&amp;nbsp; Example:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="turntime.PNG" style="width: 200px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/12895iCB5DDD14EA916EAA/image-size/small?v=v2&amp;amp;px=200" role="button" title="turntime.PNG" alt="turntime.PNG" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So here, the large value will be the Site, the small value should be the average of All sites (There are 4 KPIs one for each site.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;This KPI has the following Measures:&lt;/P&gt;&lt;P&gt;Average(for specific site):&amp;nbsp;&lt;/P&gt;&lt;P&gt;Avg(Aggr({&amp;lt;PLANT_CODE={'BET'}&amp;gt;} //Site location code&lt;BR /&gt;Floor(Only(&lt;BR /&gt;{&amp;lt;[Process Code]-={'CC','CP','BS'},[Tread]-={'POOL','REPONLY'},[Casing Status]-={'DELETED'}&amp;gt;}[Completed Date]))&lt;BR /&gt;-&lt;BR /&gt;Floor(Only(&lt;BR /&gt;{&amp;lt;[Casing Status]-={'DELETED'}, [gra_audit_trail.POST_NAME]={'RECEIVING'},ACTION_NAME={'SHIP_RECEIVING'}&amp;gt;}[Audit Create]))&lt;BR /&gt;,[Tag #]))&lt;/P&gt;&lt;P&gt;This Seems to work, except that when I select a filter item ie Year, Customer, Plant Name from the filter bar(below),&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="auditfilterbar.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/12896i3D1498C7865A4317/image-size/large?v=v2&amp;amp;px=999" role="button" title="auditfilterbar.PNG" alt="auditfilterbar.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;the KPI values change.&lt;BR /&gt;I want it to always reflect the average for the site code selected and I can't seem to make this happen!&lt;/P&gt;&lt;P&gt;Any help or insights are appreciated!&lt;/P&gt;</description>
    <pubDate>Fri, 02 Apr 2021 07:56:39 GMT</pubDate>
    <dc:creator>aschmeelk</dc:creator>
    <dc:date>2021-04-02T07:56:39Z</dc:date>
    <item>
      <title>Keeping a KPI from changing with filter selections.</title>
      <link>https://community.qlik.com/t5/App-Development/Keeping-a-KPI-from-changing-with-filter-selections/m-p/1586358#M63040</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a KPI on a sheet that I want to have and keep the value for a specific set modifier no matter what is selected on the sheet.&amp;nbsp; Example:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="turntime.PNG" style="width: 200px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/12895iCB5DDD14EA916EAA/image-size/small?v=v2&amp;amp;px=200" role="button" title="turntime.PNG" alt="turntime.PNG" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So here, the large value will be the Site, the small value should be the average of All sites (There are 4 KPIs one for each site.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;This KPI has the following Measures:&lt;/P&gt;&lt;P&gt;Average(for specific site):&amp;nbsp;&lt;/P&gt;&lt;P&gt;Avg(Aggr({&amp;lt;PLANT_CODE={'BET'}&amp;gt;} //Site location code&lt;BR /&gt;Floor(Only(&lt;BR /&gt;{&amp;lt;[Process Code]-={'CC','CP','BS'},[Tread]-={'POOL','REPONLY'},[Casing Status]-={'DELETED'}&amp;gt;}[Completed Date]))&lt;BR /&gt;-&lt;BR /&gt;Floor(Only(&lt;BR /&gt;{&amp;lt;[Casing Status]-={'DELETED'}, [gra_audit_trail.POST_NAME]={'RECEIVING'},ACTION_NAME={'SHIP_RECEIVING'}&amp;gt;}[Audit Create]))&lt;BR /&gt;,[Tag #]))&lt;/P&gt;&lt;P&gt;This Seems to work, except that when I select a filter item ie Year, Customer, Plant Name from the filter bar(below),&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="auditfilterbar.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/12896i3D1498C7865A4317/image-size/large?v=v2&amp;amp;px=999" role="button" title="auditfilterbar.PNG" alt="auditfilterbar.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;the KPI values change.&lt;BR /&gt;I want it to always reflect the average for the site code selected and I can't seem to make this happen!&lt;/P&gt;&lt;P&gt;Any help or insights are appreciated!&lt;/P&gt;</description>
      <pubDate>Fri, 02 Apr 2021 07:56:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Keeping-a-KPI-from-changing-with-filter-selections/m-p/1586358#M63040</guid>
      <dc:creator>aschmeelk</dc:creator>
      <dc:date>2021-04-02T07:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: Keeping a KPI from changing with filter selections.</title>
      <link>https://community.qlik.com/t5/App-Development/Keeping-a-KPI-from-changing-with-filter-selections/m-p/1586362#M63041</link>
      <description>&lt;P&gt;Try using&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/sense/April2019/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/SetAnalysis/set-analysis-expressions.htm" target="_self"&gt;{1}&lt;/A&gt;&amp;nbsp;as part of you set analysis statement.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 18:02:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Keeping-a-KPI-from-changing-with-filter-selections/m-p/1586362#M63041</guid>
      <dc:creator>jwjackso</dc:creator>
      <dc:date>2019-05-29T18:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: Keeping a KPI from changing with filter selections.</title>
      <link>https://community.qlik.com/t5/App-Development/Keeping-a-KPI-from-changing-with-filter-selections/m-p/1586645#M63042</link>
      <description>&lt;P&gt;Yeah, I've tried that, doesn't seem to work.&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 13:12:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Keeping-a-KPI-from-changing-with-filter-selections/m-p/1586645#M63042</guid>
      <dc:creator>aschmeelk</dc:creator>
      <dc:date>2019-05-30T13:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: Keeping a KPI from changing with filter selections.</title>
      <link>https://community.qlik.com/t5/App-Development/Keeping-a-KPI-from-changing-with-filter-selections/m-p/1589692#M63043</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Did you put 1 in all 4 places, including for the Avg function?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Avg(&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;{1}&lt;/STRONG&gt;&lt;/FONT&gt; Aggr({&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&amp;lt;PLANT_CODE={'BET'}&amp;gt;} //Site location code&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Floor(Only(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&amp;lt;[Process Code]-={'CC','CP','BS'},[Tread]-={'POOL','REPONLY'},[Casing Status]-={'DELETED'}&amp;gt;}[Completed Date]))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Floor(Only(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&amp;lt;[Casing Status]-={'DELETED'}, [gra_audit_trail.POST_NAME]={'RECEIVING'},ACTION_NAME={'SHIP_RECEIVING'}&amp;gt;}[Audit Create]))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;,[Tag #]))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 18:17:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Keeping-a-KPI-from-changing-with-filter-selections/m-p/1589692#M63043</guid>
      <dc:creator>Lauri</dc:creator>
      <dc:date>2019-06-07T18:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: Keeping a KPI from changing with filter selections.</title>
      <link>https://community.qlik.com/t5/App-Development/Keeping-a-KPI-from-changing-with-filter-selections/m-p/1589976#M63044</link>
      <description>&lt;P&gt;Thank you! Adding the {1}&amp;nbsp; to the AVG function did the trick.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 12:10:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Keeping-a-KPI-from-changing-with-filter-selections/m-p/1589976#M63044</guid>
      <dc:creator>aschmeelk</dc:creator>
      <dc:date>2019-06-10T12:10:32Z</dc:date>
    </item>
  </channel>
</rss>

