<?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 caluclate in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/avg-caluclate/m-p/69905#M780927</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva; color: #000000;"&gt;Hi ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva; color: #000000;"&gt;Use below code&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva; color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva; color: #000000;"&gt;Date(Today(),'DD-MM-YYYY') - Date(Opendate,'DD-MM-YYYY') . Using this you will get the no'of days.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva; color: #000000;"&gt;If you want to calculate in Years , Using the the IF condition you can able to retrive the year bucket.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva; color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva; color: #000000;"&gt;Like IF(&lt;SPAN style="color: #000000; font-family: 'trebuchet ms', geneva; font-size: 13.3333px;"&gt;Date(Today(),'DD-MM-YYYY') - Date(Opendate,'DD-MM-YYYY')) &amp;lt;= 365 ,'&amp;lt; 1 Year',&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13.3333px; font-family: 'trebuchet ms', geneva;"&gt;IF(&lt;SPAN style="color: #000000; font-family: 'trebuchet ms', geneva; font-size: 13.3333px;"&gt;Date(Today(),'DD-MM-YYYY') - Date(Opendate,'DD-MM-YYYY')) &amp;gt; 365 and &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13.3333px; font-family: 'trebuchet ms', geneva;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(&lt;SPAN style="color: #000000; font-family: 'trebuchet ms', geneva; font-size: 13.3333px;"&gt;Date(Today(),'DD-MM-YYYY') - Date(Opendate,'DD-MM-YYYY')) &amp;lt;= 730 , '1 to 2 Years' )&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13.3333px; font-family: 'trebuchet ms', geneva;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #000000; font-size: 13.3333px; font-family: 'trebuchet ms', geneva;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #000000; font-size: 13.3333px; font-family: 'trebuchet ms', geneva;"&gt;Thanks,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva; color: #000000;"&gt;&lt;STRONG&gt;Venkata Sreekanth&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Mar 2018 07:42:25 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-03-22T07:42:25Z</dc:date>
    <item>
      <title>avg caluclate</title>
      <link>https://community.qlik.com/t5/QlikView/avg-caluclate/m-p/69902#M780924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I want to calculate the avg&amp;nbsp; age in&amp;nbsp; years&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [gauge chart]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my date field&amp;nbsp; =&amp;nbsp; opendate&amp;nbsp;&amp;nbsp;&amp;nbsp; format [DD-MM-YYYY]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to calculate this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/avg-caluclate/m-p/69902#M780924</guid>
      <dc:creator>soniasweety</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: avg caluclate</title>
      <link>https://community.qlik.com/t5/QlikView/avg-caluclate/m-p/69903#M780925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe just&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= Avg( Age( Today(), opendate))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2018 07:29:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/avg-caluclate/m-p/69903#M780925</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2018-03-22T07:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: avg caluclate</title>
      <link>https://community.qlik.com/t5/QlikView/avg-caluclate/m-p/69904#M780926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks but I need to calculate&amp;nbsp; the&amp;nbsp; today-Mydate&amp;nbsp;&amp;nbsp;&amp;nbsp; [ as avg days]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;avgdays is not required ?&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2018 07:35:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/avg-caluclate/m-p/69904#M780926</guid>
      <dc:creator>soniasweety</dc:creator>
      <dc:date>2018-03-22T07:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: avg caluclate</title>
      <link>https://community.qlik.com/t5/QlikView/avg-caluclate/m-p/69905#M780927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva; color: #000000;"&gt;Hi ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva; color: #000000;"&gt;Use below code&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva; color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva; color: #000000;"&gt;Date(Today(),'DD-MM-YYYY') - Date(Opendate,'DD-MM-YYYY') . Using this you will get the no'of days.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva; color: #000000;"&gt;If you want to calculate in Years , Using the the IF condition you can able to retrive the year bucket.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva; color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva; color: #000000;"&gt;Like IF(&lt;SPAN style="color: #000000; font-family: 'trebuchet ms', geneva; font-size: 13.3333px;"&gt;Date(Today(),'DD-MM-YYYY') - Date(Opendate,'DD-MM-YYYY')) &amp;lt;= 365 ,'&amp;lt; 1 Year',&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13.3333px; font-family: 'trebuchet ms', geneva;"&gt;IF(&lt;SPAN style="color: #000000; font-family: 'trebuchet ms', geneva; font-size: 13.3333px;"&gt;Date(Today(),'DD-MM-YYYY') - Date(Opendate,'DD-MM-YYYY')) &amp;gt; 365 and &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13.3333px; font-family: 'trebuchet ms', geneva;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(&lt;SPAN style="color: #000000; font-family: 'trebuchet ms', geneva; font-size: 13.3333px;"&gt;Date(Today(),'DD-MM-YYYY') - Date(Opendate,'DD-MM-YYYY')) &amp;lt;= 730 , '1 to 2 Years' )&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13.3333px; font-family: 'trebuchet ms', geneva;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #000000; font-size: 13.3333px; font-family: 'trebuchet ms', geneva;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #000000; font-size: 13.3333px; font-family: 'trebuchet ms', geneva;"&gt;Thanks,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva; color: #000000;"&gt;&lt;STRONG&gt;Venkata Sreekanth&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2018 07:42:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/avg-caluclate/m-p/69905#M780927</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-22T07:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: avg caluclate</title>
      <link>https://community.qlik.com/t5/QlikView/avg-caluclate/m-p/69906#M780928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks its fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I don't want to create if condition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to use as measure directly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can I use like below?&lt;/P&gt;&lt;P&gt;Now I got the no of days &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so&amp;nbsp;&amp;nbsp; =&amp;nbsp; avg(Numfday)/365&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2018 07:54:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/avg-caluclate/m-p/69906#M780928</guid>
      <dc:creator>soniasweety</dc:creator>
      <dc:date>2018-03-22T07:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: avg caluclate</title>
      <link>https://community.qlik.com/t5/QlikView/avg-caluclate/m-p/69907#M780929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sony, you can calculate the age in script with Age() function, and use an Avg() of this new field to calculate the average.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In front-end can be done with aggr()&lt;/P&gt;&lt;P&gt;Avg(Aggr(Age(Today(), opendate), FieldToIterateRecords) //IdEmployee/IdPatient...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2018 16:56:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/avg-caluclate/m-p/69907#M780929</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2018-03-22T16:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: avg caluclate</title>
      <link>https://community.qlik.com/t5/QlikView/avg-caluclate/m-p/69908#M780930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please post some sample values and your expected result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2018 21:09:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/avg-caluclate/m-p/69908#M780930</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2018-03-22T21:09:54Z</dc:date>
    </item>
  </channel>
</rss>

