<?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: No Data to Display when using Avg() in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/No-Data-to-Display-when-using-Avg/m-p/598963#M1107188</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But sorry, it seems like they don't work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Mar 2014 05:48:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-03-20T05:48:49Z</dc:date>
    <item>
      <title>No Data to Display when using Avg()</title>
      <link>https://community.qlik.com/t5/QlikView/No-Data-to-Display-when-using-Avg/m-p/598960#M1107185</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 have a variable called vTotalTenure. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I developed this variable base on a pivot table with DateDimension on top and RowID on the right (Both are unique).&lt;/P&gt;&lt;P&gt;Basically it is a difference between two dates and divided by 365. The selection of the dates are base on some IF functions.&lt;/P&gt;&lt;P&gt;Some of them are numbers and some of them are NULL().&lt;/P&gt;&lt;P&gt;I add vTotalTenure in the expression as =$(vTotalTenure)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then I am trying to calculate the average of vTotalTenure in a line chart with DateDimension at the bottom.&lt;/P&gt;&lt;P&gt;But when I typed in the following in the expression, it said 'No data to display':&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=Avg($(vTotalTenure))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me with this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 05:32:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/No-Data-to-Display-when-using-Avg/m-p/598960#M1107185</guid>
      <dc:creator />
      <dc:date>2014-03-20T05:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: No Data to Display when using Avg()</title>
      <link>https://community.qlik.com/t5/QlikView/No-Data-to-Display-when-using-Avg/m-p/598961#M1107186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; text-decoration: underline;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;$(=Avg(vTotalTenure))'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; text-decoration: underline;"&gt;or this&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="color: #0000ff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; text-decoration: underline;"&gt;=Avg('&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;$(vTotalTenure)')&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="color: #0000ff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; text-decoration: underline;"&gt;=Avg('&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;$(=vTotalTenure)')&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 05:40:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/No-Data-to-Display-when-using-Avg/m-p/598961#M1107186</guid>
      <dc:creator>er_mohit</dc:creator>
      <dc:date>2014-03-20T05:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: No Data to Display when using Avg()</title>
      <link>https://community.qlik.com/t5/QlikView/No-Data-to-Display-when-using-Avg/m-p/598962#M1107187</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;Does the definition of &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;vTotalTenure&lt;/SPAN&gt; contain any aggregation functions (such as Sum, Count, Avg or stats aggregate functions)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so, you will need&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; +Avg(Aggr(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;$(vTotalTenure)&lt;/SPAN&gt;, dim1, dim2...))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where dim1,... represents &lt;EM&gt;all&lt;/EM&gt; the dimensions used in your chart/table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 05:43:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/No-Data-to-Display-when-using-Avg/m-p/598962#M1107187</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-03-20T05:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: No Data to Display when using Avg()</title>
      <link>https://community.qlik.com/t5/QlikView/No-Data-to-Display-when-using-Avg/m-p/598963#M1107188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But sorry, it seems like they don't work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 05:48:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/No-Data-to-Display-when-using-Avg/m-p/598963#M1107188</guid>
      <dc:creator />
      <dc:date>2014-03-20T05:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: No Data to Display when using Avg()</title>
      <link>https://community.qlik.com/t5/QlikView/No-Data-to-Display-when-using-Avg/m-p/598964#M1107189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your advice but I don't have any aggregation functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 05:51:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/No-Data-to-Display-when-using-Avg/m-p/598964#M1107189</guid>
      <dc:creator />
      <dc:date>2014-03-20T05:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: No Data to Display when using Avg()</title>
      <link>https://community.qlik.com/t5/QlikView/No-Data-to-Display-when-using-Avg/m-p/598965#M1107190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is what's in my vTotalTenure variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(IF(IDNumber_ST&amp;lt;&amp;gt;NextIDNumber_ST,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;IF(Status_ST='A',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(MonthEnd(Dimension_HC)&amp;gt;HireDate_ST,MonthEnd(Dimension_HC)-HireDate_ST,NULL()),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NULL()&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;,NULL()&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;/365&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe this would help you understand my question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 05:55:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/No-Data-to-Display-when-using-Avg/m-p/598965#M1107190</guid>
      <dc:creator />
      <dc:date>2014-03-20T05:55:06Z</dc:date>
    </item>
  </channel>
</rss>

