<?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: How does Avg() handle strings in script? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-does-Avg-handle-strings-in-script/m-p/16012#M605104</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you both for answering. This was what I expected, just wanted to check if I was right!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Apr 2018 13:50:31 GMT</pubDate>
    <dc:creator>stefan87</dc:creator>
    <dc:date>2018-04-25T13:50:31Z</dc:date>
    <item>
      <title>How does Avg() handle strings in script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-does-Avg-handle-strings-in-script/m-p/16009#M605101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Qlik Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using an Avg() function in my script, trying to calculate the average value of some numeric values (e.g. sales amounts).&lt;/P&gt;&lt;P&gt;However, some of my data contain text like 'N/A' which should not be taken into account when calculating the average value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my question is: Does Avg() ignore these values or does it sum them up as zero which will have an impact on the average?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2018 09:07:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-does-Avg-handle-strings-in-script/m-p/16009#M605101</guid>
      <dc:creator>stefan87</dc:creator>
      <dc:date>2018-04-25T09:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: How does Avg() handle strings in script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-does-Avg-handle-strings-in-script/m-p/16010#M605102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AFAIK and based on testing &lt;STRONG&gt;=RangeAvg(1, 'NA', 2) = 1.5&lt;/STRONG&gt;... Avg will ignore NA and find the average based on the numbers only.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2018 12:45:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-does-Avg-handle-strings-in-script/m-p/16010#M605102</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-04-25T12:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: How does Avg() handle strings in script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-does-Avg-handle-strings-in-script/m-p/16011#M605103</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; There is no impact, If the field (sales amounts) has 'N/A' value.It doesn't affect the sales amount avg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2018 12:47:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-does-Avg-handle-strings-in-script/m-p/16011#M605103</guid>
      <dc:creator>keerthika</dc:creator>
      <dc:date>2018-04-25T12:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: How does Avg() handle strings in script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-does-Avg-handle-strings-in-script/m-p/16012#M605104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you both for answering. This was what I expected, just wanted to check if I was right!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2018 13:50:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-does-Avg-handle-strings-in-script/m-p/16012#M605104</guid>
      <dc:creator>stefan87</dc:creator>
      <dc:date>2018-04-25T13:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: How does Avg() handle strings in script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-does-Avg-handle-strings-in-script/m-p/16013#M605105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;unfortunately, it impacts avg but not sum. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you have strings or nulls, and using aggregations, qlik will consider them as "Zero" while performing aggregation. &lt;/P&gt;&lt;P&gt;So for Sum, you may not see any effect. but for Avg() I think it will effect. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2018 18:24:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-does-Avg-handle-strings-in-script/m-p/16013#M605105</guid>
      <dc:creator>naveenkumarchin</dc:creator>
      <dc:date>2018-04-27T18:24:44Z</dc:date>
    </item>
  </channel>
</rss>

