<?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 How to do a weighted average in a Pivot Table that has 3 Total Lines In the Rows? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-do-a-weighted-average-in-a-Pivot-Table-that-has-3-Total/m-p/2059200#M86956</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I've hit a roadblock and looking for some help.&amp;nbsp; Here are the details:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;I am using a Vizlib Pivot table&lt;/LI&gt;
&lt;LI&gt;My rows consist of a Category, Brand, and Wholesaler.&lt;/LI&gt;
&lt;LI&gt;My Columns consist of Version (Actual or Forecast), and Weeks&lt;/LI&gt;
&lt;LI&gt;The category, brand, and wholesaler can be collapsed or expanded based on the nature of the pivot table.&amp;nbsp; When subcategory is expanded, the list of brands are displayed.&amp;nbsp; When a brand is expanded, the wholesalers are displayed.&lt;/LI&gt;
&lt;LI&gt;There is a Total line at the subcategory level, brand level, and wholesaler level if everything is completed expanded.&lt;/LI&gt;
&lt;LI&gt;Rather than summing up, I would like the total lines to be the weighted average.&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;So for example the Total Line for Wholesalers would be the weighted average across the wholesalers (in that expanded brand) for a given week (column).&amp;nbsp; The Total line for Brand would be the weighted average of the various brands (in that expanded catgegory) for a given week.&amp;nbsp; The total line for Category would be the weighted average of the various categories for a given week.&lt;/P&gt;
&lt;P&gt;If a weighted average is not possible, then an average would be fine too.&lt;/P&gt;
&lt;P&gt;Any help or guidance would be appreciated, especially from&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;
&lt;P&gt;Mike&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Apr 2023 14:46:25 GMT</pubDate>
    <dc:creator>MikeOBX</dc:creator>
    <dc:date>2023-04-11T14:46:25Z</dc:date>
    <item>
      <title>How to do a weighted average in a Pivot Table that has 3 Total Lines In the Rows?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-do-a-weighted-average-in-a-Pivot-Table-that-has-3-Total/m-p/2059200#M86956</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I've hit a roadblock and looking for some help.&amp;nbsp; Here are the details:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;I am using a Vizlib Pivot table&lt;/LI&gt;
&lt;LI&gt;My rows consist of a Category, Brand, and Wholesaler.&lt;/LI&gt;
&lt;LI&gt;My Columns consist of Version (Actual or Forecast), and Weeks&lt;/LI&gt;
&lt;LI&gt;The category, brand, and wholesaler can be collapsed or expanded based on the nature of the pivot table.&amp;nbsp; When subcategory is expanded, the list of brands are displayed.&amp;nbsp; When a brand is expanded, the wholesalers are displayed.&lt;/LI&gt;
&lt;LI&gt;There is a Total line at the subcategory level, brand level, and wholesaler level if everything is completed expanded.&lt;/LI&gt;
&lt;LI&gt;Rather than summing up, I would like the total lines to be the weighted average.&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;So for example the Total Line for Wholesalers would be the weighted average across the wholesalers (in that expanded brand) for a given week (column).&amp;nbsp; The Total line for Brand would be the weighted average of the various brands (in that expanded catgegory) for a given week.&amp;nbsp; The total line for Category would be the weighted average of the various categories for a given week.&lt;/P&gt;
&lt;P&gt;If a weighted average is not possible, then an average would be fine too.&lt;/P&gt;
&lt;P&gt;Any help or guidance would be appreciated, especially from&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;
&lt;P&gt;Mike&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2023 14:46:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-do-a-weighted-average-in-a-Pivot-Table-that-has-3-Total/m-p/2059200#M86956</guid>
      <dc:creator>MikeOBX</dc:creator>
      <dc:date>2023-04-11T14:46:25Z</dc:date>
    </item>
  </channel>
</rss>

