<?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 Change pivot dimension totals label when current dimension is a sub-dimension of a parent in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Change-pivot-dimension-totals-label-when-current-dimension-is-a/m-p/2089557#M89304</link>
    <description>&lt;P&gt;I have a pivot table in Qlik Sense with several expandable dimensions. Each dimension has the totals column calcualtion activated.&lt;/P&gt;
&lt;P&gt;I want the total label to state one thing for a dimension (e.g. a formula that results in "totals january-december" based on months in current selections), but I want the totals label to be something different (e.g. simply "Total") if the dimension is an expanded dimension, i.e. not the first dimension in the chart.&lt;/P&gt;
&lt;P&gt;I could probably achieve this with GetObjectDimension() if the dimension was a row expansion, but in my case I am expanding columns and I cant be sure how many row dimensions there are in the current layout of the pivot table (as I have asked about in a related but &lt;A href="https://community.qlik.com/t5/App-Development/Get-first-column-dimension-of-pivot-table/td-p/2089552" target="_self"&gt;separate question&lt;/A&gt;).&lt;/P&gt;
&lt;P&gt;Example when my "month" dimension is the first dimension:&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD height="25px"&gt;&lt;STRONG&gt;Totals (jan-feb)&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD height="25px"&gt;january&lt;/TD&gt;
&lt;TD height="25px"&gt;february&lt;/TD&gt;
&lt;TD height="25px"&gt;march&lt;/TD&gt;
&lt;TD height="25px"&gt;april&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="25px"&gt;value&lt;/TD&gt;
&lt;TD height="25px"&gt;&lt;STRONG&gt;600&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD height="25px"&gt;200&lt;/TD&gt;
&lt;TD height="25px"&gt;150&lt;/TD&gt;
&lt;TD height="25px"&gt;200&lt;/TD&gt;
&lt;TD height="25px"&gt;50&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If month is not the first dimension (in this case "quarter" is first), I want to change the totals label like this:&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;Q1&lt;/TD&gt;
&lt;TD&gt;Q1&lt;/TD&gt;
&lt;TD&gt;Q1&lt;/TD&gt;
&lt;TD&gt;Q1&lt;/TD&gt;
&lt;TD&gt;Q2&lt;/TD&gt;
&lt;TD&gt;Q2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&lt;STRONG&gt;Total Q1&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD&gt;january&lt;/TD&gt;
&lt;TD&gt;february&lt;/TD&gt;
&lt;TD&gt;march&lt;/TD&gt;
&lt;TD&gt;&lt;STRONG&gt;Total Q2&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD&gt;april&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&lt;STRONG&gt;550&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD&gt;200&lt;/TD&gt;
&lt;TD&gt;150&lt;/TD&gt;
&lt;TD&gt;200&lt;/TD&gt;
&lt;TD&gt;&lt;STRONG&gt;50&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD&gt;50&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it possible?&lt;/P&gt;</description>
    <pubDate>Fri, 30 Jun 2023 13:34:07 GMT</pubDate>
    <dc:creator>henrikalmen</dc:creator>
    <dc:date>2023-06-30T13:34:07Z</dc:date>
    <item>
      <title>Change pivot dimension totals label when current dimension is a sub-dimension of a parent</title>
      <link>https://community.qlik.com/t5/App-Development/Change-pivot-dimension-totals-label-when-current-dimension-is-a/m-p/2089557#M89304</link>
      <description>&lt;P&gt;I have a pivot table in Qlik Sense with several expandable dimensions. Each dimension has the totals column calcualtion activated.&lt;/P&gt;
