<?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: Filter Pivot Table with Button in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Filter-Pivot-Table-with-Button/m-p/2450043#M97886</link>
    <description>&lt;P&gt;to exclude resuls of aggregation, you would normally use set analysis.&amp;nbsp; so for example, to exclude grand total =0, you would use something like :&lt;BR /&gt;&lt;BR /&gt;Sum({&amp;lt;Queue={"=aggr(sum(Measure),Queue)&amp;gt;0"}&amp;gt;}Measure)&lt;BR /&gt;&lt;BR /&gt;this would exclude the whole row Queue2&lt;BR /&gt;&lt;BR /&gt;now if you want this controlled by a button, you can replace the set analysis by a variable:&lt;BR /&gt;&lt;BR /&gt;Sum($(vSACrietria)Measure)&lt;BR /&gt;&lt;BR /&gt;then you create a button that replaces the value of the variable with your set expression:&lt;BR /&gt;&lt;BR /&gt;value to set to = '{&amp;lt;Queue={"=aggr(sum(Measure),Queue)&amp;gt;0"}&amp;gt;}'&lt;BR /&gt;&lt;BR /&gt;of course you may want another button that resets it to nothing but you should use a space:&lt;BR /&gt;= ' '&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;heres a sample:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="edwin_0-1715118446973.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/165666iA0F592CA59E7E805/image-size/medium?v=v2&amp;amp;px=400" role="button" title="edwin_0-1715118446973.png" alt="edwin_0-1715118446973.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;the 1st button sets the variable:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="edwin_1-1715118476624.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/165667i178D0A4767C0A97B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="edwin_1-1715118476624.png" alt="edwin_1-1715118476624.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;the 2nd button resets the variable:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="edwin_2-1715118506750.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/165668iC760739545AA5A60/image-size/medium?v=v2&amp;amp;px=400" role="button" title="edwin_2-1715118506750.png" alt="edwin_2-1715118506750.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;you can add other buttons that drive other criteria in your set analysis.&lt;/P&gt;</description>
    <pubDate>Tue, 07 May 2024 21:48:56 GMT</pubDate>
    <dc:creator>edwin</dc:creator>
    <dc:date>2024-05-07T21:48:56Z</dc:date>
    <item>
      <title>Filter Pivot Table with Button</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-Pivot-Table-with-Button/m-p/2450035#M97885</link>
      <description>&lt;P&gt;I currently have a Pivot Table that is displaying the total number of records in different work queues, broken down by their current SLA status (Green, Yellow &amp;amp; Red).&amp;nbsp; Sample screenshot shown below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="trevorcrow_0-1715116426998.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/165664iC18F25D5CFFC290E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="trevorcrow_0-1715116426998.png" alt="trevorcrow_0-1715116426998.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I'm trying to accomplish, if possible, would be to have a couple of Qlik buttons that could perform filtering of what is being displayed on the Pivot Table.&amp;nbsp; For example, Button 1 could filter out any Queues with zero records.&amp;nbsp; Button 2 would filter the pivot table to only display queues that have records in a Red SLA status.&amp;nbsp; Is this possible?&amp;nbsp; I've tried numerous things that I've found online but haven't found the right answer or example yet.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for any assistance that can be given!&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 21:18:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-Pivot-Table-with-Button/m-p/2450035#M97885</guid>
      <dc:creator>trevorcrow</dc:creator>
      <dc:date>2024-05-07T21:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Pivot Table with Button</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-Pivot-Table-with-Button/m-p/2450043#M97886</link>
      <description>&lt;P&gt;to exclude resuls of aggregation, you would normally use set analysis.&amp;nbsp; so for example, to exclude grand total =0, you would use something like :&lt;BR /&gt;&lt;BR /&gt;Sum({&amp;lt;Queue={"=aggr(sum(Measure),Queue)&amp;gt;0"}&amp;gt;}Measure)&lt;BR /&gt;&lt;BR /&gt;this would exclude the whole row Queue2&lt;BR /&gt;&lt;BR /&gt;now if you want this controlled by a button, you can replace the set analysis by a variable:&lt;BR /&gt;&lt;BR /&gt;Sum($(vSACrietria)Measure)&lt;BR /&gt;&lt;BR /&gt;then you create a button that replaces the value of the variable with your set expression:&lt;BR /&gt;&lt;BR /&gt;value to set to = '{&amp;lt;Queue={"=aggr(sum(Measure),Queue)&amp;gt;0"}&amp;gt;}'&lt;BR /&gt;&lt;BR /&gt;of course you may want another button that resets it to nothing but you should use a space:&lt;BR /&gt;= ' '&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;heres a sample:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="edwin_0-1715118446973.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/165666iA0F592CA59E7E805/image-size/medium?v=v2&amp;amp;px=400" role="button" title="edwin_0-1715118446973.png" alt="edwin_0-1715118446973.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;the 1st button sets the variable:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="edwin_1-1715118476624.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/165667i178D0A4767C0A97B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="edwin_1-1715118476624.png" alt="edwin_1-1715118476624.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;the 2nd button resets the variable:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="edwin_2-1715118506750.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/165668iC760739545AA5A60/image-size/medium?v=v2&amp;amp;px=400" role="button" title="edwin_2-1715118506750.png" alt="edwin_2-1715118506750.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;you can add other buttons that drive other criteria in your set analysis.&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 21:48:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-Pivot-Table-with-Button/m-p/2450043#M97886</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2024-05-07T21:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Pivot Table with Button</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-Pivot-Table-with-Button/m-p/2450482#M97930</link>
      <description>&lt;P&gt;Thank you so much for your quick response and what looks exactly like what I'm looking for.&amp;nbsp; I'm a bit of a novice in Qlik Sense so excuse me for having to clarify, but where exactly should I be putting the set analysis expression?&amp;nbsp; Is this something that I add into my pivot table as a Dimension or Measure?&amp;nbsp; Appreciate the help!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 18:31:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-Pivot-Table-with-Button/m-p/2450482#M97930</guid>
      <dc:creator>trevorcrow</dc:creator>
      <dc:date>2024-05-08T18:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Pivot Table with Button</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-Pivot-Table-with-Button/m-p/2450519#M97934</link>
      <description>&lt;P&gt;you first have to know how to write set analysis.&amp;nbsp; and to answer your question - you add it into the measure, so for example:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sum($(vSACrietria)Measure)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;$(vSACriteria) represents your set analysis expression&lt;BR /&gt;&lt;BR /&gt;vSACriteria is a variable that you set with your set analysis expression&lt;BR /&gt;&lt;BR /&gt;write your expression here, with the name of the field for Queue and i or someone else can help you write the set analysis for it&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 19:54:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-Pivot-Table-with-Button/m-p/2450519#M97934</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2024-05-08T19:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Pivot Table with Button</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-Pivot-Table-with-Button/m-p/2450534#M97936</link>
      <description>&lt;P&gt;So here is the current state of my pivot table:&lt;/P&gt;
