<?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: Re: Customize Sub-Totals in a Pivot Chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Customize-Sub-Totals-in-a-Pivot-Chart/m-p/701078#M253081</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use SecondaryDimensionality() like in attached qvw.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Sep 2014 17:23:29 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2014-09-15T17:23:29Z</dc:date>
    <item>
      <title>Customize Sub-Totals in a Pivot Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Customize-Sub-Totals-in-a-Pivot-Chart/m-p/701070#M253073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a pivot chart that has several dimension (year/month/region/state) and two measures (Sales/Units).&amp;nbsp; The measures are set to a toggle where when SALES is selected from the toggle filter - only the sales figures show - pivoted by month.&amp;nbsp; Similarly, when Units is selected in a toggle filter, only the UNITS display - pivoted by month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The challenge is&amp;nbsp; to define the sub-total calculation.&amp;nbsp; When Sales is displayed - the subtotal formula should be set to SUM.&amp;nbsp; When UNITS are displayed, the sub-total formula should be set to AVERAGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks.&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 14:58:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Customize-Sub-Totals-in-a-Pivot-Chart/m-p/701070#M253073</guid>
      <dc:creator />
      <dc:date>2014-09-15T14:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: Customize Sub-Totals in a Pivot Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Customize-Sub-Totals-in-a-Pivot-Chart/m-p/701071#M253074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tom ! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you using a data model field or a variable to store the 'toggle' ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you just need an expression like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (&amp;nbsp;&amp;nbsp; &amp;lt;..toggle...&amp;gt; = 'Sales' ,&amp;nbsp; sum(Sales),&amp;nbsp; if (&amp;nbsp;&amp;nbsp; &amp;lt;..toggle...&amp;gt; = 'Units'&amp;nbsp; ,sum(Units) ) )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if you are doing other things in the expression that require a more fine tuned example can you post the current expression or the qvw ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Jonny Poole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 15:09:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Customize-Sub-Totals-in-a-Pivot-Chart/m-p/701071#M253074</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-09-15T15:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Customize Sub-Totals in a Pivot Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Customize-Sub-Totals-in-a-Pivot-Chart/m-p/701072#M253075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using a Set Analysis statement to sum the Sales figures…..otherwise your logic is similar to what I have&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas Berard | PMO Consultant | Global Technology, RAD-Americas Planning &amp;amp; Effectiveness |&amp;lt;https://team.amer.mymetlife.com/Teams/bmosecure/default.aspx&amp;gt;&lt;/P&gt;&lt;P&gt;Tel: 401-827-2867 | Cell: 401-556-0239 | Email: tberard@metlife.com&amp;lt;mailto:tberard@metlife.com&amp;gt;&lt;/P&gt;&lt;P&gt;To submit Service Requests click here for Assist&amp;lt;https://team.amer.mymetlife.com/Teams/IBITPMO/Web%20Part%20Page%20Library/SN%20in%20Connect.aspx?PageView=Shared&amp;amp;InitialTabId=Ribbon.WebPartPage&amp;amp;VisibilityContext=WSSWebPartPage&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 15:15:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Customize-Sub-Totals-in-a-Pivot-Chart/m-p/701072#M253075</guid>
      <dc:creator />
      <dc:date>2014-09-15T15:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: Customize Sub-Totals in a Pivot Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Customize-Sub-Totals-in-a-Pivot-Chart/m-p/701073#M253076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok the approach&amp;nbsp; SHOULD still work. IE:&amp;nbsp;&amp;nbsp; if the toggle has sales selected then the entire expression below will be used including any SET ANALYSIS statements in the sum( )&amp;nbsp; expression for sales .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;if (&amp;nbsp;&amp;nbsp; &amp;lt;..toggle...&amp;gt; = 'Sales' ,&amp;nbsp; sum( {SETSTATEMENT} Sales),&amp;nbsp; if (&amp;nbsp;&amp;nbsp; &amp;lt;..toggle...&amp;gt; = 'Units'&amp;nbsp; ,sum(Units) ) )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;do you see an issue ? &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 15:18:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Customize-Sub-Totals-in-a-Pivot-Chart/m-p/701073#M253076</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-09-15T15:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: Customize Sub-Totals in a Pivot Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Customize-Sub-Totals-in-a-Pivot-Chart/m-p/701074#M253077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is the logic I have and it works.  My issue is that the user wants to see a sub-total calculation but that the formula varies dependent on the toggle.  When it is set to Sales – it should be a SUM; when it is set to Units – it should calculate the AVG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas Berard | PMO Consultant | Global Technology, RAD-Americas Planning &amp;amp; Effectiveness |&amp;lt;https://team.amer.mymetlife.com/Teams/bmosecure/default.aspx&amp;gt;&lt;/P&gt;&lt;P&gt;Tel: 401-827-2867 | Cell: 401-556-0239 | Email: tberard@metlife.com&amp;lt;mailto:tberard@metlife.com&amp;gt;&lt;/P&gt;&lt;P&gt;To submit Service Requests click here for Assist&amp;lt;https://team.amer.mymetlife.com/Teams/IBITPMO/Web%20Part%20Page%20Library/SN%20in%20Connect.aspx?PageView=Shared&amp;amp;InitialTabId=Ribbon.WebPartPage&amp;amp;VisibilityContext=WSSWebPartPage&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 15:22:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Customize-Sub-Totals-in-a-Pivot-Chart/m-p/701074#M253077</guid>
      <dc:creator />
      <dc:date>2014-09-15T15:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: Customize Sub-Totals in a Pivot Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Customize-Sub-Totals-in-a-Pivot-Chart/m-p/701075#M253078</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;Take a look at the attached app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JV&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 15:24:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Customize-Sub-Totals-in-a-Pivot-Chart/m-p/701075#M253078</guid>
      <dc:creator>jvitantonio</dc:creator>
      <dc:date>2014-09-15T15:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: Customize Sub-Totals in a Pivot Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Customize-Sub-Totals-in-a-Pivot-Chart/m-p/701076#M253079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;got it... missed the need for average in the post. my oversight. good solution below.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 15:26:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Customize-Sub-Totals-in-a-Pivot-Chart/m-p/701076#M253079</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-09-15T15:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: Customize Sub-Totals in a Pivot Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Customize-Sub-Totals-in-a-Pivot-Chart/m-p/701077#M253080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Closer….&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The total number for the UNITS for the month should be the sum or all the units for the Month.  However, the Sub-Total in the pivot should be the AVG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution you had assumed that there was an average of all of the detail records.  I added a line to your inline data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my result. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would want to see a Subtotal AVG of 13.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas Berard | PMO Consultant | Global Technology, RAD-Americas Planning &amp;amp; Effectiveness |&amp;lt;https://team.amer.mymetlife.com/Teams/bmosecure/default.aspx&amp;gt;&lt;/P&gt;&lt;P&gt;Tel: 401-827-2867 | Cell: 401-556-0239 | Email: tberard@metlife.com&amp;lt;mailto:tberard@metlife.com&amp;gt;&lt;/P&gt;&lt;P&gt;To submit Service Requests click here for Assist&amp;lt;https://team.amer.mymetlife.com/Teams/IBITPMO/Web%20Part%20Page%20Library/SN%20in%20Connect.aspx?PageView=Shared&amp;amp;InitialTabId=Ribbon.WebPartPage&amp;amp;VisibilityContext=WSSWebPartPage&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 17:14:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Customize-Sub-Totals-in-a-Pivot-Chart/m-p/701077#M253080</guid>
      <dc:creator />
      <dc:date>2014-09-15T17:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Customize Sub-Totals in a Pivot Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Customize-Sub-Totals-in-a-Pivot-Chart/m-p/701078#M253081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use SecondaryDimensionality() like in attached qvw.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 17:23:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Customize-Sub-Totals-in-a-Pivot-Chart/m-p/701078#M253081</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-09-15T17:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Customize Sub-Totals in a Pivot Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Customize-Sub-Totals-in-a-Pivot-Chart/m-p/701079#M253082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i dont see this working as planned&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 20:03:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Customize-Sub-Totals-in-a-Pivot-Chart/m-p/701079#M253082</guid>
      <dc:creator />
      <dc:date>2014-09-15T20:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Customize Sub-Totals in a Pivot Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Customize-Sub-Totals-in-a-Pivot-Chart/m-p/701080#M253083</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;Here's the app updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JV&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 08:40:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Customize-Sub-Totals-in-a-Pivot-Chart/m-p/701080#M253083</guid>
      <dc:creator>jvitantonio</dc:creator>
      <dc:date>2014-09-16T08:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: Customize Sub-Totals in a Pivot Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Customize-Sub-Totals-in-a-Pivot-Chart/m-p/701081#M253084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Close!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the display I am looking for.  The Sub-Total across Rows (2014-15.67) is perfect.  I am looking for the column sub-totals to be the Total (month 1 – should be 37).&lt;/P&gt;&lt;P&gt;Thanks.  Marking the response as correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas Berard | PMO Consultant | Global Technology, RAD-Americas Planning &amp;amp; Effectiveness |&amp;lt;https://team.amer.mymetlife.com/Teams/bmosecure/default.aspx&amp;gt;&lt;/P&gt;&lt;P&gt;Tel: 401-827-2867 | Cell: 401-556-0239 | Email: tberard@metlife.com&amp;lt;mailto:tberard@metlife.com&amp;gt;&lt;/P&gt;&lt;P&gt;To submit Service Requests click here for Assist&amp;lt;https://team.amer.mymetlife.com/Teams/IBITPMO/Web%20Part%20Page%20Library/SN%20in%20Connect.aspx?PageView=Shared&amp;amp;InitialTabId=Ribbon.WebPartPage&amp;amp;VisibilityContext=WSSWebPartPage&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 10:54:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Customize-Sub-Totals-in-a-Pivot-Chart/m-p/701081#M253084</guid>
      <dc:creator />
      <dc:date>2014-09-16T10:54:45Z</dc:date>
    </item>
  </channel>
</rss>

