<?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: Aggr doesn't work with computer dimensions, so how do I do aggr(count(x), Date(timestamp))? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-doesn-t-work-with-computed-dimensions-so-how-do-I-do-aggr/m-p/710110#M255827</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you try to create a field in the script level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date(purchase_time) as Purchase_Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then&lt;/P&gt;&lt;P&gt;avg( aggr( count(distinct buyer_id), Purchase_Date) )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mukram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jun 2014 08:48:34 GMT</pubDate>
    <dc:creator>mdmukramali</dc:creator>
    <dc:date>2014-06-19T08:48:34Z</dc:date>
    <item>
      <title>Aggr doesn't work with computed dimensions, so how do I do aggr(count(x), Date(timestamp))?</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-doesn-t-work-with-computed-dimensions-so-how-do-I-do-aggr/m-p/710109#M255826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let's say, I need to find the avg number of distinct buyers per day so it should be, theoretically, something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;avg( aggr( count(distinct buyer_id), date(purchase_time) ) )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but this doesn't work because aggr() can't take computed dimension, I.E - date(purchase_timestamp).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the best solution for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2014 08:45:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-doesn-t-work-with-computed-dimensions-so-how-do-I-do-aggr/m-p/710109#M255826</guid>
      <dc:creator />
      <dc:date>2014-06-19T08:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr doesn't work with computer dimensions, so how do I do aggr(count(x), Date(timestamp))?</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-doesn-t-work-with-computed-dimensions-so-how-do-I-do-aggr/m-p/710110#M255827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you try to create a field in the script level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date(purchase_time) as Purchase_Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then&lt;/P&gt;&lt;P&gt;avg( aggr( count(distinct buyer_id), Purchase_Date) )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mukram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2014 08:48:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-doesn-t-work-with-computed-dimensions-so-how-do-I-do-aggr/m-p/710110#M255827</guid>
      <dc:creator>mdmukramali</dc:creator>
      <dc:date>2014-06-19T08:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr doesn't work with computed dimensions, so how do I do aggr(count(x), Date(timestamp))?</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-doesn-t-work-with-computed-dimensions-so-how-do-I-do-aggr/m-p/710111#M255828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was hoping to find a solution that does not involve without having to redefine the model but I guess there is none.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2014 10:29:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-doesn-t-work-with-computed-dimensions-so-how-do-I-do-aggr/m-p/710111#M255828</guid>
      <dc:creator />
      <dc:date>2014-06-19T10:29:25Z</dc:date>
    </item>
  </channel>
</rss>

