<?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 Average Minimum in Expression Calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Average-Minimum-in-Expression-Calculation/m-p/281330#M1177239</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; i think you might need to use the AGGR function to first get all the update_dates before then getting the min value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;avg((Min(aggr(update_date))-add_date)*24)&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;not tried it myself but hope it helps&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Lewis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Feb 2012 13:42:55 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-02-14T13:42:55Z</dc:date>
    <item>
      <title>Average Minimum in Expression Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Average-Minimum-in-Expression-Calculation/m-p/281329#M1177238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two date fields, "update_date" and "add_date". There are multiple update dates for each corresponding customer, but only one add date, as shown:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;add_date&lt;BR /&gt;11/7/2011 9:56:21 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;update_date&lt;BR /&gt;11/15/2011 6:12:16 PM&lt;BR /&gt;11/15/2011 4:46:01 PM&lt;BR /&gt;11/15/2011 3:19:17 PM&lt;BR /&gt;11/15/2011 1:07:36 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I need to do in a chart (via an expression named "Approval") is calculate the average difference between the earliest update date and the submit date. What I have now is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;avg((update_date-add_date)*24)&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This doesn't give me what I need, though. What I need is (theoretically) the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;avg((Min(update_date)-add_date)*24)&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While that checks out in Qlikview, that makes the Approve expression disappear from both the chart and the legend altogether. I tried using "Max" instead of&amp;nbsp; "Min" in the expression in the hopes that it would reappear at all&amp;nbsp; but no luck. I'm hoping this is just a syntax error; any help is appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 13:34:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-Minimum-in-Expression-Calculation/m-p/281329#M1177238</guid>
      <dc:creator />
      <dc:date>2012-02-14T13:34:16Z</dc:date>
    </item>
    <item>
      <title>Average Minimum in Expression Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Average-Minimum-in-Expression-Calculation/m-p/281330#M1177239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; i think you might need to use the AGGR function to first get all the update_dates before then getting the min value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;avg((Min(aggr(update_date))-add_date)*24)&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;not tried it myself but hope it helps&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Lewis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 13:42:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-Minimum-in-Expression-Calculation/m-p/281330#M1177239</guid>
      <dc:creator />
      <dc:date>2012-02-14T13:42:55Z</dc:date>
    </item>
    <item>
      <title>Average Minimum in Expression Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Average-Minimum-in-Expression-Calculation/m-p/281331#M1177240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; You mean this type of solution?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = &lt;CODE class="jive-code"&gt;avg(aggr(interval(update_date-add_date,'DD'),update_date))&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 13:44:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-Minimum-in-Expression-Calculation/m-p/281331#M1177240</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-02-14T13:44:22Z</dc:date>
    </item>
  </channel>
</rss>

