<?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: Compare to average in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Compare-to-average/m-p/1886797#M73060</link>
    <description>&lt;P&gt;You could try to use aggr(), but instead of aggregating on a fixed dimension you can fetch it dynamically based on which alternative dimension you are using.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think the correct&amp;nbsp; function to use is GetObjectField() or GetObjectDimension() . Like this.&lt;/P&gt;
&lt;P&gt;Aggr(avg(...), [$(&lt;EM&gt;&lt;SPAN class="hljs-variable"&gt;=GetObjectField(0))])&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 29 Jan 2022 22:29:50 GMT</pubDate>
    <dc:creator>Vegar</dc:creator>
    <dc:date>2022-01-29T22:29:50Z</dc:date>
    <item>
      <title>Compare to average</title>
      <link>https://community.qlik.com/t5/App-Development/Compare-to-average/m-p/1886796#M73059</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;To explain my question&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ill write in a wrong&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Way and please correct me.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Avg(if(day_ssupplied&lt;/P&gt;
&lt;P&gt;&amp;lt; avg(day_ssupplied),&lt;/P&gt;
&lt;P&gt;day_ssupplied))&lt;/P&gt;
&lt;P&gt;I want to used that&lt;/P&gt;
&lt;P&gt;Expression as master item&lt;/P&gt;
&lt;P&gt;So the inner avg should be flexible to any dimension it will stand with.&lt;/P&gt;
&lt;P&gt;I tried aggr but it's not flexible with dimension.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank&lt;/P&gt;
&lt;P&gt;Dt&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Jan 2022 21:51:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Compare-to-average/m-p/1886796#M73059</guid>
      <dc:creator>dtbit123</dc:creator>
      <dc:date>2022-01-29T21:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Compare to average</title>
      <link>https://community.qlik.com/t5/App-Development/Compare-to-average/m-p/1886797#M73060</link>
      <description>&lt;P&gt;You could try to use aggr(), but instead of aggregating on a fixed dimension you can fetch it dynamically based on which alternative dimension you are using.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think the correct&amp;nbsp; function to use is GetObjectField() or GetObjectDimension() . Like this.&lt;/P&gt;
&lt;P&gt;Aggr(avg(...), [$(&lt;EM&gt;&lt;SPAN class="hljs-variable"&gt;=GetObjectField(0))])&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Jan 2022 22:29:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Compare-to-average/m-p/1886797#M73060</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2022-01-29T22:29:50Z</dc:date>
    </item>
  </channel>
</rss>

