<?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: Make an avg on 2 dates with a distinct variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Make-an-avg-on-2-dates-with-a-distinct-variable/m-p/423122#M1153281</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: navy; font-size: 10pt; font-family: Arial;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy; font-size: 10pt; font-family: Arial;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #000080; font-family: Arial;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; color: navy; font-family: Arial;"&gt;Thanks for your help, but your suggestion doesn’t help. Do you have another proposal?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #000080; font-family: Arial;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; color: navy; font-family: Arial;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #000080; font-family: Arial;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; color: navy; font-family: Arial;"&gt;I haven’t used aggr before – I will look into that&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #000080; font-family: Arial;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; color: navy; font-family: Arial;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; color: #000080; font-family: Times New Roman;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 12pt; color: navy;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #000080; font-family: Arial;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; color: navy; font-family: Arial;"&gt;Heine&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Apr 2013 07:36:23 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-04-09T07:36:23Z</dc:date>
    <item>
      <title>Make an avg on 2 dates with a distinct variable</title>
      <link>https://community.qlik.com/t5/QlikView/Make-an-avg-on-2-dates-with-a-distinct-variable/m-p/423120#M1153279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm new to qlikview and have a problem with a chart. I want to show the average time between 2 dates and use this expression:&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 _jivemacro_uid_13650836261634843" jivemacro_uid="_13650836261634843"&gt;&lt;P&gt;round(Avg((end_date+end_time)-(start_date+start_time)),0.01) &lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works fine, but my problem is that I want to add: distinct(case_id)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;How to do that?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Apr 2013 13:54:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Make-an-avg-on-2-dates-with-a-distinct-variable/m-p/423120#M1153279</guid>
      <dc:creator />
      <dc:date>2013-04-04T13:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: Make an avg on 2 dates with a distinct variable</title>
      <link>https://community.qlik.com/t5/QlikView/Make-an-avg-on-2-dates-with-a-distinct-variable/m-p/423121#M1153280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Have you looked at the AGGR function? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; My thinking goes something like: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; aggr( sum(round(Avg((end_date+end_time)-(start_date+start_time)),0.01)), case_id)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;br&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Apr 2013 12:37:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Make-an-avg-on-2-dates-with-a-distinct-variable/m-p/423121#M1153280</guid>
      <dc:creator>pauljohansson</dc:creator>
      <dc:date>2013-04-05T12:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: Make an avg on 2 dates with a distinct variable</title>
      <link>https://community.qlik.com/t5/QlikView/Make-an-avg-on-2-dates-with-a-distinct-variable/m-p/423122#M1153281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: navy; font-size: 10pt; font-family: Arial;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy; font-size: 10pt; font-family: Arial;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #000080; font-family: Arial;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; color: navy; font-family: Arial;"&gt;Thanks for your help, but your suggestion doesn’t help. Do you have another proposal?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #000080; font-family: Arial;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; color: navy; font-family: Arial;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #000080; font-family: Arial;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; color: navy; font-family: Arial;"&gt;I haven’t used aggr before – I will look into that&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #000080; font-family: Arial;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; color: navy; font-family: Arial;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; color: #000080; font-family: Times New Roman;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 12pt; color: navy;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #000080; font-family: Arial;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; color: navy; font-family: Arial;"&gt;Heine&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 07:36:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Make-an-avg-on-2-dates-with-a-distinct-variable/m-p/423122#M1153281</guid>
      <dc:creator />
      <dc:date>2013-04-09T07:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: Make an avg on 2 dates with a distinct variable</title>
      <link>https://community.qlik.com/t5/QlikView/Make-an-avg-on-2-dates-with-a-distinct-variable/m-p/423123#M1153282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: navy; font-size: 10pt; font-family: Arial;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #000080; font-family: Arial;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; color: navy; font-family: Arial;"&gt;Thanks for your help, but your suggestion doesn’t help. Do you have another proposal?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #000080; font-family: Arial;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; color: navy; font-family: Arial;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #000080; font-family: Arial;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; color: navy; font-family: Arial;"&gt;I haven’t used aggr before – I will look into that&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #000080; font-family: Arial;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; color: navy; font-family: Arial;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; color: #000080; font-family: Times New Roman;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 12pt; color: navy;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #000080; font-family: Arial;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; color: navy; font-family: Arial;"&gt;Heine&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 07:44:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Make-an-avg-on-2-dates-with-a-distinct-variable/m-p/423123#M1153282</guid>
      <dc:creator />
      <dc:date>2013-04-09T07:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: Make an avg on 2 dates with a distinct variable</title>
      <link>https://community.qlik.com/t5/QlikView/Make-an-avg-on-2-dates-with-a-distinct-variable/m-p/423124#M1153283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: navy; font-size: 10pt; font-family: Arial;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #000080; font-family: Arial;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; color: navy; font-family: Arial;"&gt;Thanks for your help, but your suggestion doesn’t help. Do you have another proposal?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #000080; font-family: Arial;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; color: navy; font-family: Arial;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #000080; font-family: Arial;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; color: navy; font-family: Arial;"&gt;I haven’t used aggr before – I will look into that&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #000080; font-family: Arial;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; color: navy; font-family: Arial;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; color: #000080; font-family: Times New Roman;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 12pt; color: navy;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #000080; font-family: Arial;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; color: navy; font-family: Arial;"&gt;Heine&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 09:15:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Make-an-avg-on-2-dates-with-a-distinct-variable/m-p/423124#M1153283</guid>
      <dc:creator />
      <dc:date>2013-04-09T09:15:29Z</dc:date>
    </item>
  </channel>
</rss>

