<?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: Conditional Count if for entire column in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Conditional-Count-if-for-entire-column/m-p/2523467#M106798</link>
    <description>&lt;ARTICLE class="text-token-text-primary w-full" dir="auto" data-testid="conversation-turn-178" data-scroll-anchor="true"&gt;
&lt;DIV class="text-base my-auto mx-auto py-5 [--thread-content-margin:--spacing(4)] @[37rem]:[--thread-content-margin:--spacing(6)] @[72rem]:[--thread-content-margin:--spacing(16)] px-(--thread-content-margin)"&gt;
&lt;DIV class="[--thread-content-max-width:32rem] @[34rem]:[--thread-content-max-width:40rem] @[64rem]:[--thread-content-max-width:48rem] mx-auto flex max-w-(--thread-content-max-width) flex-1 text-base gap-4 md:gap-5 lg:gap-6 group/turn-messages focus-visible:outline-hidden" tabindex="-1"&gt;
&lt;DIV class="group/conversation-turn relative flex w-full min-w-0 flex-col agent-turn"&gt;
&lt;DIV class="relative flex-col gap-1 md:gap-3"&gt;
&lt;DIV class="flex max-w-full flex-col grow"&gt;
&lt;DIV class="min-h-8 text-message relative flex w-full flex-col items-end gap-2 text-start break-words whitespace-normal [.text-message+&amp;amp;]:mt-5" dir="auto" data-message-author-role="assistant" data-message-id="f5d62136-5879-4e71-b074-e6505b4d2ba0" data-message-model-slug="gpt-4o"&gt;
&lt;DIV class="flex w-full flex-col gap-1 empty:hidden first:pt-[3px]"&gt;
&lt;DIV class="markdown prose dark:prose-invert w-full break-words light"&gt;
&lt;P data-start="93" data-end="373" data-is-last-node="" data-is-only-node=""&gt;This is a great use case for a conditional aggregation. You might try using something like: &lt;CODE data-start="185" data-end="229"&gt;Count({&amp;lt;ColumnName={'value'}&amp;gt;} ColumnName)&lt;/CODE&gt;just adjust the field and condition based on what you need. Also, make sure your data model supports the condition properly. Hope that helps!&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="flex min-h-[46px] justify-start"&gt;
&lt;DIV class="touch:-me-2 touch:-ms-3.5 -ms-2.5 -me-1 flex flex-wrap items-center gap-y-4 p-1 select-none touch:w-[calc(100%+--spacing(3.5))] -mt-1 w-[calc(100%+--spacing(2.5))] duration-[1.5s] focus-within:transition-none hover:transition-none pointer-events-none [mask-image:linear-gradient(to_right,black_33%,transparent_66%)] [mask-size:300%_100%] [mask-position:100%_0%] motion-safe:transition-[mask-position] group-hover/turn-messages:pointer-events-auto group-hover/turn-messages:[mask-position:0_0] group-focus-within/turn-messages:pointer-events-auto group-focus-within/turn-messages:[mask-position:0_0] has-data-[state=open]:pointer-events-auto has-data-[state=open]:[mask-position:0_0]"&gt;&lt;BUTTON class="text-token-text-secondary hover:bg-token-bg-secondary rounded-lg" aria-label="Copy" aria-selected="false" data-testid="copy-turn-action-button" data-state="closed"&gt;&lt;/BUTTON&gt;&lt;BUTTON class="text-token-text-secondary hover:bg-token-bg-secondary rounded-lg" aria-label="Good response" aria-selected="false" data-testid="good-response-turn-action-button" data-state="closed"&gt;&lt;/BUTTON&gt;&lt;BUTTON class="text-token-text-secondary hover:bg-token-bg-secondary rounded-lg" aria-label="Bad response" aria-selected="false" data-testid="bad-response-turn-action-button" data-state="closed"&gt;&lt;/BUTTON&gt;&lt;BUTTON class="text-token-text-secondary hover:bg-token-bg-secondary rounded-lg" aria-label="Read aloud" aria-selected="false" data-testid="voice-play-turn-action-button" data-state="closed"&gt;&lt;/BUTTON&gt;&lt;BUTTON class="text-token-text-secondary hover:bg-token-bg-secondary rounded-lg" aria-label="Edit in canvas" aria-selected="false" data-state="closed"&gt;&lt;/BUTTON&gt;
&lt;DIV class="flex items-center"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;BUTTON class="text-token-text-secondary hover:bg-token-bg-secondary rounded-lg" aria-label="Share" aria-selected="false" data-state="closed"&gt;&lt;/BUTTON&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="mt-3 w-full empty:hidden"&gt;
&lt;DIV class="text-center"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="aria-live=polite absolute"&gt;
&lt;DIV class="flex items-center justify-center"&gt;&lt;SPAN class="flex items-center gap-1.5"&gt;&lt;SPAN class="sr-only whitespace-nowrap! md:not-sr-only"&gt;Ask C&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/ARTICLE&gt;</description>
    <pubDate>Tue, 08 Jul 2025 15:01:13 GMT</pubDate>
    <dc:creator>mattewwade06</dc:creator>
    <dc:date>2025-07-08T15:01:13Z</dc:date>
    <item>
      <title>Conditional Count if for entire column</title>
      <link>https://community.qlik.com/t5/App-Development/Conditional-Count-if-for-entire-column/m-p/2523447#M106793</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I want to each row to calculate the number of columns, which match the following criteria:&lt;/P&gt;&lt;P&gt;(1) the created date has to be &amp;lt;= the created date of the specific line&lt;BR /&gt;(2) the close date has to be &amp;lt;= the created date of the specific line&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Example:&lt;BR /&gt;For ID = 4, there are 2 rows, which match the criteria (ID 1 + ID 2). ID 3 does NOT match the criteria, since the close date is after the created date of ID 4. Therefore, the counter should not count this lins.&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ID&lt;/TD&gt;&lt;TD&gt;Created&lt;/TD&gt;&lt;TD&gt;Closed&lt;/TD&gt;&lt;TD&gt;Counter&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;01.01.2020&lt;/TD&gt;&lt;TD&gt;02.01.2020&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;02.01.2020&lt;/TD&gt;&lt;TD&gt;02.01.2020&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;03.01.2020&lt;/TD&gt;&lt;TD&gt;05.01.2020&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;04.01.2020&lt;/TD&gt;&lt;TD&gt;04.01.2020&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;05.01.2020&lt;/TD&gt;&lt;TD&gt;05.01.2020&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know that I can word with rangesum(peek(, but I do not get this working, taking into account that I have the filter criteria which I need to get into this formula.&lt;/P&gt;&lt;P&gt;What I started with:&lt;/P&gt;&lt;P&gt;RangeSum(Above(TOTAL Sum(if(CreatedDate&amp;lt;=CreatedDate and CloseDate&amp;lt;=CreatedDate, Counter)), 0, RowNo(TOTAL)))&lt;/P&gt;&lt;P&gt;Can anybody help me?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Florian&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jul 2025 14:06:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Conditional-Count-if-for-entire-column/m-p/2523447#M106793</guid>
      <dc:creator>florian_kloster</dc:creator>
      <dc:date>2025-07-08T14:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Count if for entire column</title>
      <link>https://community.qlik.com/t5/App-Development/Conditional-Count-if-for-entire-column/m-p/2523461#M106795</link>
      <description>&lt;P&gt;I'm not sure if this is possible within the UI. If it would probably need something like:&lt;/P&gt;&lt;P&gt;if(Date1 &amp;gt;= above(Date1) and Date2 &amp;lt;= above(Date2), ...&lt;/P&gt;&lt;P&gt;and this wrapped with at least one aggr() with the right dimensionality and ordering - whereby I assume that the shown ID is more a record-counter as an ID from a business point of view ... In each case it would be complex.&lt;/P&gt;&lt;P&gt;More practicable may be to transfer the essential logic into the script by using interrecord-functions like peek() and previous() within n loads to create n flags (forwards and backwards and ordered against Date1 and Date2 and maybe some more information). Developing the logic in small steps - and if some working is found it may optimized again.&lt;/P&gt;&lt;P&gt;Beside this I suggest to re-think the entire approach because there may more suitable ways to get the wanted views - maybe starting with a resolution of the period-areas to dedicated dates per internal while-loop or an intervalmatch.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jul 2025 14:27:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Conditional-Count-if-for-entire-column/m-p/2523461#M106795</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2025-07-08T14:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Count if for entire column</title>
      <link>https://community.qlik.com/t5/App-Development/Conditional-Count-if-for-entire-column/m-p/2523464#M106796</link>
      <description>&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;thank you very much for your efforts &amp;amp; help - as always really appreciated!&lt;BR /&gt;Scary to hear that this is not possible. In EXCEL, theoretically, this is nothing of an issue. Unfortunately, the system simply can't handle the number of rows.&lt;BR /&gt;&lt;BR /&gt;I also tried simple left joins, so joining each row to each row, which also blows up the capacity - since we are talking about roughly 1.2 billion rows in my dataset. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;If I summarize your thoughts - and honestly, not sure if I understand everything - there is no direct way to do it. Strange. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; I would have thought, that it would be possible to check previous values against the value in the actual row. This is not possible? o.O&lt;/P&gt;&lt;P&gt;Thank you very much,&lt;BR /&gt;Florian&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jul 2025 14:35:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Conditional-Count-if-for-entire-column/m-p/2523464#M106796</guid>
      <dc:creator>florian_kloster</dc:creator>
      <dc:date>2025-07-08T14:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Count if for entire column</title>
      <link>https://community.qlik.com/t5/App-Development/Conditional-Count-if-for-entire-column/m-p/2523467#M106798</link>
      <description>&lt;ARTICLE class="text-token-text-primary w-full" dir="auto" data-testid="conversation-turn-178" data-scroll-anchor="true"&gt;
