<?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. :Re: Re. :AVG WITH MANY EXPRESSIONS in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/AVG-WITH-MANY-EXPRESSIONS/m-p/160605#M34821</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't understand what you want, why do you want to do an avg if you do a min ?&lt;/P&gt;&lt;P&gt;if you really want to do an avg, you must have a dimension that you have to use with aggr() function like this :&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;avg(aggr(YourExpression, Dimension))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Aug 2010 16:01:40 GMT</pubDate>
    <dc:creator>martin59</dc:creator>
    <dc:date>2010-08-13T16:01:40Z</dc:date>
    <item>
      <title>AVG WITH MANY EXPRESSIONS</title>
      <link>https://community.qlik.com/t5/QlikView/AVG-WITH-MANY-EXPRESSIONS/m-p/160600#M34816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hy,&lt;/P&gt;&lt;P&gt;I´m using this variable&lt;/P&gt;&lt;P&gt;V_Contagem_Tempo=if(TEMPO_PROCESSO.CD_TIPO_TEMPO_PROCESSO=30,'CHAMADA','ATENDIMENTO')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the expression of a chart I do this expression&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(V_Contagem_Tempo='CHAMADA', MIN(TEMPO_PROCESSO.DH_PROCESSO)-ATENDIME.DH_PRE_ATENDIMENTO_FIM, MIN(PREST_USER_DOCUMENTOS.DT_REGISTRO_DOC)-ATENDIME.DH_PRE_ATENDIMENTO_FIM)&lt;/P&gt;&lt;P&gt;How can I put an AVG function with this expression&lt;/P&gt;&lt;P&gt;AVG(MIN(TEMPO_PROCESSO.DH_PROCESSO)-ATENDIME.DH_PRE_ATENDIMENTO_FIM, MIN)&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;DON´T WORK....&lt;/P&gt;&lt;P&gt;Any Idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Aug 2010 15:02:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AVG-WITH-MANY-EXPRESSIONS/m-p/160600#M34816</guid>
      <dc:creator />
      <dc:date>2010-08-13T15:02:13Z</dc:date>
    </item>
    <item>
      <title>Re. :AVG WITH MANY EXPRESSIONS</title>
      <link>https://community.qlik.com/t5/QlikView/AVG-WITH-MANY-EXPRESSIONS/m-p/160601#M34817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is that you want :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;rangeavg(MIN(TEMPO_PROCESSO.DH_PROCESSO)-ATENDIME.DH_PRE_ATENDIMENTO_FIM,MIN(PREST_USER_DOCUMENTOS.DT_REGISTRO_DOC)-ATENDIME.DH_PRE_ATENDIMENTO_FIM))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Aug 2010 15:09:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AVG-WITH-MANY-EXPRESSIONS/m-p/160601#M34817</guid>
      <dc:creator>martin59</dc:creator>
      <dc:date>2010-08-13T15:09:29Z</dc:date>
    </item>
    <item>
      <title>Re. :AVG WITH MANY EXPRESSIONS</title>
      <link>https://community.qlik.com/t5/QlikView/AVG-WITH-MANY-EXPRESSIONS/m-p/160602#M34818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you... but don´t work...&lt;/P&gt;&lt;P&gt;I´m not using a range of values.&lt;/P&gt;&lt;P&gt;I´m using a conditional expression.&lt;/P&gt;&lt;P&gt;But if you help me to do a AVG with the expression bellow it´s fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MIN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(PREST_USER_DOCUMENTOS.DT_REGISTRO_DOC)-ATENDIME.DH_PRE_ATENDIMENTO_FIM)&lt;/P&gt;&lt;P&gt;Sorry for my english.....&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Aug 2010 15:33:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AVG-WITH-MANY-EXPRESSIONS/m-p/160602#M34818</guid>
      <dc:creator />
      <dc:date>2010-08-13T15:33:03Z</dc:date>
    </item>
    <item>
      <title>Re. :AVG WITH MANY EXPRESSIONS</title>
      <link>https://community.qlik.com/t5/QlikView/AVG-WITH-MANY-EXPRESSIONS/m-p/160603#M34819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;are you using a straight table ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Aug 2010 15:37:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AVG-WITH-MANY-EXPRESSIONS/m-p/160603#M34819</guid>
      <dc:creator>martin59</dc:creator>
      <dc:date>2010-08-13T15:37:32Z</dc:date>
    </item>
    <item>
      <title>Re. :AVG WITH MANY EXPRESSIONS</title>
      <link>https://community.qlik.com/t5/QlikView/AVG-WITH-MANY-EXPRESSIONS/m-p/160604#M34820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, i´m using a gauge chart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Aug 2010 15:49:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AVG-WITH-MANY-EXPRESSIONS/m-p/160604#M34820</guid>
      <dc:creator />
      <dc:date>2010-08-13T15:49:28Z</dc:date>
    </item>
    <item>
      <title>Re. :Re: Re. :AVG WITH MANY EXPRESSIONS</title>
      <link>https://community.qlik.com/t5/QlikView/AVG-WITH-MANY-EXPRESSIONS/m-p/160605#M34821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't understand what you want, why do you want to do an avg if you do a min ?&lt;/P&gt;&lt;P&gt;if you really want to do an avg, you must have a dimension that you have to use with aggr() function like this :&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;avg(aggr(YourExpression, Dimension))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Aug 2010 16:01:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AVG-WITH-MANY-EXPRESSIONS/m-p/160605#M34821</guid>
      <dc:creator>martin59</dc:creator>
      <dc:date>2010-08-13T16:01:40Z</dc:date>
    </item>
    <item>
      <title>Re. :Re: Re. :AVG WITH MANY EXPRESSIONS</title>
      <link>https://community.qlik.com/t5/QlikView/AVG-WITH-MANY-EXPRESSIONS/m-p/160606#M34822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let me explain..&lt;/P&gt;&lt;P&gt;I have a select that bring´s me this&lt;/P&gt;&lt;P&gt;cd_triag, cd_document, dh_document&lt;/P&gt;&lt;P&gt;1:n&lt;/P&gt;&lt;P&gt;But in a lot of times the same cd_atend have a lot of documents (this is ok)&lt;/P&gt;&lt;P&gt;I have another table that contains&lt;/P&gt;&lt;P&gt;cd_atend, dh_atend&lt;/P&gt;&lt;P&gt;1:1&lt;/P&gt;&lt;P&gt;I need to calculate de time between the first document by dh(date hour) of document and the dh(data hour) atend for this I use.&lt;/P&gt;&lt;P&gt;min(dh_document) - dh_atend&lt;/P&gt;&lt;P&gt;But I have a lot of values on database that have 450 GB of data, and a need to make a average of the expression above.&lt;/P&gt;&lt;P&gt;The logical is to do a gauge chart that´s represents the average time in a selected date and show if the time is ok, our not ok. Depending on criterias.&lt;/P&gt;&lt;P&gt;Again, sorry for my english.&lt;/P&gt;&lt;P&gt;And thank you for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Aug 2010 16:35:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AVG-WITH-MANY-EXPRESSIONS/m-p/160606#M34822</guid>
      <dc:creator />
      <dc:date>2010-08-13T16:35:10Z</dc:date>
    </item>
    <item>
      <title>Re. :Re: Re. :AVG WITH MANY EXPRESSIONS</title>
      <link>https://community.qlik.com/t5/QlikView/AVG-WITH-MANY-EXPRESSIONS/m-p/160607#M34823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok,&lt;/P&gt;&lt;P&gt;If I were you, I will calculate the expression in the load script, like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;interval(min(dh_doc) - dh_atend) as dh_interval&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Maybe, you should be transform your datas to attempt this formula...&lt;/P&gt;&lt;P&gt;After that, you have to use this field for your average :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;avg(dh_interval)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Aug 2010 09:11:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AVG-WITH-MANY-EXPRESSIONS/m-p/160607#M34823</guid>
      <dc:creator>martin59</dc:creator>
      <dc:date>2010-08-16T09:11:51Z</dc:date>
    </item>
    <item>
      <title>Re. :Re: Re. :AVG WITH MANY EXPRESSIONS</title>
      <link>https://community.qlik.com/t5/QlikView/AVG-WITH-MANY-EXPRESSIONS/m-p/160608#M34824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is how to count the first register of table, only the first register must be calculated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Aug 2010 12:45:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AVG-WITH-MANY-EXPRESSIONS/m-p/160608#M34824</guid>
      <dc:creator />
      <dc:date>2010-08-16T12:45:47Z</dc:date>
    </item>
    <item>
      <title>Re. :Re: Re. :Re: Re. :AVG WITH MANY EXPRESSIONS</title>
      <link>https://community.qlik.com/t5/QlikView/AVG-WITH-MANY-EXPRESSIONS/m-p/160609#M34825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, but I don't understand what you want...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Aug 2010 13:43:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AVG-WITH-MANY-EXPRESSIONS/m-p/160609#M34825</guid>
      <dc:creator>martin59</dc:creator>
      <dc:date>2010-08-16T13:43:08Z</dc:date>
    </item>
  </channel>
</rss>

