<?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: Calculated Dimension values in a table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-values-in-a-table/m-p/120024#M756515</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it could work.&amp;nbsp; Enable "Partial Sums" on the chart on the Presentation tab to get Totals.&amp;nbsp; You will then need to modify each expression to use a slightly different formula to calculate the total cell. The Dimensionality() function can be used to detect the Total cell,. Dimensionality()=0 for the total.&amp;nbsp; So for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;if(dimensionality() &amp;gt; 0 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;,sum({&amp;lt;KPI={'Fuel Cost'}&amp;gt;}Amount)&lt;/P&gt;&lt;P&gt;,sum({&amp;lt;KPI={'Fuel Cost'}, [Actual Budget]={'Actual'}&amp;gt;}Amount) - sum({&amp;lt;KPI={'Fuel Cost'}, [Actual Budget]={'Budget'}&amp;gt;}Amount)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2018-09-13_11-37-02.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/213523_2018-09-13_11-37-02.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Updated example attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.easyqlik.com" rel="nofollow" target="_blank"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Sep 2018 18:38:02 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2018-09-13T18:38:02Z</dc:date>
    <item>
      <title>Calculated Dimension values in a table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-values-in-a-table/m-p/120021#M756512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can anyone help?&lt;/P&gt;&lt;P&gt;I am fairly new to QlikView. I want to create a table like this below similar to what I have in Excel:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="MW Fuel.PNG" class="jive-image image-1" src="/legacyfs/online/213398_MW Fuel.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;I have created a pivot table. Fuel Cost £, Fuel Litres and Kilometres are values in a KPI dimension field. Actual and Budget are calculated expressions with set analysis&amp;nbsp; - e.g. sum({&amp;lt;KPI = {[Fuel Cost £],[Fuel Litres],[Kilometres]},[Actual Budget]= {Actual} &amp;gt;} Amount).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I create Fuel Cost Per Litre £ so that it appears below the Fuel Litres row? &lt;/P&gt;&lt;P&gt;Am I doing this wrong - should I be using another type of table ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thankyou for any advice.&lt;/P&gt;&lt;P&gt;Mel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-values-in-a-table/m-p/120021#M756512</guid>
      <dc:creator>melwilson</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension values in a table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-values-in-a-table/m-p/120022#M756513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's the approach I would recommend.&lt;/P&gt;&lt;P&gt;1. Pivot Table with single Dimension: [Actual Budget]&lt;/P&gt;&lt;P&gt;2. Separate expression for each line, e.g.;&amp;nbsp; sum({&amp;lt;KPI={'Fuel Cost'}&amp;gt;}Amount)&lt;/P&gt;&lt;P&gt;3. Drag the Dimension column to the upper right horizontal.&lt;/P&gt;&lt;P&gt;4. Drag the expressions to the left vertical.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result can look like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2018-09-12_10-44-49.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/213418_2018-09-12_10-44-49.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;You can add some "blank" expressions to create separator lines . &lt;/SPAN&gt;See attached qvw example. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.easyqlik.com" rel="nofollow" target="_blank"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2018 17:47:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-values-in-a-table/m-p/120022#M756513</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2018-09-12T17:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension values in a table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-values-in-a-table/m-p/120023#M756514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Rob.&lt;/P&gt;&lt;P&gt;Wow, that's really good.&lt;/P&gt;&lt;P&gt;I have a follow-on question if you don't mind - if you want to show the difference between Actual and Budget as a third column would your solution still work ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thankyou,&lt;/P&gt;&lt;P&gt;Mel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2018 08:29:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-values-in-a-table/m-p/120023#M756514</guid>
      <dc:creator>melwilson</dc:creator>
      <dc:date>2018-09-13T08:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension values in a table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-values-in-a-table/m-p/120024#M756515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it could work.&amp;nbsp; Enable "Partial Sums" on the chart on the Presentation tab to get Totals.&amp;nbsp; You will then need to modify each expression to use a slightly different formula to calculate the total cell. The Dimensionality() function can be used to detect the Total cell,. Dimensionality()=0 for the total.&amp;nbsp; So for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;if(dimensionality() &amp;gt; 0 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;,sum({&amp;lt;KPI={'Fuel Cost'}&amp;gt;}Amount)&lt;/P&gt;&lt;P&gt;,sum({&amp;lt;KPI={'Fuel Cost'}, [Actual Budget]={'Actual'}&amp;gt;}Amount) - sum({&amp;lt;KPI={'Fuel Cost'}, [Actual Budget]={'Budget'}&amp;gt;}Amount)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2018-09-13_11-37-02.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/213523_2018-09-13_11-37-02.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Updated example attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.easyqlik.com" rel="nofollow" target="_blank"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2018 18:38:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-values-in-a-table/m-p/120024#M756515</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2018-09-13T18:38:02Z</dc:date>
    </item>
  </channel>
</rss>

