<?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: Avg of Date difference in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Avg-of-Date-difference/m-p/1663740#M729683</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I think a date-expression in a set analysis doesn't word so try to convert the date in script.&lt;/P&gt;&lt;P&gt;also, if you want to calculate an average, be sure that there is only one combination of the two dates.&lt;/P&gt;&lt;P&gt;It is better to calculate the difference in script and do the average in expression.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Wed, 08 Jan 2020 14:52:51 GMT</pubDate>
    <dc:creator>martinpohl</dc:creator>
    <dc:date>2020-01-08T14:52:51Z</dc:date>
    <item>
      <title>Avg of Date difference</title>
      <link>https://community.qlik.com/t5/QlikView/Avg-of-Date-difference/m-p/1663707#M729675</link>
      <description>&lt;P&gt;I have been trying to work out average&amp;nbsp;of the&amp;nbsp;difference between 2 dates and the expression doesn’t seem to work, I thought probably&amp;nbsp; its because the dates are in different formats. so I converted&amp;nbsp;the text&amp;nbsp;one&amp;nbsp;to date in my expression but this still doesn’t work. Do you know what I am doing wrong?&lt;/P&gt;&lt;P&gt;Avg({&amp;lt;CapabilityStatus_Name={'Confirmed'},[Job Group]={'HCP Non Doc'}&amp;gt;}Date(Date#([EmployeeCapabilities_ApprovedDate],'YYYYMMDD'),'DD/MM/YYYY')-[Emp Training Start Date])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Avg-of-Date-difference/m-p/1663707#M729675</guid>
      <dc:creator>Sk1</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Avg of Date difference</title>
      <link>https://community.qlik.com/t5/QlikView/Avg-of-Date-difference/m-p/1663723#M729676</link>
      <description>&lt;P&gt;You might try calculated the date difference in script&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2020 14:27:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Avg-of-Date-difference/m-p/1663723#M729676</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2020-01-08T14:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Avg of Date difference</title>
      <link>https://community.qlik.com/t5/QlikView/Avg-of-Date-difference/m-p/1663732#M729677</link>
      <description>&lt;P&gt;what is the error?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2020 14:34:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Avg-of-Date-difference/m-p/1663732#M729677</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2020-01-08T14:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: Avg of Date difference</title>
      <link>https://community.qlik.com/t5/QlikView/Avg-of-Date-difference/m-p/1663734#M729678</link>
      <description>Doesn't give me any output. The results are blank&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Jan 2020 14:36:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Avg-of-Date-difference/m-p/1663734#M729678</guid>
      <dc:creator>Sk1</dc:creator>
      <dc:date>2020-01-08T14:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: Avg of Date difference</title>
      <link>https://community.qlik.com/t5/QlikView/Avg-of-Date-difference/m-p/1663735#M729679</link>
      <description>&lt;P&gt;But when I replace Date(Date#([EmployeeCapabilities_ApprovedDate],'YYYYMMDD'),'DD/MM/YYYY') with todays date Today(), I get a value&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2020 14:40:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Avg-of-Date-difference/m-p/1663735#M729679</guid>
      <dc:creator>Sk1</dc:creator>
      <dc:date>2020-01-08T14:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: Avg of Date difference</title>
      <link>https://community.qlik.com/t5/QlikView/Avg-of-Date-difference/m-p/1663738#M729681</link>
      <description>&lt;P&gt;i would say check the column type of&amp;nbsp;&lt;SPAN&gt;EmployeeCapabilities_ApprovedDate in data model viewer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and make sure it is a date field which loading from script itself rather than on the expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and as Mwoolf suggested. perform the difference in the script if possible and then take average of that difference field&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2020 14:44:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Avg-of-Date-difference/m-p/1663738#M729681</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2020-01-08T14:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: Avg of Date difference</title>
      <link>https://community.qlik.com/t5/QlikView/Avg-of-Date-difference/m-p/1663740#M729683</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I think a date-expression in a set analysis doesn't word so try to convert the date in script.&lt;/P&gt;&lt;P&gt;also, if you want to calculate an average, be sure that there is only one combination of the two dates.&lt;/P&gt;&lt;P&gt;It is better to calculate the difference in script and do the average in expression.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2020 14:52:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Avg-of-Date-difference/m-p/1663740#M729683</guid>
      <dc:creator>martinpohl</dc:creator>
      <dc:date>2020-01-08T14:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: Avg of Date difference</title>
      <link>https://community.qlik.com/t5/QlikView/Avg-of-Date-difference/m-p/1672718#M729686</link>
      <description>&lt;P&gt;Just going to toss out the following Design Blog post too, it might give you some further options possibly, not sure.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Average-Which-average/ba-p/1466654" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Average-Which-average/ba-p/1466654&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Here is one on dates not working too:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Why-don-t-my-dates-work/ba-p/1465849" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Why-don-t-my-dates-work/ba-p/1465849&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If you want to dig further as there are some other date posts too, use the following base link for the area:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 21:51:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Avg-of-Date-difference/m-p/1672718#M729686</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-02-05T21:51:02Z</dc:date>
    </item>
  </channel>
</rss>

