<?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 do I set the average expression? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-do-I-set-the-average-expression/m-p/776345#M275229</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nazri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try replacing the expression by this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;avg&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Data&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-={'NA'}&amp;gt;} Data)/count({$&amp;lt;Data-={'NA'}&amp;gt;} Rotation),Questions,Rotation)) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cesar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Jan 2015 15:18:46 GMT</pubDate>
    <dc:creator>cesaraccardi</dc:creator>
    <dc:date>2015-01-13T15:18:46Z</dc:date>
    <item>
      <title>How do I set the average expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-set-the-average-expression/m-p/776344#M275228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to set the GME average to change when I selected a different year.&lt;/P&gt;&lt;P&gt;Somehow, it seems like my data average is taking from both years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sheet(Program)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer to Sheet (GME Level Avg Score) for reference to the GME Average&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently using this expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Avg({1&amp;lt;[Rotation]&amp;gt;}Aggr(((SUM ({1&amp;lt;Data-={'NA'}&amp;gt;} ( Data))/&lt;/P&gt;&lt;P&gt;COUNT({1&amp;lt;Data-={"NA"}&amp;gt;}Rotation)))&lt;/P&gt;&lt;P&gt;, Questions,Rotation))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have appended my qvw file for your reference. &lt;/P&gt;&lt;P&gt;Can anybody help? Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2015 05:52:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-set-the-average-expression/m-p/776344#M275228</guid>
      <dc:creator />
      <dc:date>2015-01-13T05:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set the average expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-set-the-average-expression/m-p/776345#M275229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nazri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try replacing the expression by this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;avg&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Data&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-={'NA'}&amp;gt;} Data)/count({$&amp;lt;Data-={'NA'}&amp;gt;} Rotation),Questions,Rotation)) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cesar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2015 15:18:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-set-the-average-expression/m-p/776345#M275229</guid>
      <dc:creator>cesaraccardi</dc:creator>
      <dc:date>2015-01-13T15:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set the average expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-set-the-average-expression/m-p/776346#M275230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cesar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help. I have tried using the expression you suggested. However, my GME average score is incorrect.&lt;/P&gt;&lt;P&gt;For Year 2013 it should be as the following scores in the snapshot.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/75248_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I were to click on the any of the programs in the ACAD year of 2013,&amp;nbsp; typically the programs score should change but the GME Average would remain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/75251_pastedImage_4.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;The Red Line (GME Average) scores should be as the following scores as in my first snapshot.&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 00:44:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-set-the-average-expression/m-p/776346#M275230</guid>
      <dc:creator />
      <dc:date>2015-01-14T00:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set the average expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-set-the-average-expression/m-p/776347#M275231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nazri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I understand the issue now. See updated expression below, it is ignoring the selections of the field Program, so if you have any other fields that should be ignored you will have to add them onto the set analysis expression. Also the Year is being 'linked' using the function P().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;avg&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;P&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Data&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-={'NA'},Program=&amp;gt;} Data)/count({$&amp;lt;Data-={'NA'},Program=&amp;gt;} Rotation),Questions,Rotation,Year)) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cesar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 13:58:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-set-the-average-expression/m-p/776347#M275231</guid>
      <dc:creator>cesaraccardi</dc:creator>
      <dc:date>2015-01-14T13:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set the average expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-set-the-average-expression/m-p/776348#M275232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Cesar. It works.&lt;/P&gt;&lt;P&gt;Appreciate you help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2015 06:24:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-set-the-average-expression/m-p/776348#M275232</guid>
      <dc:creator />
      <dc:date>2015-01-15T06:24:10Z</dc:date>
    </item>
  </channel>
</rss>

