<?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: Average using multiple conditions in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Average-using-multiple-conditions/m-p/1598745#M63154</link>
    <description>&lt;P&gt;I think the syntax should be something like&amp;nbsp; - Avg({&amp;lt;YearField = {$(PriorFY)}, &lt;SPAN&gt;EvaluationTitle={'Instructional Evaluation'}&lt;/SPAN&gt;&amp;gt;}Response_Value)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;assuming that you have PriorFY stored in a variable.&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jul 2019 15:44:22 GMT</pubDate>
    <dc:creator>neelamsaroha157</dc:creator>
    <dc:date>2019-07-03T15:44:22Z</dc:date>
    <item>
      <title>Average using multiple conditions</title>
      <link>https://community.qlik.com/t5/App-Development/Average-using-multiple-conditions/m-p/1598743#M63153</link>
      <description>&lt;P&gt;I would like to calculate the average Evaluation Response IF the following conditions are met:&lt;/P&gt;&lt;P&gt;1. The Evaluation Title = 'Instructional Evaluation'&lt;/P&gt;&lt;P&gt;2. The Prior Fiscal Year= the user selection&lt;/P&gt;&lt;P&gt;Current formula is:&amp;nbsp;&lt;/P&gt;&lt;P&gt;avg({&amp;lt;EvaluationTitle={'Instructional Evaluation'}&amp;gt;} {&amp;lt;PriorFY&amp;gt;} response_value)&lt;/P&gt;&lt;P&gt;The issue is that the calculated average is higher than it should be. It calculates avg 4.91, when it should be 4.82&lt;/P&gt;&lt;P&gt;If I move the {&amp;lt;PriorFY&amp;gt;} to the beginning of the statement, the calculated average is even higher (4.97).&lt;/P&gt;&lt;P&gt;avg({&amp;lt;PriorFY&amp;gt;}{&amp;lt;EvaluationTitle={'Instructional Evaluation'}&amp;gt;} response_value)&lt;/P&gt;&lt;P&gt;I must be missing brackets, parentheses, or something...&lt;/P&gt;&lt;P&gt;What can you suggest?&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Troy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Apr 2021 08:00:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Average-using-multiple-conditions/m-p/1598743#M63153</guid>
      <dc:creator>tgriffin</dc:creator>
      <dc:date>2021-04-02T08:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: Average using multiple conditions</title>
      <link>https://community.qlik.com/t5/App-Development/Average-using-multiple-conditions/m-p/1598745#M63154</link>
      <description>&lt;P&gt;I think the syntax should be something like&amp;nbsp; - Avg({&amp;lt;YearField = {$(PriorFY)}, &lt;SPAN&gt;EvaluationTitle={'Instructional Evaluation'}&lt;/SPAN&gt;&amp;gt;}Response_Value)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;assuming that you have PriorFY stored in a variable.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 15:44:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Average-using-multiple-conditions/m-p/1598745#M63154</guid>
      <dc:creator>neelamsaroha157</dc:creator>
      <dc:date>2019-07-03T15:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: Average using multiple conditions</title>
      <link>https://community.qlik.com/t5/App-Development/Average-using-multiple-conditions/m-p/1599898#M63155</link>
      <description>&lt;P&gt;Many thanks Neelamsaroha157&lt;/P&gt;&lt;P&gt;-- with a little tweaking, I was able to get the correct results.&lt;/P&gt;&lt;P&gt;Here is the final working formula:&lt;/P&gt;&lt;P&gt;Avg({&amp;lt;FY=PriorFY, EvaluationTitle={'Instructional Evaluation'}&amp;gt;}response_value)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2019 12:58:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Average-using-multiple-conditions/m-p/1599898#M63155</guid>
      <dc:creator>tgriffin</dc:creator>
      <dc:date>2019-07-08T12:58:51Z</dc:date>
    </item>
  </channel>
</rss>

