<?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 Formula help needed - why does &amp;quot;avg.&amp;quot; do so? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Formula-help-needed-why-does-quot-avg-quot-do-so/m-p/540014#M483395</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 very stupid question:&lt;/P&gt;&lt;P&gt;- I have the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;gt;&amp;gt;&amp;nbsp; = avg({$&amp;lt;%Datum = {'$(v_last_workday_Date)'}&amp;gt;} ((BpF_FS+BpF_SS)/2))&amp;nbsp; &amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;- What this is supposed to do is clear - %Datum is any day, v_last_workday is (yesterday or, if it's a Monday, Friday) and I have two values, BpF_FS and&amp;nbsp; BpF_SS.&lt;/P&gt;&lt;P&gt;- This is the final version (after approx. 30min) and it works - but if I understand the avg fct correctly, I should not be needing that "/ 2"? There are only two values on that specific day, so the avg should automatically be (the sum, divided by two)?&lt;/P&gt;&lt;P&gt;I just don't understand this. Can somebody please explain that to me?&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Jul 2013 09:47:51 GMT</pubDate>
    <dc:creator>datanibbler</dc:creator>
    <dc:date>2013-07-04T09:47:51Z</dc:date>
    <item>
      <title>Formula help needed - why does "avg." do so?</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-help-needed-why-does-quot-avg-quot-do-so/m-p/540014#M483395</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 very stupid question:&lt;/P&gt;&lt;P&gt;- I have the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;gt;&amp;gt;&amp;nbsp; = avg({$&amp;lt;%Datum = {'$(v_last_workday_Date)'}&amp;gt;} ((BpF_FS+BpF_SS)/2))&amp;nbsp; &amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;- What this is supposed to do is clear - %Datum is any day, v_last_workday is (yesterday or, if it's a Monday, Friday) and I have two values, BpF_FS and&amp;nbsp; BpF_SS.&lt;/P&gt;&lt;P&gt;- This is the final version (after approx. 30min) and it works - but if I understand the avg fct correctly, I should not be needing that "/ 2"? There are only two values on that specific day, so the avg should automatically be (the sum, divided by two)?&lt;/P&gt;&lt;P&gt;I just don't understand this. Can somebody please explain that to me?&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jul 2013 09:47:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-help-needed-why-does-quot-avg-quot-do-so/m-p/540014#M483395</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2013-07-04T09:47:51Z</dc:date>
    </item>
  </channel>
</rss>

