<?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 Issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Average-Issue/m-p/1204796#M387342</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Sum(Amount) / Sum(Aggr(if(Match(Sum(Amount),0),1,0),Month)) Try this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Oct 2016 10:29:10 GMT</pubDate>
    <dc:creator>lakshmikandh</dc:creator>
    <dc:date>2016-10-06T10:29:10Z</dc:date>
    <item>
      <title>Average Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Average-Issue/m-p/1204795#M387341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-weight: normal; font-style: normal; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; text-align: left; text-indent: 0px;"&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: normal; font-style: normal; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; text-align: left; text-indent: 0px;"&gt;I have an issue on Averages when am calculating averages for last 4 months , if there is a data in last 4 months it is dividing by 4 and giving correct result but if i don't have data in 2 months out of 4 ,so the requirement says it should divide by 2 not 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: normal; font-style: normal; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; text-align: left; text-indent: 0px;"&gt;How can we achieve this ., can anybody help me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2016 10:16:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-Issue/m-p/1204795#M387341</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-06T10:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Average Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Average-Issue/m-p/1204796#M387342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Sum(Amount) / Sum(Aggr(if(Match(Sum(Amount),0),1,0),Month)) Try this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2016 10:29:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-Issue/m-p/1204796#M387342</guid>
      <dc:creator>lakshmikandh</dc:creator>
      <dc:date>2016-10-06T10:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Average Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Average-Issue/m-p/1204797#M387343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is that not how the averages in QV work already? However, if for some reason (for example, the "no data" is zeroes rather than nulls or missing values) you can calculate the average by dividing the sum by the count (and filter the count to give the correct number of months).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2016 10:35:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-Issue/m-p/1204797#M387343</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-10-06T10:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: Average Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Average-Issue/m-p/1204798#M387344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if there is no data , it represents NDR (No data received) like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(WILDMATCH(MINSTRING({$&amp;lt;%dim_Data_Type={'LIQUIDITY'},%dim_Category={"INITIAL MARGIN (RESERVES)"},%dim_Metric_Name={"RESERVES"},%dim_Business_Month_End_Date={"$(=Date(Date#(vCal_MonthEndSelected,'DD MMM YY'),'DD MMM YY'))"}&amp;gt;}%dim_Metric_Value),'*N/A*','*NDR*')=0, &lt;/P&gt;&lt;P&gt;PICK(MATCH(ONLY({$&amp;lt;%dim_Data_Type={'LIQUIDITY'},%dim_Category={"INITIAL MARGIN (RESERVES)"},%dim_Metric_Name={"RESERVES"},%dim_Business_Month_End_Date={"$(=Date(Date#(vCal_MonthEndSelected,'DD MMM YY'),'DD MMM YY'))"}&amp;gt;}[Liquidity Currency]),'GBP','EUR','USD'),'£ ',' € ','$ ')&amp;amp;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;%dim_Data_Type={'LIQUIDITY'},%dim_Category={"INITIAL MARGIN (RESERVES)"},%dim_Metric_Name={"RESERVES"},%dim_Business_Month_End_Date={"$(=Date(Date#(vCal_MonthEndSelected,'DD MMM YY'),'DD MMM YY'))"}&amp;gt;}%dim_Metric_Value)*1000000000,&lt;/P&gt;&lt;P&gt;IF(WILDMATCH(MAXSTRING({$&amp;lt;%dim_Data_Type={'LIQUIDITY'},%dim_Category={"INITIAL MARGIN (RESERVES)"},%dim_Metric_Name={"RESERVES"},%dim_Business_Month_End_Date={"$(=Date(Date#(vCal_MonthEndSelected,'DD MMM YY'),'DD MMM YY'))"}&amp;gt;}%dim_Metric_Value),'*NDR*')&amp;gt;0, 'NDR','N/A'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;Average&lt;/STRONG&gt; --&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;%dim_Data_Type={'LIQUIDITY'},%dim_Category={"INITIAL MARGIN (RESERVES)"},%dim_Sub_Category={"INITIAL MARGIN (RESERVES)"},%dim_Metric_Name={"RESERVES"},%dim_Business_Month_End_Date={"&amp;lt;=$(=Date(Date#(vCal_MonthEndSelected,'DD MMM YY'),'DD MMM YY')) &amp;gt;=$(=Date(Addmonths(Date#(vCal_MonthEndSelected,'DD MMM YY'),(vChartOption_BUL_TAB01_NoOfPeriod-1)*(IF(vChartOption_BUL_TAB01_PeriodType='[Business Qtr End Date]',-3,-1))),'DD MMM YY'))"}&amp;gt;}%dim_Metric_Value)*1000000000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /&amp;nbsp; (vChartOption_BUL_TAB01_NoOfPeriod - COUNT(&lt;/P&gt;&lt;P&gt;IF(AGGR(ONLY({$&amp;lt;%dim_Data_Type={"LIQUIDITY"}&amp;gt;} %dim_Metric_Value),[Business Month End Date])='NDR',&lt;/P&gt;&lt;P&gt;[Business Month End Date])))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;not working correctly ,for this exp am getting correct result when we have data in all months &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2016 11:11:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-Issue/m-p/1204798#M387344</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-06T11:11:14Z</dc:date>
    </item>
  </channel>
</rss>

