<?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: Get a count of value selected in a filter pane in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Get-a-count-of-value-selected-in-a-filter-pane/m-p/2114019#M90941</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/125250"&gt;@Zapparoli&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks, that worked. Could swear I tried the same previously without the same result..&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;</description>
    <pubDate>Wed, 06 Sep 2023 09:33:29 GMT</pubDate>
    <dc:creator>John117</dc:creator>
    <dc:date>2023-09-06T09:33:29Z</dc:date>
    <item>
      <title>Get a count of value selected in a filter pane</title>
      <link>https://community.qlik.com/t5/App-Development/Get-a-count-of-value-selected-in-a-filter-pane/m-p/2112921#M90896</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;my requirement is to be able to use the number of values selected in a filter pane in a calculation in a table..&lt;/P&gt;
&lt;P&gt;I have a filterpane which contains MonthNames - Jan 2023 - Dec 2023. This field is not included in the table in which I want to make my calculation.&lt;/P&gt;
&lt;P&gt;Based on how many months the user selects I want to use the count in a calculation of demand. By default in my table the demand figure is annualised. If a user selects one month in the filter pane I want the demand figure to be 1\12th, if they select two months 2\12ths and so on.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="John117_0-1693838444543.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/115664iC056B0435BCBFA69/image-size/medium?v=v2&amp;amp;px=400" role="button" title="John117_0-1693838444543.png" alt="John117_0-1693838444543.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I was hoping to be able to capture the count of selected periods in a variable and then use it in my calculation of demand. Something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;=Sum(Demand)/12 * vCountPeriods&lt;/P&gt;
&lt;P&gt;Any suggestions would be appreciated..&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2023 14:47:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Get-a-count-of-value-selected-in-a-filter-pane/m-p/2112921#M90896</guid>
      <dc:creator>John117</dc:creator>
      <dc:date>2023-09-04T14:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: Get a count of value selected in a filter pane</title>
      <link>https://community.qlik.com/t5/App-Development/Get-a-count-of-value-selected-in-a-filter-pane/m-p/2112932#M90898</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/172512"&gt;@John117&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe you can use the &lt;A href="https://help.qlik.com/en-US/qlikview/May2023/Subsystems/Client/Content/QV_QlikView/ChartFunctions/FieldFunctions/getselectedcount.htm#:~:text=GetSelectedCount()%20finds%20the%20number,green)%20values%20in%20a%20field.&amp;amp;text=Arguments%3A,by%20selections%20in%20other%20fields." target="_self"&gt;GetSelectedCount&lt;/A&gt; Function&lt;/P&gt;
&lt;P&gt;Like this:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;GetSelectedCount(Period)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Zapparoli_0-1693839995581.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/115665i8392AF38827FDA74/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Zapparoli_0-1693839995581.png" alt="Zapparoli_0-1693839995581.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then on your Formula:&lt;BR /&gt;&lt;SPAN&gt;(Sum(Demand)/12) * &lt;STRONG&gt;GetSelectedCount(Period)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Let me know if it helps.&lt;/P&gt;
&lt;P&gt;-Zapparoli&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2023 15:05:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Get-a-count-of-value-selected-in-a-filter-pane/m-p/2112932#M90898</guid>
      <dc:creator>Zapparoli</dc:creator>
      <dc:date>2023-09-04T15:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: Get a count of value selected in a filter pane</title>
      <link>https://community.qlik.com/t5/App-Development/Get-a-count-of-value-selected-in-a-filter-pane/m-p/2114019#M90941</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/125250"&gt;@Zapparoli&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks, that worked. Could swear I tried the same previously without the same result..&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2023 09:33:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Get-a-count-of-value-selected-in-a-filter-pane/m-p/2114019#M90941</guid>
      <dc:creator>John117</dc:creator>
      <dc:date>2023-09-06T09:33:29Z</dc:date>
    </item>
  </channel>
</rss>

