<?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 Sum of minimums in a chart or pivot table but calculated over expressions and not fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-of-minimums-in-a-chart-or-pivot-table-but-calculated-over/m-p/524479#M195972</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, I've been trying to solve this problem for a couple of day without success, so I decided to post my discussion to the community and hopefully find a way to solve it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Objective:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;- My end goal is to plot a bar-chart of the sum of the minimum values (per Product_Code, in a given Month) and be able to drill-up and down by Format Type and Product_Code. The minimums should be calculated based on two complex expression calculated previously (ERollingForecast and EProjectStocks)&lt;/LI&gt;&lt;LI&gt;Example&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; in January, Min(65,85) + Min(326,342) + Min(439, 234) = 65 + 326 + 234 = 625&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Pivot table.jpg" class="jive-image" src="/legacyfs/online/49951_Pivot table.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Chart.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/49967_Chart.jpg" /&gt;&lt;/P&gt;&lt;P align="center"&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The problem:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;So far, I am only able to achieve what I want when using a &lt;SPAN style="text-decoration: underline;"&gt;field&lt;/SPAN&gt; instead of an &lt;SPAN style="text-decoration: underline;"&gt;expression&lt;/SPAN&gt;. My problem is that in my dashboard the expressions EProjStocks and ERollingForecast are complex expressions that cannot be calculated at script level because they depend on user selections in the front-end. &lt;/LI&gt;&lt;LI&gt;How can I achieve the same result but doing the calculations on the expressions, rather than on the fields?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;Sum of mins was defined like this (ProjStocks and RollingForecast are in these cases &lt;SPAN style="text-decoration: underline;"&gt;fields&lt;/SPAN&gt;)&lt;/LI&gt;&lt;/UL&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;rangemin&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;ProjStocks&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;RollingForecast&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Product_Code&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Year_Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Format Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Year_Week&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; ) ) &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Dec 2013 12:33:59 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-12-04T12:33:59Z</dc:date>
    <item>
      <title>Sum of minimums in a chart or pivot table but calculated over expressions and not fields</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-minimums-in-a-chart-or-pivot-table-but-calculated-over/m-p/524479#M195972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, I've been trying to solve this problem for a couple of day without success, so I decided to post my discussion to the community and hopefully find a way to solve it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Objective:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;- My end goal is to plot a bar-chart of the sum of the minimum values (per Product_Code, in a given Month) and be able to drill-up and down by Format Type and Product_Code. The minimums should be calculated based on two complex expression calculated previously (ERollingForecast and EProjectStocks)&lt;/LI&gt;&lt;LI&gt;Example&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; in January, Min(65,85) + Min(326,342) + Min(439, 234) = 65 + 326 + 234 = 625&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Pivot table.jpg" class="jive-image" src="/legacyfs/online/49951_Pivot table.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Chart.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/49967_Chart.jpg" /&gt;&lt;/P&gt;&lt;P align="center"&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The problem:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;So far, I am only able to achieve what I want when using a &lt;SPAN style="text-decoration: underline;"&gt;field&lt;/SPAN&gt; instead of an &lt;SPAN style="text-decoration: underline;"&gt;expression&lt;/SPAN&gt;. My problem is that in my dashboard the expressions EProjStocks and ERollingForecast are complex expressions that cannot be calculated at script level because they depend on user selections in the front-end. &lt;/LI&gt;&lt;LI&gt;How can I achieve the same result but doing the calculations on the expressions, rather than on the fields?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;Sum of mins was defined like this (ProjStocks and RollingForecast are in these cases &lt;SPAN style="text-decoration: underline;"&gt;fields&lt;/SPAN&gt;)&lt;/LI&gt;&lt;/UL&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;rangemin&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;ProjStocks&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;RollingForecast&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Product_Code&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Year_Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Format Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Year_Week&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; ) ) &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2013 12:33:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-minimums-in-a-chart-or-pivot-table-but-calculated-over/m-p/524479#M195972</guid>
      <dc:creator />
      <dc:date>2013-12-04T12:33:59Z</dc:date>
    </item>
  </channel>
</rss>