&lt;P&gt;I want the total label to state one thing for a dimension (e.g. a formula that results in "totals january-december" based on months in current selections), but I want the totals label to be something different (e.g. simply "Total") if the dimension is an expanded dimension, i.e. not the first dimension in the chart.&lt;/P&gt;
&lt;P&gt;I could probably achieve this with GetObjectDimension() if the dimension was a row expansion, but in my case I am expanding columns and I cant be sure how many row dimensions there are in the current layout of the pivot table (as I have asked about in a related but &lt;A href="https://community.qlik.com/t5/App-Development/Get-first-column-dimension-of-pivot-table/td-p/2089552" target="_self"&gt;separate question&lt;/A&gt;).&lt;/P&gt;
&lt;P&gt;Example when my "month" dimension is the first dimension:&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD height="25px"&gt;&lt;STRONG&gt;Totals (jan-feb)&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD height="25px"&gt;january&lt;/TD&gt;
&lt;TD height="25px"&gt;february&lt;/TD&gt;
&lt;TD height="25px"&gt;march&lt;/TD&gt;
&lt;TD height="25px"&gt;april&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="25px"&gt;value&lt;/TD&gt;
&lt;TD height="25px"&gt;&lt;STRONG&gt;600&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD height="25px"&gt;200&lt;/TD&gt;
&lt;TD height="25px"&gt;150&lt;/TD&gt;
&lt;TD height="25px"&gt;200&lt;/TD&gt;
&lt;TD height="25px"&gt;50&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If month is not the first dimension (in this case "quarter" is first), I want to change the totals label like this:&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;Q1&lt;/TD&gt;
&lt;TD&gt;Q1&lt;/TD&gt;
&lt;TD&gt;Q1&lt;/TD&gt;
&lt;TD&gt;Q1&lt;/TD&gt;
&lt;TD&gt;Q2&lt;/TD&gt;
&lt;TD&gt;Q2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&lt;STRONG&gt;Total Q1&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD&gt;january&lt;/TD&gt;
&lt;TD&gt;february&lt;/TD&gt;
&lt;TD&gt;march&lt;/TD&gt;
&lt;TD&gt;&lt;STRONG&gt;Total Q2&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD&gt;april&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&lt;STRONG&gt;550&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD&gt;200&lt;/TD&gt;
&lt;TD&gt;150&lt;/TD&gt;
&lt;TD&gt;200&lt;/TD&gt;
&lt;TD&gt;&lt;STRONG&gt;50&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD&gt;50&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it possible?&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 13:34:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Change-pivot-dimension-totals-label-when-current-dimension-is-a/m-p/2089557#M89304</guid>
      <dc:creator>henrikalmen</dc:creator>
      <dc:date>2023-06-30T13:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: Change pivot dimension totals label when current dimension is a sub-dimension of a parent</title>
      <link>https://community.qlik.com/t5/App-Development/Change-pivot-dimension-totals-label-when-current-dimension-is-a/m-p/2089725#M89318</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;
&lt;P&gt;if(GetCurrentFieldIndex() = 0, 'Totals (january-december)', 'Total')&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Jul 2023 10:25:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Change-pivot-dimension-totals-label-when-current-dimension-is-a/m-p/2089725#M89318</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2023-07-01T10:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Change pivot dimension totals label when current dimension is a sub-dimension of a parent</title>
      <link>https://community.qlik.com/t5/App-Development/Change-pivot-dimension-totals-label-when-current-dimension-is-a/m-p/2089753#M89322</link>
      <description>&lt;P&gt;Hi Try using &lt;STRONG&gt;GetFieldSelections(), &lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;in label as &lt;EM&gt;'Totals ('&amp;amp;GetFieldSelections([month])&amp;amp;')'&lt;/EM&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In pivot you may need to move the dimension top to enable the Totals you can apply the same for all the dimensions as is.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jul 2023 02:23:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Change-pivot-dimension-totals-label-when-current-dimension-is-a/m-p/2089753#M89322</guid>
      <dc:creator>Chintam</dc:creator>
      <dc:date>2023-07-02T02:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: Change pivot dimension totals label when current dimension is a sub-dimension of a parent</title>
      <link>https://community.qlik.com/t5/App-Development/Change-pivot-dimension-totals-label-when-current-dimension-is-a/m-p/2090035#M89360</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/49432"&gt;@Chanty4u&lt;/a&gt; GetCurrentFIeldIndex() doesn't exist. GetCurrentField() is a QlikView function that gets the current dimension of a cyclic group and that is not my issue (also, I'm on Qlik Sense).&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2023 12:59:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Change-pivot-dimension-totals-label-when-current-dimension-is-a/m-p/2090035#M89360</guid>
      <dc:creator>henrikalmen</dc:creator>
      <dc:date>2023-07-03T12:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: Change pivot dimension totals label when current dimension is a sub-dimension of a parent</title>
      <link>https://community.qlik.com/t5/App-Development/Change-pivot-dimension-totals-label-when-current-dimension-is-a/m-p/2090036#M89361</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/196922"&gt;@Chintam&lt;/a&gt; GetFieldSelections() retrieves selected values, but that does not relate to my question at all. My issue is that I want to determine if the dimension is the top column dimension or if it isn't, regardless of any selections.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2023 13:03:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Change-pivot-dimension-totals-label-when-current-dimension-is-a/m-p/2090036#M89361</guid>
      <dc:creator>henrikalmen</dc:creator>
      <dc:date>2023-07-03T13:03:33Z</dc:date>
    </item>
  </channel>
</rss>

