<?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: Help with filtering pivot table rows by multiple input variables in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Help-with-filtering-pivot-table-rows-by-multiple-input-variables/m-p/2008615#M83428</link>
    <description>&lt;P&gt;Thank you so much, will try this out.&lt;/P&gt;</description>
    <pubDate>Thu, 24 Nov 2022 07:55:43 GMT</pubDate>
    <dc:creator>AP2</dc:creator>
    <dc:date>2022-11-24T07:55:43Z</dc:date>
    <item>
      <title>Help with filtering pivot table rows by multiple input variables</title>
      <link>https://community.qlik.com/t5/App-Development/Help-with-filtering-pivot-table-rows-by-multiple-input-variables/m-p/1997435#M82607</link>
      <description>&lt;P&gt;Good day all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a pivot table with the following structure:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Row: Customer ID&lt;/P&gt;
&lt;P&gt;- Column: Year Month&lt;/P&gt;
&lt;P&gt;- Measures: sales values in month, no. of orders, rolling average spend&amp;nbsp; (per customer). These are pre - aggregated in the data I bring in, with year month in a single column with corresponding values in the other columns (Customer Id, Sales in the month, number of order etc.). I used a pivot table so I can easily transpose this data.&lt;/P&gt;
&lt;P&gt;The goal is for the user to be able to filter out customers that meet the criteria in the input variables I added - minimum sales per month, minimum number of orders and minimum rolling avg.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I created the input variables, and applied the following login to the customer ID row:&lt;/P&gt;
&lt;P&gt;if&lt;BR /&gt;(month sales &amp;gt;= $(vMinSalesVariable)&lt;BR /&gt;and&lt;BR /&gt;&amp;nbsp;no&amp;nbsp; of orders &amp;gt;= $(vMinOrdersVariable)&lt;BR /&gt;and&lt;BR /&gt;Rolling average of sales &amp;gt;= $(vMinRollingAvgVariable)&lt;/P&gt;
&lt;P&gt;,&lt;/P&gt;
&lt;P&gt;Customer ID)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Issue I'm having is that rather than filtering for customers that meet the minimum variables for all months in my table, it only filters for those who meet them for at least on month and grays out the values in the other months.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any assistance with this will be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 07:38:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Help-with-filtering-pivot-table-rows-by-multiple-input-variables/m-p/1997435#M82607</guid>
      <dc:creator>AP2</dc:creator>
      <dc:date>2022-10-27T07:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: Help with filtering pivot table rows by multiple input variables</title>
      <link>https://community.qlik.com/t5/App-Development/Help-with-filtering-pivot-table-rows-by-multiple-input-variables/m-p/2000296#M82850</link>
      <description>&lt;P&gt;If you want the condition was accomplised every month you have to do something like this using AGGR:&lt;/P&gt;
&lt;P&gt;if(AGGR(SUM(if(&lt;BR /&gt;(month sales &amp;gt;= $(vMinSalesVariable)&lt;BR /&gt;and&lt;BR /&gt;&amp;nbsp;no&amp;nbsp; of orders &amp;gt;= $(vMinOrdersVariable)&lt;BR /&gt;and&lt;BR /&gt;Rolling average of sales &amp;gt;= $(vMinRollingAvgVariable)&lt;/P&gt;
&lt;P&gt;1,0)),[Month],[Customer ID])=AGGR(Count(distinct Month),[Customer ID])&lt;/P&gt;
&lt;P&gt;,Customer ID)&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 16:49:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Help-with-filtering-pivot-table-rows-by-multiple-input-variables/m-p/2000296#M82850</guid>
      <dc:creator>Mario_De_Felipe</dc:creator>
      <dc:date>2022-11-03T16:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: Help with filtering pivot table rows by multiple input variables</title>
      <link>https://community.qlik.com/t5/App-Development/Help-with-filtering-pivot-table-rows-by-multiple-input-variables/m-p/2008615#M83428</link>
      <description>&lt;P&gt;Thank you so much, will try this out.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 07:55:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Help-with-filtering-pivot-table-rows-by-multiple-input-variables/m-p/2008615#M83428</guid>
      <dc:creator>AP2</dc:creator>
      <dc:date>2022-11-24T07:55:43Z</dc:date>
    </item>
  </channel>
</rss>

