<?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: Set Analysis with weighted average in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-weighted-average/m-p/941853#M324728</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Manish.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to also exclude selections for a certain field ( in my case )?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Sep 2015 18:15:23 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-09-25T18:15:23Z</dc:date>
    <item>
      <title>Set Analysis with weighted average</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-weighted-average/m-p/941851#M324726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to script a set analysis using the calculation of weighted standard deviation as my base expression and ignoring the selection of Qtr Yr. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The calculation for wtd avg is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum([Yr Denominator Value]*[Yr Measure Value])/sum([Yr Denominator Value])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The yearly values are not calculated in qlikview itself&amp;nbsp; but is aggregated into tables in our ETL process.&amp;nbsp; So, I typically use ONLY&amp;nbsp; as the function when calling on those fields in set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm assuming the expression should look something like:&lt;/P&gt;&lt;P&gt;=ONLY({&amp;lt;[Qtr Yr]=&amp;gt;}&lt;SPAN style="font-size: 13.3333px;"&gt;sum([Yr Denominator Value]*[Yr Measure Value])/sum([Yr Denominator Value]))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but this is obviously not correct.&amp;nbsp; Any direction on how to tackle this would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2015 14:23:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-weighted-average/m-p/941851#M324726</guid>
      <dc:creator />
      <dc:date>2015-09-25T14:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with weighted average</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-weighted-average/m-p/941852#M324727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be &lt;/P&gt;&lt;P&gt;Avg(Aggr(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sum([Yr Denominator Value]*[Yr Measure Value])/sum([Yr Denominator Value]),YourYearFIeld))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2015 14:49:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-weighted-average/m-p/941852#M324727</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-09-25T14:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with weighted average</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-weighted-average/m-p/941853#M324728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Manish.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to also exclude selections for a certain field ( in my case )?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2015 18:15:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-weighted-average/m-p/941853#M324728</guid>
      <dc:creator />
      <dc:date>2015-09-25T18:15:23Z</dc:date>
    </item>
  </channel>
</rss>

