<?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: Pivot Tables and adding in Blank Rows in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-Tables-and-adding-in-Blank-Rows/m-p/149226#M27424</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am also searching for the same argument, but the only solution is (probably) to use straight table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Sep 2014 14:38:46 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-09-11T14:38:46Z</dc:date>
    <item>
      <title>Pivot Tables and adding in Blank Rows</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Tables-and-adding-in-Blank-Rows/m-p/149225#M27423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All, I know you can add in "Blank Expressions" to simulate blank rows, however, I need to use Dimensions for the rows and not expressions and the Field is called "group"&lt;/P&gt;&lt;P&gt;Does anyone know how to add in a fake or blank segment so that e.g. revenues can have separations to make a cleaner look?&lt;/P&gt;&lt;P&gt;I am using a pivot table and would love the blank lines so that the pivot table would be cleaner from a end user perspective&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2009 22:01:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Tables-and-adding-in-Blank-Rows/m-p/149225#M27423</guid>
      <dc:creator>james</dc:creator>
      <dc:date>2009-07-13T22:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Tables and adding in Blank Rows</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Tables-and-adding-in-Blank-Rows/m-p/149226#M27424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am also searching for the same argument, but the only solution is (probably) to use straight table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2014 14:38:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Tables-and-adding-in-Blank-Rows/m-p/149226#M27424</guid>
      <dc:creator />
      <dc:date>2014-09-11T14:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Tables and adding in Blank Rows</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Tables-and-adding-in-Blank-Rows/m-p/149227#M27425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The easiest way is to add a further dimension as a clone from group then you have a further total-row which you could use with if(dimensionality() = 1, ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further you could add a blank-value to group within your datamodel:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;blank:&lt;/P&gt;&lt;P&gt;Load * Inline [&lt;/P&gt;&lt;P&gt;group&lt;/P&gt;&lt;P&gt;""&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you could create a dynamically dimension: &lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2014/04/08/calculated-dimensions" title="http://community.qlik.com/blogs/qlikviewdesignblog/2014/04/08/calculated-dimensions"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2014/04/08/calculated-dimensions&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2014 16:24:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Tables-and-adding-in-Blank-Rows/m-p/149227#M27425</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-09-11T16:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Tables and adding in Blank Rows</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Tables-and-adding-in-Blank-Rows/m-p/2533370#M1226715</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Dimensionality() works for me in Pivot Table.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In the Load Script, I created an additional field next to the field I need to create blank lines:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LOAD
fields...,
position as WO_POSITION,
'BLANK' &amp;amp; position AS WO_POSITION_BLANK_LINES
RESIDENT TABLE;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In the Pivot Table,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Chart Properties - Presentation, the newly created dummy field, enable tho Partial Sums.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Dimension:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Background Colour:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=IF( Dimensionality() &amp;lt;&amp;gt; 5,
RGB(209, 217, 224)
,RGB(255, 255, 255)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Expression/Measure:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Expression:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;IF( Dimensionality() &amp;lt;&amp;gt; 5,
Sum(TRAN_QTY * TRAN_PRODUCT_WEIGHT)
,' '
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Background colour:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;IF( Dimensionality() = 5,
RGB(255, 255, 255)
)&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;Text Colour:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=if( Left( [WO_POSITION_BLANK_LINES],5 ) = 'BLANK', RGB(245, 245, 245))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Where the Dimensionality() = 5 is the Blank Lines I needed to add, as shown in the attached screenshot. That's how I worked around the syntax&amp;nbsp;Dimensionality() in measure, colour expressions.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mr_H_Huang_1-1760440750471.png" style="width: 1035px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/184220i211CDC3A5D0205A9/image-dimensions/1035x519?v=v2" width="1035" height="519" role="button" title="Mr_H_Huang_1-1760440750471.png" alt="Mr_H_Huang_1-1760440750471.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Nov 2025 11:28:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Tables-and-adding-in-Blank-Rows/m-p/2533370#M1226715</guid>
      <dc:creator>Mr_H_Huang</dc:creator>
      <dc:date>2025-11-21T11:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Tables and adding in Blank Rows</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Tables-and-adding-in-Blank-Rows/m-p/2534932#M1226729</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6305"&gt;@james&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Similar to&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28038"&gt;@marcus_sommer&lt;/a&gt;&amp;nbsp;I would create a dimension table specifically for the pivot that includes the blanks.&lt;/P&gt;&lt;P&gt;Something like:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PivotDims:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp;RowNum() as PivotOrder,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp;PivotDim,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp;Group&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;INLINE [&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;PivotDim,Group&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;X,X&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Y,Y&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Z,Z&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;,Spacer&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This way you can use PivotDim as the dimension in the pivot, and sort it by PivotOrder, and it will then associate with the Group and put these in the right place.&lt;/P&gt;&lt;P&gt;The join doesn't need to be on the values in the Group column, you could join on another field.&lt;/P&gt;&lt;P&gt;This method can be particularly useful when doing GL type tables, so you can join to a section of numbers from the PivotDim (so Income, Expenditure, Staff Costs, etc.) and if new GL codes appear they will also join in the correct places.&lt;/P&gt;&lt;P&gt;You can also put style instructions into the PivotDim table, so colour codes and bold etc., so in the formatting of the table you can have this based on that column.&lt;/P&gt;&lt;P&gt;Hope that all makes some kind of sense?&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Fri, 31 Oct 2025 09:48:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Tables-and-adding-in-Blank-Rows/m-p/2534932#M1226729</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2025-10-31T09:48:34Z</dc:date>
    </item>
  </channel>
</rss>

