<?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: Count all rows in selection if one is flagged in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Count-all-rows-in-selection-if-one-is-flagged/m-p/1668440#M50459</link>
    <description>&lt;P&gt;See post from Tresesco, that will do the job:&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;Count({$&amp;lt;Employee=p({&amp;lt;Flag={1}&amp;gt;}&lt;FONT&gt;Employee&lt;/FONT&gt;)&amp;gt;}Date)&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jan 2020 10:48:45 GMT</pubDate>
    <dc:creator>jochem_zw</dc:creator>
    <dc:date>2020-01-23T10:48:45Z</dc:date>
    <item>
      <title>Count all rows in selection if one is flagged</title>
      <link>https://community.qlik.com/t5/App-Development/Count-all-rows-in-selection-if-one-is-flagged/m-p/1665720#M50109</link>
      <description>&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;Just a simple question but I can't get it working. I have a table with the columns "Employee ID", "Date" and "Flag Leave". The flag is a 1 or 0 and tells if someone was leaving in a period or not. I want to count all the days of an employee in a selected period if one or more days in the selection are flagged.&lt;/P&gt;&lt;P&gt;This should be done in the frontend and not in the script editor because the selection of periods is flexible. I have tried AGGR but it's a dataset with 6000 employees and about 900 dates per employee so it was to performance heavy but maybe I did something inefficient.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have anyone an idea how to solve this?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:34:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-all-rows-in-selection-if-one-is-flagged/m-p/1665720#M50109</guid>
      <dc:creator>erwinvink</dc:creator>
      <dc:date>2024-11-16T03:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Count all rows in selection if one is flagged</title>
      <link>https://community.qlik.com/t5/App-Development/Count-all-rows-in-selection-if-one-is-flagged/m-p/1666486#M50189</link>
      <description>&lt;P&gt;Please try something like:&lt;/P&gt;&lt;P&gt;Count({$&amp;lt;Flag={1}&amp;gt;}&lt;SPAN&gt;Date)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2020 21:42:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-all-rows-in-selection-if-one-is-flagged/m-p/1666486#M50189</guid>
      <dc:creator>jochem_zw</dc:creator>
      <dc:date>2020-01-16T21:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Count all rows in selection if one is flagged</title>
      <link>https://community.qlik.com/t5/App-Development/Count-all-rows-in-selection-if-one-is-flagged/m-p/1668430#M50455</link>
      <description>&lt;P&gt;Hi Jochem, thanks for taking time. This will not work because I want to count all the days of en employee if &lt;STRONG&gt;one (or more)&lt;/STRONG&gt; is flagged. With the expression you give, only the flagged days itself will be count.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2020 10:19:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-all-rows-in-selection-if-one-is-flagged/m-p/1668430#M50455</guid>
      <dc:creator>erwinvink</dc:creator>
      <dc:date>2020-01-23T10:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: Count all rows in selection if one is flagged</title>
      <link>https://community.qlik.com/t5/App-Development/Count-all-rows-in-selection-if-one-is-flagged/m-p/1668437#M50457</link>
      <description>&lt;P&gt;Try with p(). Something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Count({$&amp;lt;Employee=&lt;STRONG&gt;p&lt;/STRONG&gt;({&amp;lt;Flag={1}&amp;gt;} Employee)&amp;gt;}&lt;/SPAN&gt;&lt;SPAN&gt;Date)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2020 10:43:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-all-rows-in-selection-if-one-is-flagged/m-p/1668437#M50457</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2020-01-23T10:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Count all rows in selection if one is flagged</title>
      <link>https://community.qlik.com/t5/App-Development/Count-all-rows-in-selection-if-one-is-flagged/m-p/1668440#M50459</link>
      <description>&lt;P&gt;See post from Tresesco, that will do the job:&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;Count({$&amp;lt;Employee=p({&amp;lt;Flag={1}&amp;gt;}&lt;FONT&gt;Employee&lt;/FONT&gt;)&amp;gt;}Date)&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2020 10:48:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-all-rows-in-selection-if-one-is-flagged/m-p/1668440#M50459</guid>
      <dc:creator>jochem_zw</dc:creator>
      <dc:date>2020-01-23T10:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Count all rows in selection if one is flagged</title>
      <link>https://community.qlik.com/t5/App-Development/Count-all-rows-in-selection-if-one-is-flagged/m-p/1669015#M50520</link>
      <description>&lt;P&gt;Hi Tresesco and Jochem,&lt;/P&gt;&lt;P&gt;This is working great. The P() function is kind of new for me. Good for me to get some knowledge of it. Thanks for your help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2020 14:47:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-all-rows-in-selection-if-one-is-flagged/m-p/1669015#M50520</guid>
      <dc:creator>erwinvink</dc:creator>
      <dc:date>2020-01-24T14:47:41Z</dc:date>
    </item>
  </channel>
</rss>

