<?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: Using GetFieldSelections with Count function in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Using-GetFieldSelections-with-Count-function/m-p/1854407#M70533</link>
    <description>&lt;P&gt;Ashutosh,&lt;/P&gt;
&lt;P&gt;I am selecting&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;Package Inspected.&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;I tested the expression and it looks like it is working. I am checking the data to confirm it is giving me the correct data. I will let you know how it goes.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Thank you for your help.&lt;/P&gt;</description>
    <pubDate>Mon, 01 Nov 2021 20:25:05 GMT</pubDate>
    <dc:creator>Smoke133</dc:creator>
    <dc:date>2021-11-01T20:25:05Z</dc:date>
    <item>
      <title>Using GetFieldSelections with Count function</title>
      <link>https://community.qlik.com/t5/App-Development/Using-GetFieldSelections-with-Count-function/m-p/1852786#M70419</link>
      <description>&lt;P&gt;I am new to Qlik Sense. I need to count the number of VIN's where the selected package inspected in a filter that is equal to the rejected sales code. In addition, I need to be able to count if more than one sales code is selected.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;VIN | PackageInspected | RejectedSalesCode&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;TD849306 | MID,HDE,IME | IME&lt;/P&gt;
&lt;P&gt;TD840345 | MID,HDE,KDF | MID&lt;/P&gt;
&lt;P&gt;TD756034 | HDE,LDE,KDF | HDE&lt;/P&gt;
&lt;P&gt;TD559293 | MID,HDE,IME | IME&lt;/P&gt;
&lt;P&gt;TD885594 | IFK,IME,MID | IME&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Sample 1&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;=Count({&amp;lt;[RejectedSalesCode] ={'IME'}&amp;gt;}[VIN])&lt;/P&gt;
&lt;P&gt;Filter Panel (Package Inspected): IME&lt;/P&gt;
&lt;P&gt;Resultes: 3&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Sample 2&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;=Count({&amp;lt;[RejectedSalesCode] ={'IME','HDE'}&amp;gt;}[VIN])&lt;/P&gt;
&lt;P&gt;Filter Panel (Package Inspected): IME,HDE&lt;/P&gt;
&lt;P&gt;Resultes: 4&lt;/P&gt;
&lt;P&gt;I try to use this code to count the VIN base of the PackageInspected filter panel, but it is not giving me a count.&lt;/P&gt;
&lt;P&gt;=Count({&amp;lt;[RejectedSalesCode] ={'$(=GetFieldSelections(PackageInspected ))'}&amp;gt;}[VIN])&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 23:53:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-GetFieldSelections-with-Count-function/m-p/1852786#M70419</guid>
      <dc:creator>Smoke133</dc:creator>
      <dc:date>2021-10-27T23:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: Using GetFieldSelections with Count function</title>
      <link>https://community.qlik.com/t5/App-Development/Using-GetFieldSelections-with-Count-function/m-p/1852845#M70426</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Try below expression.&lt;/P&gt;
&lt;P&gt;=Count({&amp;lt;[RejectedSalesCode] ={"$(=Replace(GetFieldSelections(PackageInspected ),',','","'))"}&amp;gt;}[VIN])&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AshutoshBhumkar_0-1635402664723.png" style="width: 584px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/65446i62C1B7A6E2552B4B/image-dimensions/584x136?v=v2" width="584" height="136" role="button" title="AshutoshBhumkar_0-1635402664723.png" alt="AshutoshBhumkar_0-1635402664723.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Ashutosh&lt;/P&gt;</description>
      <pubDate>Thu, 28 Oct 2021 06:31:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-GetFieldSelections-with-Count-function/m-p/1852845#M70426</guid>
      <dc:creator>AshutoshBhumkar</dc:creator>
      <dc:date>2021-10-28T06:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using GetFieldSelections with Count function</title>
      <link>https://community.qlik.com/t5/App-Development/Using-GetFieldSelections-with-Count-function/m-p/1853298#M70457</link>
      <description>&lt;P&gt;Hi Ashutosh,&lt;/P&gt;
