<?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: Add YTD totals in Pivot Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Add-YTD-totals-in-Pivot-Table/m-p/1087958#M934067</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you - I will try that!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Feb 2016 16:44:55 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-02-23T16:44:55Z</dc:date>
    <item>
      <title>Add YTD totals in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Add-YTD-totals-in-Pivot-Table/m-p/1087954#M934063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi - Here's a snapshot of my pivot table:&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/115520_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;As you can see, the bottom yellow row should be YTD totals, but instead it is always a subtotal of the selected fields. Where and how do I change that value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2016 17:30:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-YTD-totals-in-Pivot-Table/m-p/1087954#M934063</guid>
      <dc:creator />
      <dc:date>2016-02-22T17:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Add YTD totals in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Add-YTD-totals-in-Pivot-Table/m-p/1087955#M934064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can modify the formula for each total using the function Dimensionality(). For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(Dimensionality() = 0, one calculation,&lt;/P&gt;&lt;P&gt;IF(Dimensionality() = 1, another calculation,&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Find out what Dimensionality number represents the YTD Total and replace the usual formula with the YTD calculation there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;P&gt;Upgrade your Qlik skills at the &lt;A href="http://masterssummit.com/"&gt;Masters Summit for Qlik&lt;/A&gt; - coming soon to Milan, Italy and Austin, TX!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2016 17:36:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-YTD-totals-in-Pivot-Table/m-p/1087955#M934064</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2016-02-22T17:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: Add YTD totals in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Add-YTD-totals-in-Pivot-Table/m-p/1087956#M934065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't find that dimensionality. It's an automatic total, and I can't figure out where the expression is.&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/115494_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2016 18:05:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-YTD-totals-in-Pivot-Table/m-p/1087956#M934065</guid>
      <dc:creator />
      <dc:date>2016-02-22T18:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: Add YTD totals in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Add-YTD-totals-in-Pivot-Table/m-p/1087957#M934066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dimensionality() is a function. It returns 0 for the chart total, 1 for the first subtotal, etc...&amp;nbsp;&amp;nbsp;&amp;nbsp; To find out the specific level, create an extra expression with this function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Dimensionality()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and see what is the number in the desired total position.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2016 18:35:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-YTD-totals-in-Pivot-Table/m-p/1087957#M934066</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2016-02-22T18:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: Add YTD totals in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Add-YTD-totals-in-Pivot-Table/m-p/1087958#M934067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you - I will try that!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 16:44:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-YTD-totals-in-Pivot-Table/m-p/1087958#M934067</guid>
      <dc:creator />
      <dc:date>2016-02-23T16:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: Add YTD totals in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Add-YTD-totals-in-Pivot-Table/m-p/1087959#M934068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To add the&amp;nbsp; chart function dimensionality() as suggested by Oleg, you need to go to the 'Expressions' tab. There, inside the existing expression(formula) you have for each measure (eg: Waste %, Waste Lbs, Packed Lbs), you can add an IF condition that will first evaluate the value of dimensionality() for a given row and then will use the expression you want. Month and Week are your dimensions in the chart. When there is a need to calculate metrics on a different range but in the same column in the table, dimensionality() can help achieve that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read more here: &lt;A href="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/ChartFunctions/InterRecordFunctions/dimensionality.htm?q=dimensionality" title="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/ChartFunctions/InterRecordFunctions/dimensionality.htm?q=dimensionality"&gt;http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/ChartFunctions/InterRecordFunctions/dimensionality.htm?q=dimensionality&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 17:05:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-YTD-totals-in-Pivot-Table/m-p/1087959#M934068</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-23T17:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: Add YTD totals in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Add-YTD-totals-in-Pivot-Table/m-p/1087960#M934069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't figure out how to use Dimensionality to accomplish this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The definition is "Dimensionality() returns the number of dimensions for the current row. In the case of pivot tables, the function returns the total number of dimension columns that have non-aggregation content, that is, do not contain partial sums or collapsed aggregates."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All of my columns contain partial sums and collapsed aggregates. All I want is for the YTD total in the bottom row to be a YTD total regardless of what selections are chosen. What am I missing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Feb 2016 15:02:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-YTD-totals-in-Pivot-Table/m-p/1087960#M934069</guid>
      <dc:creator />
      <dc:date>2016-02-26T15:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: Add YTD totals in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Add-YTD-totals-in-Pivot-Table/m-p/1087961#M934070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lee,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this description that you quoted is very cryptic and doesn't describe what Dimensionality() function does in reality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to understand how it works, add a new expression and use Dimensionality() as the formula. Then, see what numbers do you get in your totals, subtotals, and detailed rows. You should see 0 for the chart total, 1 for the first dimension's subtotal, etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The way it's used is this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF (Dimensionality() = 0, sum({&amp;lt;YTD condition&amp;gt;} Sales),&lt;/P&gt;&lt;P&gt;IF(Dimensionality() = 1, &amp;lt;another calculation for the first subtotal&amp;gt;,&lt;/P&gt;&lt;P&gt;Sum(Sales) ))&amp;nbsp;&amp;nbsp;&amp;nbsp; // Default calculation for all non-totals,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can post your app, someone could help you build the formula.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Feb 2016 18:16:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-YTD-totals-in-Pivot-Table/m-p/1087961#M934070</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2016-02-26T18:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: Add YTD totals in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Add-YTD-totals-in-Pivot-Table/m-p/1087962#M934071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 14:29:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-YTD-totals-in-Pivot-Table/m-p/1087962#M934071</guid>
      <dc:creator />
      <dc:date>2016-02-29T14:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: Add YTD totals in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Add-YTD-totals-in-Pivot-Table/m-p/1087963#M934072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lee,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wow, your expressions are way too complicated. I won't have enough time to fix all the aggregations that you have there. I modified the first expression and replaced the total value by 100%, using Dimensionality(). You will need to take if from here and replace it with your YTD formula. I also modified the background of the same expression to red, demonstrating one more time how to use Dimensionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A few general comments:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Your data model may need to be restructured to enable simpler calculations. Adding up dozens of separately named transaction fields is a maintenance nightmare, it needs to be simplified by a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- try to get away from calculated dimensions, they hurt performance. Your application won't fly on a larger scale.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- in QlikView, the most important principle to remember is SIMPLICITY - try to simplify everything in your application, and your job will get a lot easier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;P&gt;Upgrade your Qlik skills at the &lt;A href="http://masterssummit.com/"&gt;Masters Summit for Qlik&lt;/A&gt; - coming soon to Milan, Italy and Austin, TX!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 19:56:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-YTD-totals-in-Pivot-Table/m-p/1087963#M934072</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2016-02-29T19:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Add YTD totals in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Add-YTD-totals-in-Pivot-Table/m-p/1087964#M934073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your help. I know the expressions are way too complicated. That's just a sample of what my predecessor left for me!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2016 21:11:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-YTD-totals-in-Pivot-Table/m-p/1087964#M934073</guid>
      <dc:creator />
      <dc:date>2016-03-03T21:11:14Z</dc:date>
    </item>
  </channel>
</rss>

