<?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: Weighted Average Set Analysis With Aggr in a Text Box in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Weighted-Average-Set-Analysis-With-Aggr-in-a-Text-Box/m-p/1665661#M50103</link>
    <description>&lt;P&gt;Try with below. Showing in text box use Aggr on dimension.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Aggr(Num(Num(Sum({$}{&amp;lt;Flag_Key = {"GRP"}&amp;gt;}[Spend]),Brand,Duration)/Num(Sum(Total &amp;lt;Brand&amp;gt;{$&amp;lt;Flag_Key = {"GRP"}&amp;gt;}[Spend]))*Duration),GRP)&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jan 2020 07:44:46 GMT</pubDate>
    <dc:creator>RUNIL</dc:creator>
    <dc:date>2020-01-15T07:44:46Z</dc:date>
    <item>
      <title>Weighted Average Set Analysis With Aggr in a Text Box</title>
      <link>https://community.qlik.com/t5/App-Development/Weighted-Average-Set-Analysis-With-Aggr-in-a-Text-Box/m-p/1665635#M50101</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I need to show the weighted average copy duration in a text box basis share of spend a brand has basis its&amp;nbsp; ad durations. The sample table is attached along is self explanatory which contains the steps to reach to a desired number in a text box. Please help me out how can i get this done.&lt;/P&gt;&lt;P&gt;I have reached to the point where i am getting the product of 'share of spend'&amp;nbsp; and duration in a table. Whereas, this has to be done in a text object. Below is the set analysis i have reached up till now.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Num(Num(Sum({$}{&amp;lt;Flag_Key = {"GRP"}&amp;gt;}[Spend]),Brand,Duration)/Num(Sum(Total &amp;lt;Brand&amp;gt;{$&amp;lt;Flag_Key = {"GRP"}&amp;gt;}[Spend]))*Duration)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SEt Analysis for Weighted Avg.png" style="width: 662px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/26853i4EEB204EE06F8973/image-size/large?v=v2&amp;amp;px=999" role="button" title="SEt Analysis for Weighted Avg.png" alt="SEt Analysis for Weighted Avg.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 21:38:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Weighted-Average-Set-Analysis-With-Aggr-in-a-Text-Box/m-p/1665635#M50101</guid>
      <dc:creator>owais_sarwar</dc:creator>
      <dc:date>2021-12-20T21:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: Weighted Average Set Analysis With Aggr in a Text Box</title>
      <link>https://community.qlik.com/t5/App-Development/Weighted-Average-Set-Analysis-With-Aggr-in-a-Text-Box/m-p/1665661#M50103</link>
      <description>&lt;P&gt;Try with below. Showing in text box use Aggr on dimension.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Aggr(Num(Num(Sum({$}{&amp;lt;Flag_Key = {"GRP"}&amp;gt;}[Spend]),Brand,Duration)/Num(Sum(Total &amp;lt;Brand&amp;gt;{$&amp;lt;Flag_Key = {"GRP"}&amp;gt;}[Spend]))*Duration),GRP)&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2020 07:44:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Weighted-Average-Set-Analysis-With-Aggr-in-a-Text-Box/m-p/1665661#M50103</guid>
      <dc:creator>RUNIL</dc:creator>
      <dc:date>2020-01-15T07:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: Weighted Average Set Analysis With Aggr in a Text Box</title>
      <link>https://community.qlik.com/t5/App-Development/Weighted-Average-Set-Analysis-With-Aggr-in-a-Text-Box/m-p/1666079#M50131</link>
      <description>&lt;P&gt;Hi Runil,&lt;/P&gt;&lt;P&gt;Thanks for your reply. I tried your set analysis, it didn't work. Just for your knowledge, 'GRP' is basically the 'flag key' for a data source.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2020 07:02:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Weighted-Average-Set-Analysis-With-Aggr-in-a-Text-Box/m-p/1666079#M50131</guid>
      <dc:creator>owais_sarwar</dc:creator>
      <dc:date>2020-01-16T07:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: Weighted Average Set Analysis With Aggr in a Text Box</title>
      <link>https://community.qlik.com/t5/App-Development/Weighted-Average-Set-Analysis-With-Aggr-in-a-Text-Box/m-p/1666096#M50134</link>
      <description>&lt;P&gt;Use your dimension instead of GRP. I think your dimension is Brand. It should come in Text box using by the Aggr.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2020 07:48:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Weighted-Average-Set-Analysis-With-Aggr-in-a-Text-Box/m-p/1666096#M50134</guid>
      <dc:creator>RUNIL</dc:creator>
      <dc:date>2020-01-16T07:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: Weighted Average Set Analysis With Aggr in a Text Box</title>
      <link>https://community.qlik.com/t5/App-Development/Weighted-Average-Set-Analysis-With-Aggr-in-a-Text-Box/m-p/1666112#M50135</link>
      <description>&lt;P&gt;Yeah i did try it (by replacing GRP with Brand) as this Indeed is the dimension. Unfortunately not working.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2020 08:49:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Weighted-Average-Set-Analysis-With-Aggr-in-a-Text-Box/m-p/1666112#M50135</guid>
      <dc:creator>owais_sarwar</dc:creator>
      <dc:date>2020-01-16T08:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: Weighted Average Set Analysis With Aggr in a Text Box</title>
      <link>https://community.qlik.com/t5/App-Development/Weighted-Average-Set-Analysis-With-Aggr-in-a-Text-Box/m-p/1666171#M50150</link>
      <description>&lt;P&gt;can you try below&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;=sum(aggr((Sum({&amp;lt;Flag_Key = {"GRP"}&amp;gt;}[Spend])/Sum(total &amp;lt;Brand&amp;gt;{&amp;lt;Flag_Key = {"GRP"}&amp;gt;}[Spend]))*Duration,Brand,Duration))&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 16 Jan 2020 11:12:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Weighted-Average-Set-Analysis-With-Aggr-in-a-Text-Box/m-p/1666171#M50150</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-01-16T11:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: Weighted Average Set Analysis With Aggr in a Text Box</title>
      <link>https://community.qlik.com/t5/App-Development/Weighted-Average-Set-Analysis-With-Aggr-in-a-Text-Box/m-p/1666211#M50158</link>
      <description>&lt;P&gt;Thank you for your help.. Still not done. Its is just showing 0 as an output. Can you please try it yourself by making a sample table in the same scenario in Qliksense or Qlikview whichever you have?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2020 12:25:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Weighted-Average-Set-Analysis-With-Aggr-in-a-Text-Box/m-p/1666211#M50158</guid>
      <dc:creator>owais_sarwar</dc:creator>
      <dc:date>2020-01-16T12:25:24Z</dc:date>
    </item>
  </channel>
</rss>