&lt;P&gt;Dimensions&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Field = [Queue Name]&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Measures&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Green:&amp;nbsp;Count({&amp;lt;[SLA Status]={'Green'}&amp;gt;} Distinct [Record ID])&lt;/LI&gt;
&lt;LI&gt;Yellow:&amp;nbsp;Count({&amp;lt;[SLA Status]={'Yellow'}&amp;gt;} Distinct [Record ID])&lt;/LI&gt;
&lt;LI&gt;Red:&amp;nbsp;Count({&amp;lt;[SLA Status]={'Red'}&amp;gt;} Distinct [Record ID])&lt;/LI&gt;
&lt;LI&gt;Total:&amp;nbsp;Count(Distinct [Record ID])&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;This pivot table is being populated from a table of records that looks like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="trevorcrow_0-1715203908461.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/165738i2F2949394CAC2783/image-size/medium?v=v2&amp;amp;px=400" role="button" title="trevorcrow_0-1715203908461.png" alt="trevorcrow_0-1715203908461.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hopefully this provides more information as to what I'm currently working with.&amp;nbsp; Thanks again for all of your time and assistance.&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 21:33:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-Pivot-Table-with-Button/m-p/2450534#M97936</guid>
      <dc:creator>trevorcrow</dc:creator>
      <dc:date>2024-05-08T21:33:22Z</dc:date>
    </item>
  </channel>
</rss>

