<?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 Pivot table - colouring total rows without using Dimensionality? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Pivot-table-colouring-total-rows-without-using-Dimensionality/m-p/1725444#M55267</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've been asked to apply background colour to the Total and subtotal rows in a fully expanded pivot table.&lt;/P&gt;&lt;P&gt;Using Dimensionality() on the key dimension and measure fields, I can to get it to apply b/g colour to the word "Totals" in the Row Fields, as well as to the Value totals.&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;IF(Dimensionality()=0, RGB(223, 223, 230), IF(Dimensionality()=2, RGB(233, 230, 233), White()))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ideally, I'd like the colour to be applied to the whole row, commencing with the word "Totals" and including the blank cells at the top of the subsequent Row Fields. This built-in Excel design approximates what I mean:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 543px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/37021i406ECB4D9AB6414B/image-dimensions/543x373?v=v2" width="543" height="373" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Or better yet, with less shading:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.png" style="width: 536px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/37025i80FA9AD47684A325/image-dimensions/536x369?v=v2" width="536" height="369" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;More important than the specifics of the shading, though - if I change the order of the Row Fields (as a user may), or move a row field so it becomes a column field, the b/g colour is either lost altogether, or becomes incorrectly applied (unlike the Excel example). This seems to be because moving a field changes its dimensionality number.&lt;/P&gt;&lt;P&gt;So... is there any other way to do this?&lt;/P&gt;&lt;P&gt;I'm aiming to get the grand total row to be the darkest shade, the next field with a total row should be a medium shade and the last (right-most) row with a total should be a lighter shade, &lt;EM&gt;no matter what those fields are&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;I've played about with Dimensionality(), SecondaryDimensionality(), RowNo() and ColumnNo() to no avail.&lt;/P&gt;&lt;P&gt;Is this just a limitation of the QS pivot table that we have to live with for now, or is there a way around it? I expect there are better pivot tables out there, but I am not able to add any unsupported extensions to our Qlik environment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 18:24:32 GMT</pubDate>
    <dc:creator>gramqlik</dc:creator>
    <dc:date>2024-11-16T18:24:32Z</dc:date>
    <item>
      <title>Pivot table - colouring total rows without using Dimensionality?</title>
      <link>https://community.qlik.com/t5/App-Development/Pivot-table-colouring-total-rows-without-using-Dimensionality/m-p/1725444#M55267</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've been asked to apply background colour to the Total and subtotal rows in a fully expanded pivot table.&lt;/P&gt;&lt;P&gt;Using Dimensionality() on the key dimension and measure fields, I can to get it to apply b/g colour to the word "Totals" in the Row Fields, as well as to the Value totals.&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;IF(Dimensionality()=0, RGB(223, 223, 230), IF(Dimensionality()=2, RGB(233, 230, 233), White()))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ideally, I'd like the colour to be applied to the whole row, commencing with the word "Totals" and including the blank cells at the top of the subsequent Row Fields. This built-in Excel design approximates what I mean:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 543px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/37021i406ECB4D9AB6414B/image-dimensions/543x373?v=v2" width="543" height="373" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Or better yet, with less shading:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.png" style="width: 536px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/37025i80FA9AD47684A325/image-dimensions/536x369?v=v2" width="536" height="369" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;More important than the specifics of the shading, though - if I change the order of the Row Fields (as a user may), or move a row field so it becomes a column field, the b/g colour is either lost altogether, or becomes incorrectly applied (unlike the Excel example). This seems to be because moving a field changes its dimensionality number.&lt;/P&gt;&lt;P&gt;So... is there any other way to do this?&lt;/P&gt;&lt;P&gt;I'm aiming to get the grand total row to be the darkest shade, the next field with a total row should be a medium shade and the last (right-most) row with a total should be a lighter shade, &lt;EM&gt;no matter what those fields are&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;I've played about with Dimensionality(), SecondaryDimensionality(), RowNo() and ColumnNo() to no avail.&lt;/P&gt;&lt;P&gt;Is this just a limitation of the QS pivot table that we have to live with for now, or is there a way around it? I expect there are better pivot tables out there, but I am not able to add any unsupported extensions to our Qlik environment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:24:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pivot-table-colouring-total-rows-without-using-Dimensionality/m-p/1725444#M55267</guid>
      <dc:creator>gramqlik</dc:creator>
      <dc:date>2024-11-16T18:24:32Z</dc:date>
    </item>
  </channel>
</rss>