&lt;P&gt;Using this expression only gives me the count for the first package selected on the filter panel. I need it to count if more than one is selected, similar to sample 2.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Oct 2021 20:01:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-GetFieldSelections-with-Count-function/m-p/1853298#M70457</guid>
      <dc:creator>Smoke133</dc:creator>
      <dc:date>2021-10-28T20:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: Using GetFieldSelections with Count function</title>
      <link>https://community.qlik.com/t5/App-Development/Using-GetFieldSelections-with-Count-function/m-p/1853370#M70463</link>
      <description>&lt;P&gt;Hi, Try below&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AshutoshBhumkar_0-1635478579585.png" style="width: 506px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/65541iA1F46E8182FDD473/image-dimensions/506x118?v=v2" width="506" height="118" role="button" title="AshutoshBhumkar_0-1635478579585.png" alt="AshutoshBhumkar_0-1635478579585.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AshutoshBhumkar_1-1635478599931.png" style="width: 506px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/65542i63FDC79390AC3412/image-dimensions/506x104?v=v2" width="506" height="104" role="button" title="AshutoshBhumkar_1-1635478599931.png" alt="AshutoshBhumkar_1-1635478599931.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Expression :&amp;nbsp;=Count({&amp;lt;[RejectedSalesCode] ={"$(=Replace(Replace(GetFieldSelections(&lt;STRONG&gt;RejectedSalesCode&lt;/STRONG&gt;),',','","'),' ',''))"}&amp;gt;}[VIN])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you selecting values from&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;Package Inspected or&amp;nbsp;RejectedSalesCode&lt;/SPAN&gt;&lt;/STRONG&gt; ?&lt;/P&gt;
&lt;P&gt;Make changes as per the selection in Expression.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Ashutosh&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 03:40:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-GetFieldSelections-with-Count-function/m-p/1853370#M70463</guid>
      <dc:creator>AshutoshBhumkar</dc:creator>
      <dc:date>2021-10-29T03:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using GetFieldSelections with Count function</title>
      <link>https://community.qlik.com/t5/App-Development/Using-GetFieldSelections-with-Count-function/m-p/1854407#M70533</link>
      <description>&lt;P&gt;Ashutosh,&lt;/P&gt;
&lt;P&gt;I am selecting&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;Package Inspected.&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;I tested the expression and it looks like it is working. I am checking the data to confirm it is giving me the correct data. I will let you know how it goes.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Thank you for your help.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Nov 2021 20:25:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-GetFieldSelections-with-Count-function/m-p/1854407#M70533</guid>
      <dc:creator>Smoke133</dc:creator>
      <dc:date>2021-11-01T20:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using GetFieldSelections with Count function</title>
      <link>https://community.qlik.com/t5/App-Development/Using-GetFieldSelections-with-Count-function/m-p/1856201#M70665</link>
      <description>&lt;P&gt;Ashutosh,&lt;/P&gt;
&lt;P&gt;Thank you for your help. Everything looks good. One last question about the expression. I would like to add to it to prevent it from filtering the RejectedSalesCode when selected in a different filter panel?&lt;/P&gt;
&lt;P&gt;I tried this, but it does not prevent it from being filtered if &lt;STRONG&gt;&lt;SPAN&gt;RejectedSalesCode&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt; is selected in a filter panel&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Expression :&amp;nbsp;=Count({&amp;lt;[RejectedSalesCode] ={"$(=Replace(Replace(GetFieldSelections(&lt;STRONG&gt;Package Inspected&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;),',','","'),' ',''))", &lt;FONT face="andale mono,times" color="#FF0000"&gt;$&amp;lt;[&lt;STRONG&gt;RejectedSalesCode&lt;/STRONG&gt;]=&amp;gt;&lt;/FONT&gt;}[VIN])&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Any suggestions?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2021 19:13:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-GetFieldSelections-with-Count-function/m-p/1856201#M70665</guid>
      <dc:creator>Smoke133</dc:creator>
      <dc:date>2021-11-05T19:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: Using GetFieldSelections with Count function</title>
      <link>https://community.qlik.com/t5/App-Development/Using-GetFieldSelections-with-Count-function/m-p/1856205#M70666</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to ignore the selection of&amp;nbsp;&lt;STRONG&gt;RejectedSalesCode&amp;nbsp;&lt;/STRONG&gt;then use the corrected expression.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;=Count({&amp;lt;[RejectedSalesCode] ={"$(=Replace(Replace(GetFieldSelections(&lt;STRONG&gt;Package Inspected&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;),',','","'),' ',''))"}, &lt;STRONG&gt;RejectedSalesCode =&lt;/STRONG&gt;&amp;gt;}[VIN])&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Ashutosh&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2021 19:25:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-GetFieldSelections-with-Count-function/m-p/1856205#M70666</guid>
      <dc:creator>AshutoshBhumkar</dc:creator>
      <dc:date>2021-11-05T19:25:21Z</dc:date>
    </item>
  </channel>
</rss>

