<?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 Partial sums in a Pivot chart are wrong based on IF statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Partial-sums-in-a-Pivot-chart-are-wrong-based-on-IF-statement/m-p/267975#M583775</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need your Help. I have the below expressions all based on complex Setanalysis in a pivot table&lt;/P&gt;&lt;P&gt;&lt;IMG alt="OEEcalc1.jpg" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/7324_OEEcalc1.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the thing is that I get the values like 148% which I have to limit to 100%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with a if Statement as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Performance = If ( setAnalysisExp &amp;gt;1,1, setAnalysisExp)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;and the same way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Availability * Performance * Quality = if If ( setAnalysisExp &amp;gt;1,1, setAnalysisExp)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I get the table like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="OEEcalc2.jpg" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/7331_OEEcalc2.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the Partial sums of Performance = 100% is wrong as it must be &lt;/P&gt;&lt;P&gt;Average of (81+100+93)&amp;nbsp; = 91 but not 100 as It shows here.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Any Idea how to solve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sravan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Sep 2011 14:15:15 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-09-16T14:15:15Z</dc:date>
    <item>
      <title>Partial sums in a Pivot chart are wrong based on IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Partial-sums-in-a-Pivot-chart-are-wrong-based-on-IF-statement/m-p/267975#M583775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need your Help. I have the below expressions all based on complex Setanalysis in a pivot table&lt;/P&gt;&lt;P&gt;&lt;IMG alt="OEEcalc1.jpg" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/7324_OEEcalc1.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the thing is that I get the values like 148% which I have to limit to 100%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with a if Statement as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Performance = If ( setAnalysisExp &amp;gt;1,1, setAnalysisExp)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;and the same way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Availability * Performance * Quality = if If ( setAnalysisExp &amp;gt;1,1, setAnalysisExp)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I get the table like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="OEEcalc2.jpg" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/7331_OEEcalc2.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the Partial sums of Performance = 100% is wrong as it must be &lt;/P&gt;&lt;P&gt;Average of (81+100+93)&amp;nbsp; = 91 but not 100 as It shows here.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Any Idea how to solve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sravan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2011 14:15:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Partial-sums-in-a-Pivot-chart-are-wrong-based-on-IF-statement/m-p/267975#M583775</guid>
      <dc:creator />
      <dc:date>2011-09-16T14:15:15Z</dc:date>
    </item>
    <item>
      <title>Partial sums in a Pivot chart are wrong based on IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Partial-sums-in-a-Pivot-chart-are-wrong-based-on-IF-statement/m-p/267976#M583776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Put your application in order to take a look.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2011 14:45:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Partial-sums-in-a-Pivot-chart-are-wrong-based-on-IF-statement/m-p/267976#M583776</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-09-16T14:45:48Z</dc:date>
    </item>
    <item>
      <title>Partial sums in a Pivot chart are wrong based on IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Partial-sums-in-a-Pivot-chart-are-wrong-based-on-IF-statement/m-p/267977#M583777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you saying that 148% is the correct answer, but you want it to only show 100% if &amp;gt;100%? or is your problem that the expression should not evaluate to 148%?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is the former, try RangeMin(1,setAnalysisExp)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is the latter you will need to post your app so we can take a look.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2011 17:35:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Partial-sums-in-a-Pivot-chart-are-wrong-based-on-IF-statement/m-p/267977#M583777</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2011-09-16T17:35:41Z</dc:date>
    </item>
    <item>
      <title>Partial sums in a Pivot chart are wrong based on IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Partial-sums-in-a-Pivot-chart-are-wrong-based-on-IF-statement/m-p/267978#M583778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Jason Michaelides :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you saying that 148% is the correct answer, but you want it to only show 100% &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;H Jason,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the answer!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I meant the above Quoted! Though it gives 148%, I want to show it maximum as 100%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My if statement as well as your expression [RangeMin(1,setAnalysisExp)], works and gives 100% for the Performance Expression but the Partialsum in &lt;STRONG&gt;CHART&lt;/STRONG&gt; does not work as I mentioned before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used Avg in the expression as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Avg(Aggr(setAnalysisExp,BusinessUnit,Plant, Line))&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;to get the correct answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks anyway for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sravan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2011 09:33:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Partial-sums-in-a-Pivot-chart-are-wrong-based-on-IF-statement/m-p/267978#M583778</guid>
      <dc:creator />
      <dc:date>2011-09-19T09:33:39Z</dc:date>
    </item>
  </channel>
</rss>

