<?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 and Aggr formulas in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Average-and-Aggr-formulas/m-p/1564592#M41114</link>
    <description>Thank you so much ! As usual you are the best.. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;</description>
    <pubDate>Wed, 03 Apr 2019 13:22:07 GMT</pubDate>
    <dc:creator>mikecherry</dc:creator>
    <dc:date>2019-04-03T13:22:07Z</dc:date>
    <item>
      <title>Average and Aggr formulas</title>
      <link>https://community.qlik.com/t5/App-Development/Average-and-Aggr-formulas/m-p/1564493#M41108</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to calculate an Average in one line but, because I am filtering and at the same time avoiding that filter the AGGR formula doesn't work properly .&lt;/P&gt;&lt;P&gt;This is my actual table and&amp;nbsp; the expression is:&lt;/P&gt;&lt;P&gt;Called:&lt;/P&gt;&lt;P&gt;-SUM({&amp;lt;Data_Type={"Trans"},Fund_Name,Benchmark_Key={"$(&lt;STRONG&gt;vBenchmarkField&lt;/STRONG&gt;)"}, Data_Measure={"Cost"}, Date_ID={"&amp;lt;=$(vReportDate)"}&amp;gt;} $(vMeasure))&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;Data_Type={"Trans"},Fund_Name,Benchmark_Key={"$(&lt;STRONG&gt;vBenchmarkField&lt;/STRONG&gt;)"}, Data_Measure={"Commitment"}, Date_ID={"&amp;lt;=$(vReportDate)"}&amp;gt;} $(vMeasure))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;vBenchmarkField=&amp;nbsp;Concat(DISTINCT Benchmark_Key, ', ')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Becnhmark.png" style="width: 636px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/9348i2F4B3CB66D7EB9D7/image-size/large?v=v2&amp;amp;px=999" role="button" title="Becnhmark.png" alt="Becnhmark.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to calculate the AVG of these funds removing the Fund_Name column having basically one line showing the Average Called %.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;avg(aggr( SUM({&amp;lt;Data_Type={"Trans"},Fund_Name,Benchmark_Key={"$(vBenchmarkField)"}, Data_Measure={"Dist"}, Date_ID={"&amp;lt;=$(vReportDate)"}&amp;gt;} $(vMeasure))&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;-SUM({&amp;lt;Data_Type={"Trans"},Fund_Name,Benchmark_Key={"$(vBenchmarkField)"}, Data_Measure={"Cost"}, Date_ID={"&amp;lt;=$(vReportDate)"}&amp;gt;} $(vMeasure)),Benchmark_Key,Fund_Name))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but as soon I put the Fund_Name in the aggr formula is basically overriding my "Fund_Name=" in set analysis and showing me only the value for that fund&amp;nbsp; I have selected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts ?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 06:10:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Average-and-Aggr-formulas/m-p/1564493#M41108</guid>
      <dc:creator>mikecherry</dc:creator>
      <dc:date>2024-11-16T06:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: Average and Aggr formulas</title>
      <link>https://community.qlik.com/t5/App-Development/Average-and-Aggr-formulas/m-p/1564516#M41109</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;PRE&gt;Avg(&lt;FONT color="#FF0000"&gt;{&amp;lt;Fund_Name&amp;gt;}&lt;/FONT&gt; Aggr(
Sum({&amp;lt;Data_Type = {"Trans"}, Fund_Name, Benchmark_Key = {"$(vBenchmarkField)"}, Data_Measure = {"Dist"}, Date_ID = {"&amp;lt;=$(vReportDate)"}&amp;gt;} $(vMeasure))
/
-Sum({&amp;lt;Data_Type = {"Trans"}, Fund_Name, Benchmark_Key ={"$(vBenchmarkField)"}, Data_Measure = {"Cost"}, Date_ID = {"&amp;lt;=$(vReportDate)"}&amp;gt;} $(vMeasure))
, Benchmark_Key, Fund_Name))&lt;/PRE&gt;</description>
      <pubDate>Wed, 03 Apr 2019 11:55:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Average-and-Aggr-formulas/m-p/1564516#M41109</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-04-03T11:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Average and Aggr formulas</title>
      <link>https://community.qlik.com/t5/App-Development/Average-and-Aggr-formulas/m-p/1564592#M41114</link>
      <description>Thank you so much ! As usual you are the best.. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;</description>
      <pubDate>Wed, 03 Apr 2019 13:22:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Average-and-Aggr-formulas/m-p/1564592#M41114</guid>
      <dc:creator>mikecherry</dc:creator>
      <dc:date>2019-04-03T13:22:07Z</dc:date>
    </item>
  </channel>
</rss>

