<?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 Calculations across pivot tables? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculations-across-pivot-tables/m-p/365878#M136123</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #1f497d; font-family: 'Calibri','sans-serif';"&gt;I need to be able to perform calculations &lt;STRONG&gt;across dimensions&lt;/STRONG&gt; within a pivot table; in this case the two dimensions are Baseline Officer Title and Current Officer Title.&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #1f497d; font-family: 'Calibri','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #1f497d; font-family: 'Calibri','sans-serif';"&gt;Basically I am performing a comparison between Current year and Prior Year in terms of timing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #1f497d; font-family: 'Calibri','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #1f497d; font-family: 'Calibri','sans-serif';"&gt;In excel the calculation would be very simple here is the example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #1f497d; font-family: 'Calibri','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="margin-left: -2.25pt;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="border-right: gainsboro 1pt solid; padding-right: 5.4pt; border-top: gainsboro 1pt solid; padding-left: 5.4pt; border-left: gainsboro 1.5pt solid; border-bottom: gainsboro 1.5pt solid; background-color: whitesmoke;" valign="top" width="141"&gt;&lt;P&gt;&lt;STRONG style="color: #333333; font-size: 8pt; font-family: 'Tahoma','sans-serif';"&gt;Baseline Officer Title&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: gainsboro 1pt solid; padding-right: 5.4pt; border-top: gainsboro 1pt solid; padding-left: 5.4pt; border-left: medium none; border-bottom: gainsboro 1pt solid; background-color: white;" valign="top" width="145"&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; color: #333333; font-family: 'Tahoma','sans-serif';"&gt;MD&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: gainsboro 1pt solid; padding-right: 5.4pt; border-top: gainsboro 1pt solid; padding-left: 5.4pt; border-left: medium none; border-bottom: gainsboro 1pt solid; background-color: white;" valign="top" width="106"&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; color: #333333; font-family: 'Tahoma','sans-serif';"&gt;ED&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: gainsboro 1pt solid; padding-right: 5.4pt; border-top: gainsboro 1pt solid; padding-left: 5.4pt; border-left: medium none; border-bottom: gainsboro 1pt solid; background-color: white;" valign="top" width="106"&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; color: #333333; font-family: 'Tahoma','sans-serif';"&gt;VP&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: gainsboro 1pt solid; padding-right: 5.4pt; border-top: gainsboro 1pt solid; padding-left: 5.4pt; border-left: medium none; border-bottom: gainsboro 1pt solid; background-color: white;" valign="top" width="106"&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; color: #333333; font-family: 'Tahoma','sans-serif';"&gt;ASSC&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: gainsboro 1pt solid; padding-right: 5.4pt; border-top: gainsboro 1pt solid; padding-left: 5.4pt; border-left: medium none; border-bottom: gainsboro 1pt solid; background-color: white;" valign="top" width="106"&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; color: #333333; font-family: 'Tahoma','sans-serif';"&gt;Other&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: gainsboro 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: medium none; border-bottom: gainsboro 1pt solid; background-color: whitesmoke;" valign="top" width="106"&gt;&lt;P&gt;&lt;STRONG style="color: black; font-size: 8pt; font-family: 'Tahoma','sans-serif';"&gt;Total&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border-right: gainsboro 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: gainsboro 1pt solid; border-bottom: gainsboro 1pt solid; background-color: white;" valign="top" width="141"&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; color: #333333; font-family: 'Tahoma','sans-serif';"&gt;Baseline&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: gainsboro 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: medium none; border-bottom: gainsboro 1pt solid; background-color: silver;" valign="top" width="145"&gt;&lt;P align="right"&gt;&lt;STRONG style="color: #333333; font-size: 8pt; font-family: 'Tahoma','sans-serif';"&gt;1,027&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: gainsboro 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: medium none; border-bottom: gainsboro 1pt solid; background-color: silver;" valign="top" width="106"&gt;&lt;P align="right"&gt;&lt;STRONG style="color: #333333; font-size: 8pt; font-family: 'Tahoma','sans-serif';"&gt;1,146&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: gainsboro 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: medium none; border-bottom: gainsboro 1pt solid; background-color: silver;" valign="top" width="106"&gt;&lt;P align="right"&gt;&lt;STRONG style="color: #333333; font-size: 8pt; font-family: 'Tahoma','sans-serif';"&gt;4,194&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: gainsboro 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: medium none; border-bottom: gainsboro 1pt solid; background-color: silver;" valign="top" width="106"&gt;&lt;P align="right"&gt;&lt;STRONG style="color: #333333; font-size: 8pt; font-family: 'Tahoma','sans-serif';"&gt;4,201&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: gainsboro 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: medium none; border-bottom: gainsboro 1pt solid; background-color: silver;" valign="top" width="106"&gt;&lt;P align="right"&gt;&lt;STRONG style="color: #333333; font-size: 8pt; font-family: 'Tahoma','sans-serif';"&gt;6,990&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: gainsboro 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: medium none; border-bottom: gainsboro 1pt solid; background-color: silver;" valign="top" width="106"&gt;&lt;P align="right"&gt;&lt;STRONG style="color: black; font-size: 8pt; font-family: 'Tahoma','sans-serif';"&gt;17,558&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border-right: gainsboro 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: gainsboro 1pt solid; border-bottom: gainsboro 1pt solid; background-color: white;" valign="top" width="141"&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; color: #333333; font-family: 'Tahoma','sans-serif';"&gt;Curret&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: gainsboro 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: medium none; border-bottom: gainsboro 1pt solid; background-color: silver;" valign="top" width="145"&gt;&lt;P align="right"&gt;&lt;STRONG style="color: #333333; font-size: 8pt; font-family: 'Tahoma','sans-serif';"&gt;1,015&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: gainsboro 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: medium none; border-bottom: gainsboro 1pt solid; background-color: silver;" valign="top" width="106"&gt;&lt;P align="right"&gt;&lt;STRONG style="color: #333333; font-size: 8pt; font-family: 'Tahoma','sans-serif';"&gt;1,582&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: gainsboro 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: medium none; border-bottom: gainsboro 1pt solid; background-color: silver;" valign="top" width="106"&gt;&lt;P align="right"&gt;&lt;STRONG style="color: #333333; font-size: 8pt; font-family: 'Tahoma','sans-serif';"&gt;4,208&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: gainsboro 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: medium none; border-bottom: gainsboro 1pt solid; background-color: silver;" valign="top" width="106"&gt;&lt;P align="right"&gt;&lt;STRONG style="color: #333333; font-size: 8pt; font-family: 'Tahoma','sans-serif';"&gt;4,110&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: gainsboro 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: medium none; border-bottom: gainsboro 1pt solid; background-color: silver;" valign="top" width="106"&gt;&lt;P align="right"&gt;&lt;STRONG style="color: #333333; font-size: 8pt; font-family: 'Tahoma','sans-serif';"&gt;6,447&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: gainsboro 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: medium none; border-bottom: gainsboro 1pt solid; background-color: silver;" valign="top" width="106"&gt;&lt;P align="right"&gt;&lt;STRONG style="color: black; font-size: 8pt; font-family: 'Tahoma','sans-serif';"&gt;17,362&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding-right: 5.4pt; padding-left: 5.4pt;" valign="top" width="141"&gt;&lt;P align="right"&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Arial','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 5.4pt; padding-left: 5.4pt;" valign="top" width="145"&gt;&lt;P align="right"&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Arial','sans-serif';"&gt;12&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 5.4pt; padding-left: 5.4pt;" valign="top" width="106"&gt;&lt;P align="right"&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Arial','sans-serif';"&gt;-436&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 5.4pt; padding-left: 5.4pt;" valign="top" width="106"&gt;&lt;P align="right"&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Arial','sans-serif';"&gt;-14&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 5.4pt; padding-left: 5.4pt;" valign="top" width="106"&gt;&lt;P align="right"&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Arial','sans-serif';"&gt;91&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 5.4pt; padding-left: 5.4pt;" valign="top" width="106"&gt;&lt;P align="right"&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Arial','sans-serif';"&gt;543&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 5.4pt; padding-left: 5.4pt;" valign="top" width="106"&gt;&lt;P align="right"&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Arial','sans-serif';"&gt;196&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #1f497d; font-family: 'Calibri','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #1f497d; font-family: 'Calibri','sans-serif';"&gt;The top line is the historic staff population using the Baseline officer title as a dimension.&amp;nbsp; The second line is the current staff population using the current officer title as a dimension.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #1f497d; font-family: 'Calibri','sans-serif';"&gt;The calculation I need to perform is the difference between the two pivot tables as shown in the third line of the excel worksheet. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #1f497d; font-family: 'Calibri','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #1f497d; font-family: 'Calibri','sans-serif';"&gt;I can create these top two lines in two different QV pivot tables, but the issue I encounter is in attempting to calculate the difference between these two pivot totals.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #1f497d; font-family: 'Calibri','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #1f497d; font-family: 'Calibri','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #1f497d; font-family: 'Calibri','sans-serif';"&gt;I have attempted three different methods to address this calculation issue:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #1f497d; font-family: 'Calibri','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;OL start="1"&gt;&lt;LI&gt;&lt;SPAN style="font-size: 11pt; color: #1f497d; font-family: 'Calibri','sans-serif';"&gt;Using Set Analysis.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 11pt; color: #1f497d; font-family: 'Calibri','sans-serif';"&gt;Creating new flags and dimensions at the database load / ETL level to identify differences between Baseline and Current officer titles.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 11pt; color: #1f497d; font-family: 'Calibri','sans-serif';"&gt;Using if than else statements to explicitly perform the calculation differences between these dimensions&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #1f497d; font-family: 'Calibri','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #1f497d; font-family: 'Calibri','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #1f497d; font-family: 'Calibri','sans-serif';"&gt;Also when I add both dimensions to the same pivot table the formating does not meet the requirements, in terms of presentaion and the subtotals are not100% correct. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #1f497d; font-family: 'Calibri','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #1f497d; font-family: 'Calibri','sans-serif';"&gt;None of these methods seem to work in the requried manner. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #1f497d; font-family: 'Calibri','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt; color: #1f497d; font-family: 'Calibri','sans-serif';"&gt;Has anyone else encountered this design issue and if so what was your strategy to resolve this problem? &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 May 2012 15:29:34 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-05-23T15:29:34Z</dc:date>
    <item>
      <title>Calculations across pivot tables?</title>
      <link>https://community.qlik.com/t5/QlikView/Calculations-across-pivot-tables/m-p/365878#M136123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #1f497d; font-family: 'Calibri','sans-serif';"&gt;I need to be able to perform calculations &lt;STRONG&gt;across dimensions&lt;/STRONG&gt; within a pivot table; in this case the two dimensions are Baseline Officer Title and Current Officer Title.&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #1f497d; font-family: 'Calibri','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #1f497d; font-family: 'Calibri','sans-serif';"&gt;Basically I am performing a comparison between Current year and Prior Year in terms of timing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #1f497d; font-family: 'Calibri','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #1f497d; font-family: 'Calibri','sans-serif';"&gt;In excel the calculation would be very simple here is the example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #1f497d; font-family: 'Calibri','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="margin-left: -2.25pt;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="border-right: gainsboro 1pt solid; padding-right: 5.4pt; border-top: gainsboro 1pt solid; padding-left: 5.4pt; border-left: gainsboro 1.5pt solid; border-bottom: gainsboro 1.5pt solid; background-color: whitesmoke;" valign="top" width="141"&gt;&lt;P&gt;&lt;STRONG style="color: #333333; font-size: 8pt; font-family: 'Tahoma','sans-serif';"&gt;Baseline Officer Title&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: gainsboro 1pt solid; padding-right: 5.4pt; border-top: gainsboro 1pt solid; padding-left: 5.4pt; border-left: medium none; border-bottom: gainsboro 1pt solid; background-color: white;" valign="top" width="145"&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; color: #333333; font-family: 'Tahoma','sans-serif';"&gt;MD&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: gainsboro 1pt solid; padding-right: 5.4pt; border-top: gainsboro 1pt solid; padding-left: 5.4pt; border-left: medium none; border-bottom: gainsboro 1pt solid; background-color: white;" valign="top" width="106"&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; color: #333333; font-family: 'Tahoma','sans-serif';"&gt;ED&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: gainsboro 1pt solid; padding-right: 5.4pt; border-top: gainsboro 1pt solid; padding-left: 5.4pt; border-left: medium none; border-bottom: gainsboro 1pt solid; background-color: white;" valign="top" width="106"&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; color: #333333; font-family: 'Tahoma','sans-serif';"&gt;VP&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: gainsboro 1pt solid; padding-right: 5.4pt; border-top: gainsboro 1pt solid; padding-left: 5.4pt; border-left: medium none; border-bottom: gainsboro 1pt solid; background-color: white;" valign="top" width="106"&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; color: #333333; font-family: 'Tahoma','sans-serif';"&gt;ASSC&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: gainsboro 1pt solid; padding-right: 5.4pt; border-top: gainsboro 1pt solid; padding-left: 5.4pt; border-left: medium none; border-bottom: gainsboro 1pt solid; background-color: white;" valign="top" width="106"&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; color: #333333; font-family: 'Tahoma','sans-serif';"&gt;Other&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: gainsboro 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: medium none; border-bottom: gainsboro 1pt solid; background-color: whitesmoke;" valign="top" width="106"&gt;&lt;P&gt;&lt;STRONG style="color: black; font-size: 8pt; font-family: 'Tahoma','sans-serif';"&gt;Total&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border-right: gainsboro 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: gainsboro 1pt solid; border-bottom: gainsboro 1pt solid; background-color: white;" valign="top" width="141"&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; color: #333333; font-family: 'Tahoma','sans-serif';"&gt;Baseline&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: gainsboro 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: medium none; border-bottom: gainsboro 1pt solid; background-color: silver;" valign="top" width="145"&gt;&lt;P align="right"&gt;&lt;STRONG style="color: #333333; font-size: 8pt; font-family: 'Tahoma','sans-serif';"&gt;1,027&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: gainsboro 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: medium none; border-bottom: gainsboro 1pt solid; background-color: silver;" valign="top" width="106"&gt;&lt;P align="right"&gt;&lt;STRONG style="color: #333333; font-size: 8pt; font-family: 'Tahoma','sans-serif';"&gt;1,146&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: gainsboro 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: medium none; border-bottom: gainsboro 1pt solid; background-color: silver;" valign="top" width="106"&gt;&lt;P align="right"&gt;&lt;STRONG style="color: #333333; font-size: 8pt; font-family: 'Tahoma','sans-serif';"&gt;4,194&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: gainsboro 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: medium none; border-bottom: gainsboro 1pt solid; background-color: silver;" valign="top" width="106"&gt;&lt;P align="right"&gt;&lt;STRONG style="color: #333333; font-size: 8pt; font-family: 'Tahoma','sans-serif';"&gt;4,201&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: gainsboro 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: medium none; border-bottom: gainsboro 1pt solid; background-color: silver;" valign="top" width="106"&gt;&lt;P align="right"&gt;&lt;STRONG style="color: #333333; font-size: 8pt; font-family: 'Tahoma','sans-serif';"&gt;6,990&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: gainsboro 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: medium none; border-bottom: gainsboro 1pt solid; background-color: silver;" valign="top" width="106"&gt;&lt;P align="right"&gt;&lt;STRONG style="color: black; font-size: 8pt; font-family: 'Tahoma','sans-serif';"&gt;17,558&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border-right: gainsboro 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: gainsboro 1pt solid; border-bottom: gainsboro 1pt solid; background-color: white;" valign="top" width="141"&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; color: #333333; font-family: 'Tahoma','sans-serif';"&gt;Curret&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: gainsboro 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: medium none; border-bottom: gainsboro 1pt solid; background-color: silver;" valign="top" width="145"&gt;&lt;P align="right"&gt;&lt;STRONG style="color: #333333; font-size: 8pt; font-family: 'Tahoma','sans-serif';"&gt;1,015&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: gainsboro 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: medium none; border-bottom: gainsboro 1pt solid; background-color: silver;" valign="top" width="106"&gt;&lt;P align="right"&gt;&lt;STRONG style="color: #333333; font-size: 8pt; font-family: 'Tahoma','sans-serif';"&gt;1,582&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: gainsboro 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: medium none; border-bottom: gainsboro 1pt solid; background-color: silver;" valign="top" width="106"&gt;&lt;P align="right"&gt;&lt;STRONG style="color: #333333; font-size: 8pt; font-family: 'Tahoma','sans-serif';"&gt;4,208&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: gainsboro 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: medium none; border-bottom: gainsboro 1pt solid; background-color: silver;" valign="top" width="106"&gt;&lt;P align="right"&gt;&lt;STRONG style="color: #333333; font-size: 8pt; font-family: 'Tahoma','sans-serif';"&gt;4,110&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: gainsboro 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: medium none; border-bottom: gainsboro 1pt solid; background-color: silver;" valign="top" width="106"&gt;&lt;P align="right"&gt;&lt;STRONG style="color: #333333; font-size: 8pt; font-family: 'Tahoma','sans-serif';"&gt;6,447&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: gainsboro 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; border-left: medium none; border-bottom: gainsboro 1pt solid; background-color: silver;" valign="top" width="106"&gt;&lt;P align="right"&gt;&lt;STRONG style="color: black; font-size: 8pt; font-family: 'Tahoma','sans-serif';"&gt;17,362&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding-right: 5.4pt; padding-left: 5.4pt;" valign="top" width="141"&gt;&lt;P align="right"&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Arial','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 5.4pt; padding-left: 5.4pt;" valign="top" width="145"&gt;&lt;P align="right"&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Arial','sans-serif';"&gt;12&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 5.4pt; padding-left: 5.4pt;" valign="top" width="106"&gt;&lt;P align="right"&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Arial','sans-serif';"&gt;-436&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 5.4pt; padding-left: 5.4pt;" valign="top" width="106"&gt;&lt;P align="right"&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Arial','sans-serif';"&gt;-14&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 5.4pt; padding-left: 5.4pt;" valign="top" width="106"&gt;&lt;P align="right"&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Arial','sans-serif';"&gt;91&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 5.4pt; padding-left: 5.4pt;" valign="top" width="106"&gt;&lt;P align="right"&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Arial','sans-serif';"&gt;543&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 5.4pt; padding-left: 5.4pt;" valign="top" width="106"&gt;&lt;P align="right"&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Arial','sans-serif';"&gt;196&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #1f497d; font-family: 'Calibri','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #1f497d; font-family: 'Calibri','sans-serif';"&gt;The top line is the historic staff population using the Baseline officer title as a dimension.&amp;nbsp; The second line is the current staff population using the current officer title as a dimension.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #1f497d; font-family: 'Calibri','sans-serif';"&gt;The calculation I need to perform is the difference between the two pivot tables as shown in the third line of the excel worksheet. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #1f497d; font-family: 'Calibri','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #1f497d; font-family: 'Calibri','sans-serif';"&gt;I can create these top two lines in two different QV pivot tables, but the issue I encounter is in attempting to calculate the difference between these two pivot totals.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #1f497d; font-family: 'Calibri','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #1f497d; font-family: 'Calibri','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #1f497d; font-family: 'Calibri','sans-serif';"&gt;I have attempted three different methods to address this calculation issue:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #1f497d; font-family: 'Calibri','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;OL start="1"&gt;&lt;LI&gt;&lt;SPAN style="font-size: 11pt; color: #1f497d; font-family: 'Calibri','sans-serif';"&gt;Using Set Analysis.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 11pt; color: #1f497d; font-family: 'Calibri','sans-serif';"&gt;Creating new flags and dimensions at the database load / ETL level to identify differences between Baseline and Current officer titles.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 11pt; color: #1f497d; font-family: 'Calibri','sans-serif';"&gt;Using if than else statements to explicitly perform the calculation differences between these dimensions&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #1f497d; font-family: 'Calibri','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #1f497d; font-family: 'Calibri','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #1f497d; font-family: 'Calibri','sans-serif';"&gt;Also when I add both dimensions to the same pivot table the formating does not meet the requirements, in terms of presentaion and the subtotals are not100% correct. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #1f497d; font-family: 'Calibri','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #1f497d; font-family: 'Calibri','sans-serif';"&gt;None of these methods seem to work in the requried manner. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #1f497d; font-family: 'Calibri','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt; color: #1f497d; font-family: 'Calibri','sans-serif';"&gt;Has anyone else encountered this design issue and if so what was your strategy to resolve this problem? &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 15:29:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculations-across-pivot-tables/m-p/365878#M136123</guid>
      <dc:creator />
      <dc:date>2012-05-23T15:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Calculations across pivot tables?</title>
      <link>https://community.qlik.com/t5/QlikView/Calculations-across-pivot-tables/m-p/365879#M136124</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;Did you try using Dimensionality() in the expressions so when it equals to zero you set the expression for the total and otherwise you set the expression for dimension values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;If(Dimensionality() = 0,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Sum({&amp;lt; [Baseline Officer Title] = {'Baseline'} &amp;gt;} Value) - &lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; white-space: pre; background-color: #ffffff;"&gt;Sum({&amp;lt; [Baseline Officer Title] = {'Current'} &amp;gt;} Value),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(Value)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 15:35:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculations-across-pivot-tables/m-p/365879#M136124</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-05-23T15:35:59Z</dc:date>
    </item>
  </channel>
</rss>

