<?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 aggregate in set expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/aggregate-in-set-expression/m-p/1839056#M1215148</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have a problem with a expression.&lt;/P&gt;&lt;P&gt;My formula is:&lt;/P&gt;&lt;P&gt;=aggr( Count({&amp;lt; OrderDate= {"$(=date(FirstSortedValue(distinct OrderDate, aggr(OrderDate, OrderNumber))))"}&amp;gt;} OrderNumber), OrderNumber)&lt;/P&gt;&lt;P&gt;What I try to achieve is that QV takes the first OrderDate value for each OrderNumber and counts the number of rows that have that OrderNumber in combination with the first OrderDate.&lt;/P&gt;&lt;P&gt;QV at the moment validates the OrderDate with the firstsortedvalue of alle the orderdates in the selection.&amp;nbsp;&lt;BR /&gt;Where am I going wrong in my expression?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Much thanks in advance!&lt;/P&gt;</description>
    <pubDate>Fri, 24 Sep 2021 14:33:44 GMT</pubDate>
    <dc:creator>Strooprover</dc:creator>
    <dc:date>2021-09-24T14:33:44Z</dc:date>
    <item>
      <title>aggregate in set expression</title>
      <link>https://community.qlik.com/t5/QlikView/aggregate-in-set-expression/m-p/1839056#M1215148</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have a problem with a expression.&lt;/P&gt;&lt;P&gt;My formula is:&lt;/P&gt;&lt;P&gt;=aggr( Count({&amp;lt; OrderDate= {"$(=date(FirstSortedValue(distinct OrderDate, aggr(OrderDate, OrderNumber))))"}&amp;gt;} OrderNumber), OrderNumber)&lt;/P&gt;&lt;P&gt;What I try to achieve is that QV takes the first OrderDate value for each OrderNumber and counts the number of rows that have that OrderNumber in combination with the first OrderDate.&lt;/P&gt;&lt;P&gt;QV at the moment validates the OrderDate with the firstsortedvalue of alle the orderdates in the selection.&amp;nbsp;&lt;BR /&gt;Where am I going wrong in my expression?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Much thanks in advance!&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 14:33:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggregate-in-set-expression/m-p/1839056#M1215148</guid>
      <dc:creator>Strooprover</dc:creator>
      <dc:date>2021-09-24T14:33:44Z</dc:date>
    </item>
  </channel>
</rss>

