<?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 Aggregation within Set analysis count in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggregation-within-Set-analysis-count/m-p/453359#M485408</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good day,&lt;/P&gt;&lt;P&gt;I'm stuck on getting this expression to work for the past 2 days with no success, please can provide some advise as how i can can get this working?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression is as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;count(&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;{&amp;lt;MODIFIED={'$(=min(MODIFIED))'} &amp;gt;}&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;{&amp;lt;WORKFLOW_STATUS_NAME={'DBText/Approval'}&amp;gt;}&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;aggr([NAME],[Product_Name2],[NAME]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently the expression returns a count of 1 for each 'NAME' object grouped by its 'Product_Name' and only where the 'MODIFIED' date is the minimum date for that objects 'Product_Name' and where the 'WORKFLOW_STATUS' is as specified above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works in some cases, doesn't work in others, and assigns the count to the incorrect row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression returns the a count of 1 for the specified criteria, but assigns the count to the incorrect row?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any assitance would be much appreciated, thanks in advance for your effort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached the model below with sample data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Apr 2013 09:39:24 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-04-15T09:39:24Z</dc:date>
    <item>
      <title>Aggregation within Set analysis count</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-within-Set-analysis-count/m-p/453359#M485408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good day,&lt;/P&gt;&lt;P&gt;I'm stuck on getting this expression to work for the past 2 days with no success, please can provide some advise as how i can can get this working?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression is as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;count(&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;{&amp;lt;MODIFIED={'$(=min(MODIFIED))'} &amp;gt;}&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;{&amp;lt;WORKFLOW_STATUS_NAME={'DBText/Approval'}&amp;gt;}&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;aggr([NAME],[Product_Name2],[NAME]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently the expression returns a count of 1 for each 'NAME' object grouped by its 'Product_Name' and only where the 'MODIFIED' date is the minimum date for that objects 'Product_Name' and where the 'WORKFLOW_STATUS' is as specified above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works in some cases, doesn't work in others, and assigns the count to the incorrect row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression returns the a count of 1 for the specified criteria, but assigns the count to the incorrect row?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any assitance would be much appreciated, thanks in advance for your effort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached the model below with sample data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 09:39:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-within-Set-analysis-count/m-p/453359#M485408</guid>
      <dc:creator />
      <dc:date>2013-04-15T09:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation within Set analysis count</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-within-Set-analysis-count/m-p/453360#M485409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This was solved by using the following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count(&lt;/P&gt;&lt;P&gt;if(WORKFLOW_STATUS_NAME='DBText/Editing',&lt;/P&gt;&lt;P&gt;aggr(FirstSortedValue(DISTINCT LAST_MODIFIER, MODIFIED), Product_Name2, NAME, WORKFLOW_STATUS_NAME)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2013 15:21:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-within-Set-analysis-count/m-p/453360#M485409</guid>
      <dc:creator />
      <dc:date>2013-04-17T15:21:01Z</dc:date>
    </item>
  </channel>
</rss>

