<?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 Average calculation for Nested IF in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Average-calculation-for-Nested-IF/m-p/1978254#M1220877</link>
    <description>&lt;P&gt;I am using nested if condition to calculate the measure in the front end and it is working fine for Monthyear dimension in pivot table.I need to calculate the average value for quarteryear .For ex- If Jan 2022 has 1 ,Feb 2022 has 0.75 and mar 2022 has 1 for below expression then quarter value should be (1+0.75+1)/3..Any help would be appreciated&lt;/P&gt;
&lt;P&gt;if(&lt;BR /&gt;Sum(A) = '0' and Sum(B) &amp;gt;= '0',1,if(Sum(A) = '0' and Sum(B) &amp;lt; '0',0,&lt;BR /&gt;if(&lt;BR /&gt;((Sum({$&amp;lt;Month_year={'10-2022','1-2023','4-2023','7-2023','10-2023'}&amp;gt;}B)+Sum(C)+Sum(D)+Sum(E)+Sum(F))/(Sum(A))) &amp;lt; 0,0,if(&lt;BR /&gt;((Sum({$&amp;lt;Month_year={'10-2022','1-2023','4-2023','7-2023','10-2023'}&amp;gt;}B)+Sum(C)+Sum(D)+Sum(E)+Sum(F))/(Sum(A))) &amp;gt; 1,1,&lt;BR /&gt;((Sum({$&amp;lt;Month_year={'10-2022','1-2023','4-2023','7-2023','10-2023'}&amp;gt;}B)+Sum(C)+Sum(D)+Sum(E)+Sum(F))/(Sum(A)))))))&lt;/P&gt;</description>
    <pubDate>Wed, 07 Sep 2022 16:17:18 GMT</pubDate>
    <dc:creator>arusiva89</dc:creator>
    <dc:date>2022-09-07T16:17:18Z</dc:date>
    <item>
      <title>Average calculation for Nested IF</title>
      <link>https://community.qlik.com/t5/QlikView/Average-calculation-for-Nested-IF/m-p/1978254#M1220877</link>
      <description>&lt;P&gt;I am using nested if condition to calculate the measure in the front end and it is working fine for Monthyear dimension in pivot table.I need to calculate the average value for quarteryear .For ex- If Jan 2022 has 1 ,Feb 2022 has 0.75 and mar 2022 has 1 for below expression then quarter value should be (1+0.75+1)/3..Any help would be appreciated&lt;/P&gt;
&lt;P&gt;if(&lt;BR /&gt;Sum(A) = '0' and Sum(B) &amp;gt;= '0',1,if(Sum(A) = '0' and Sum(B) &amp;lt; '0',0,&lt;BR /&gt;if(&lt;BR /&gt;((Sum({$&amp;lt;Month_year={'10-2022','1-2023','4-2023','7-2023','10-2023'}&amp;gt;}B)+Sum(C)+Sum(D)+Sum(E)+Sum(F))/(Sum(A))) &amp;lt; 0,0,if(&lt;BR /&gt;((Sum({$&amp;lt;Month_year={'10-2022','1-2023','4-2023','7-2023','10-2023'}&amp;gt;}B)+Sum(C)+Sum(D)+Sum(E)+Sum(F))/(Sum(A))) &amp;gt; 1,1,&lt;BR /&gt;((Sum({$&amp;lt;Month_year={'10-2022','1-2023','4-2023','7-2023','10-2023'}&amp;gt;}B)+Sum(C)+Sum(D)+Sum(E)+Sum(F))/(Sum(A)))))))&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 16:17:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-calculation-for-Nested-IF/m-p/1978254#M1220877</guid>
      <dc:creator>arusiva89</dc:creator>
      <dc:date>2022-09-07T16:17:18Z</dc:date>
    </item>
  </channel>
</rss>