&lt;DIV class="text-base my-auto mx-auto py-5 [--thread-content-margin:--spacing(4)] @[37rem]:[--thread-content-margin:--spacing(6)] @[72rem]:[--thread-content-margin:--spacing(16)] px-(--thread-content-margin)"&gt;
&lt;DIV class="[--thread-content-max-width:32rem] @[34rem]:[--thread-content-max-width:40rem] @[64rem]:[--thread-content-max-width:48rem] mx-auto flex max-w-(--thread-content-max-width) flex-1 text-base gap-4 md:gap-5 lg:gap-6 group/turn-messages focus-visible:outline-hidden" tabindex="-1"&gt;
&lt;DIV class="group/conversation-turn relative flex w-full min-w-0 flex-col agent-turn"&gt;
&lt;DIV class="relative flex-col gap-1 md:gap-3"&gt;
&lt;DIV class="flex max-w-full flex-col grow"&gt;
&lt;DIV class="min-h-8 text-message relative flex w-full flex-col items-end gap-2 text-start break-words whitespace-normal [.text-message+&amp;amp;]:mt-5" dir="auto" data-message-author-role="assistant" data-message-id="f5d62136-5879-4e71-b074-e6505b4d2ba0" data-message-model-slug="gpt-4o"&gt;
&lt;DIV class="flex w-full flex-col gap-1 empty:hidden first:pt-[3px]"&gt;
&lt;DIV class="markdown prose dark:prose-invert w-full break-words light"&gt;
&lt;P data-start="93" data-end="373" data-is-last-node="" data-is-only-node=""&gt;This is a great use case for a conditional aggregation. You might try using something like: &lt;CODE data-start="185" data-end="229"&gt;Count({&amp;lt;ColumnName={'value'}&amp;gt;} ColumnName)&lt;/CODE&gt;just adjust the field and condition based on what you need. Also, make sure your data model supports the condition properly. Hope that helps!&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="flex min-h-[46px] justify-start"&gt;
&lt;DIV class="touch:-me-2 touch:-ms-3.5 -ms-2.5 -me-1 flex flex-wrap items-center gap-y-4 p-1 select-none touch:w-[calc(100%+--spacing(3.5))] -mt-1 w-[calc(100%+--spacing(2.5))] duration-[1.5s] focus-within:transition-none hover:transition-none pointer-events-none [mask-image:linear-gradient(to_right,black_33%,transparent_66%)] [mask-size:300%_100%] [mask-position:100%_0%] motion-safe:transition-[mask-position] group-hover/turn-messages:pointer-events-auto group-hover/turn-messages:[mask-position:0_0] group-focus-within/turn-messages:pointer-events-auto group-focus-within/turn-messages:[mask-position:0_0] has-data-[state=open]:pointer-events-auto has-data-[state=open]:[mask-position:0_0]"&gt;&lt;BUTTON class="text-token-text-secondary hover:bg-token-bg-secondary rounded-lg" aria-label="Copy" aria-selected="false" data-testid="copy-turn-action-button" data-state="closed"&gt;&lt;/BUTTON&gt;&lt;BUTTON class="text-token-text-secondary hover:bg-token-bg-secondary rounded-lg" aria-label="Good response" aria-selected="false" data-testid="good-response-turn-action-button" data-state="closed"&gt;&lt;/BUTTON&gt;&lt;BUTTON class="text-token-text-secondary hover:bg-token-bg-secondary rounded-lg" aria-label="Bad response" aria-selected="false" data-testid="bad-response-turn-action-button" data-state="closed"&gt;&lt;/BUTTON&gt;&lt;BUTTON class="text-token-text-secondary hover:bg-token-bg-secondary rounded-lg" aria-label="Read aloud" aria-selected="false" data-testid="voice-play-turn-action-button" data-state="closed"&gt;&lt;/BUTTON&gt;&lt;BUTTON class="text-token-text-secondary hover:bg-token-bg-secondary rounded-lg" aria-label="Edit in canvas" aria-selected="false" data-state="closed"&gt;&lt;/BUTTON&gt;
&lt;DIV class="flex items-center"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;BUTTON class="text-token-text-secondary hover:bg-token-bg-secondary rounded-lg" aria-label="Share" aria-selected="false" data-state="closed"&gt;&lt;/BUTTON&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="mt-3 w-full empty:hidden"&gt;
&lt;DIV class="text-center"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="aria-live=polite absolute"&gt;
&lt;DIV class="flex items-center justify-center"&gt;&lt;SPAN class="flex items-center gap-1.5"&gt;&lt;SPAN class="sr-only whitespace-nowrap! md:not-sr-only"&gt;Ask C&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/ARTICLE&gt;</description>
      <pubDate>Tue, 08 Jul 2025 15:01:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Conditional-Count-if-for-entire-column/m-p/2523467#M106798</guid>
      <dc:creator>mattewwade06</dc:creator>
      <dc:date>2025-07-08T15:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Count if for entire column</title>
      <link>https://community.qlik.com/t5/App-Development/Conditional-Count-if-for-entire-column/m-p/2523470#M106800</link>
      <description>&lt;P&gt;A check against the next row is simple but against an unknown number of rows could become difficult. In general each row could be accessed but which one / ones should it be from the calling point? It requires a logic which would catch each scenario - the common ones as well as the seldom exceptions.&lt;/P&gt;&lt;P&gt;Therefore my suggestions to create n flags / offset-results to simplify the logic. Even if I &lt;SPAN&gt;overcomplicated&amp;nbsp;&lt;/SPAN&gt;the matter and only the previous record needs to be evaluated a 0/1 flag-field which is accumulated in the next step might be quite useful in regard of simplification and UI performance (which won't be good by such data-set and queries with interrecord-functions within (nested) if-loops and/or aggr() constructs).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jul 2025 15:26:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Conditional-Count-if-for-entire-column/m-p/2523470#M106800</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2025-07-08T15:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Count if for entire column</title>
      <link>https://community.qlik.com/t5/App-Development/Conditional-Count-if-for-entire-column/m-p/2523731#M106816</link>
      <description>&lt;P&gt;Hi Marcus,&lt;BR /&gt;Hi Mattew,&lt;/P&gt;&lt;P&gt;counting doesn't work since I do not want to aggregate the data - since I just want to countif (in EXCEL terms).&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28038"&gt;@marcus_sommer&lt;/a&gt;&amp;nbsp;The possible workaround you mentioned exceeds my knowledge &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt; And counting the commulative values above (which I already tried), does also not solve the issue, since it can be that there is a value behind which would also be relevant.&lt;/P&gt;&lt;P&gt;I have now solved it using good old EXCEL VBA. Takes longer to run through the data, but at least it works.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you for your help!!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jul 2025 06:21:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Conditional-Count-if-for-entire-column/m-p/2523731#M106816</guid>
      <dc:creator>florian_kloster</dc:creator>
      <dc:date>2025-07-10T06:21:39Z</dc:date>
    </item>
  </channel>
</rss>

