<?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: Row wise comparison  in Pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Row-wise-comparison-in-Pivot-table/m-p/12618#M2061</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried, but its only working for Totals, not for all plants (which are used as columns).&lt;/P&gt;&lt;P&gt;I have also tried as:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-size: 13.3333px; font-family: inherit; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;if(Sum(&amp;lt;Total Plant&amp;gt;Actual) &amp;lt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Sum(&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&amp;lt;Total Plant&amp;gt;&lt;/EM&gt;MTD Target), Red(), Green())&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 May 2018 06:29:14 GMT</pubDate>
    <dc:creator>rkspareek1992</dc:creator>
    <dc:date>2018-05-10T06:29:14Z</dc:date>
    <item>
      <title>Row wise comparison  in Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Row-wise-comparison-in-Pivot-table/m-p/12616#M2059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have three tables A, B &amp;amp; C. In tables A, B &amp;amp; C I have Total target, MTD target and Actual data respectively. I have concatenated all three tables to show the data in below-mentioned form.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 401px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="108"&gt;MTD Production&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="59"&gt;Location&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="64"&gt;Totals&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="64"&gt;Plant1&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="53"&gt;Plant2&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="53"&gt;Plant3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" colspan="2" height="20"&gt;Month Target (A)&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;3,236&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;2,259&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;620&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;357&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" colspan="2" height="20"&gt;MTD Target (&lt;STRONG&gt;B&lt;/STRONG&gt;)&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;939&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;656&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;180&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;104&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" colspan="2" height="20"&gt;Total Actual (C)&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1,096&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;619&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;304&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;174&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression of A, B &amp;amp; C is Sum(Total target), Sum(MTD Target) and Sum(Actual) respectively.&lt;/P&gt;&lt;P&gt;Now I want to compare B and C,&lt;EM&gt; if &lt;/EM&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;Sum(Actual) &amp;lt;&lt;/EM&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;Sum(MTD Target), Red, Green.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;and output should be like as:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 401px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="108"&gt;MTD Production&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="59"&gt;Location&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="64"&gt;Totals&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="64"&gt;Plant1&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="53"&gt;Plant2&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="53"&gt;Plant3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" colspan="2" height="20"&gt;Month Target (A)&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;3,236&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;2,259&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;620&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;357&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" colspan="2" height="20"&gt;MTD Target (&lt;STRONG&gt;B&lt;/STRONG&gt;)&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;939&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;656&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;180&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;104&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" colspan="2" height="20"&gt;Total Actual (C)&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #339966;"&gt;1,096&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #ff0000;"&gt;619&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #339966;"&gt;304&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #339966;"&gt;174&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly suggest the expression for color.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2018 06:06:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Row-wise-comparison-in-Pivot-table/m-p/12616#M2059</guid>
      <dc:creator>rkspareek1992</dc:creator>
      <dc:date>2018-05-10T06:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: Row wise comparison  in Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Row-wise-comparison-in-Pivot-table/m-p/12617#M2060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rakesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Under the expression you have color by text (&lt;STRONG&gt;Text Color&lt;/STRONG&gt;). Use the expression &lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;if (&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;EM&gt;Sum(Actual) &amp;lt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 13.3333px; font-family: inherit; font-weight: inherit;"&gt;&lt;EM&gt;Sum(MTD Target), Red(), Green()).&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-style: inherit; font-size: 13.3333px; font-family: inherit; font-weight: inherit;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;This should work&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;IMG __jive_id="202061" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/202061_Capture.PNG" style="height: auto;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;Many Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;Karthik.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2018 06:20:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Row-wise-comparison-in-Pivot-table/m-p/12617#M2060</guid>
      <dc:creator>karthikoffi27se</dc:creator>
      <dc:date>2018-05-10T06:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: Row wise comparison  in Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Row-wise-comparison-in-Pivot-table/m-p/12618#M2061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried, but its only working for Totals, not for all plants (which are used as columns).&lt;/P&gt;&lt;P&gt;I have also tried as:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-size: 13.3333px; font-family: inherit; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;if(Sum(&amp;lt;Total Plant&amp;gt;Actual) &amp;lt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Sum(&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&amp;lt;Total Plant&amp;gt;&lt;/EM&gt;MTD Target), Red(), Green())&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2018 06:29:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Row-wise-comparison-in-Pivot-table/m-p/12618#M2061</guid>
      <dc:creator>rkspareek1992</dc:creator>
      <dc:date>2018-05-10T06:29:14Z</dc:date>
    </item>
  </channel>
</rss>

