<?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 Apples to Apples Comparison in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Apples-to-Apples-Comparison/m-p/1142194#M374088</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello QV Gang,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Looking for some assistance in getting a desired result.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I still want to show the xyz corp, but don't want to include it in the % expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;as illustrated below it shows a 5% total but I want it to show 9.2%... since &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;there are no returns for xyz corp I don't want those sales values used in the calculation which would bring it to a 9.2%.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;The terminology I've always used is calling this an apples to apples comparison.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I'd rather not filter out the "bad apples" but show them in the report/chart as well...so those 'holes' can be fixed.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Also attached is this sample .qvw&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/133824_Capture.PNG" style="height: 195px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;&lt;P&gt;Brooks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 06 Aug 2016 01:07:06 GMT</pubDate>
    <dc:creator>brooksc57</dc:creator>
    <dc:date>2016-08-06T01:07:06Z</dc:date>
    <item>
      <title>Apples to Apples Comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Apples-to-Apples-Comparison/m-p/1142194#M374088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello QV Gang,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Looking for some assistance in getting a desired result.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I still want to show the xyz corp, but don't want to include it in the % expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;as illustrated below it shows a 5% total but I want it to show 9.2%... since &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;there are no returns for xyz corp I don't want those sales values used in the calculation which would bring it to a 9.2%.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;The terminology I've always used is calling this an apples to apples comparison.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I'd rather not filter out the "bad apples" but show them in the report/chart as well...so those 'holes' can be fixed.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Also attached is this sample .qvw&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/133824_Capture.PNG" style="height: 195px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;&lt;P&gt;Brooks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Aug 2016 01:07:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Apples-to-Apples-Comparison/m-p/1142194#M374088</guid>
      <dc:creator>brooksc57</dc:creator>
      <dc:date>2016-08-06T01:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: Apples to Apples Comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Apples-to-Apples-Comparison/m-p/1142195#M374089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14704757865547219" jivemacro_uid="_14704757865547219"&gt;
&lt;P&gt;Sum({$&amp;lt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; transtype={'returns'}&lt;/P&gt;
&lt;P&gt;&amp;nbsp; ,company-={'xyz corp'}&lt;/P&gt;
&lt;P&gt;&amp;gt;}&lt;/P&gt;
&lt;P&gt;dlr)&lt;/P&gt;
&lt;P&gt;/&lt;/P&gt;
&lt;P&gt;Sum({$&amp;lt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; transtype={'sales'}&lt;/P&gt;
&lt;P&gt;&amp;nbsp; ,company-={'xyz corp'}&lt;/P&gt;
&lt;P&gt;&amp;gt;}&lt;/P&gt;
&lt;P&gt;dlr)&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use above expression you will get this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screenshot_1.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/133812_Screenshot_1.jpg" style="height: 76px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Aug 2016 09:30:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Apples-to-Apples-Comparison/m-p/1142195#M374089</guid>
      <dc:creator>MindaugasBacius</dc:creator>
      <dc:date>2016-08-06T09:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: Apples to Apples Comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Apples-to-Apples-Comparison/m-p/1142196#M374090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am considering that calculation should be dynamic, so let's say if you have return 0 for abc corp then you should exclude abc corp and vice versa. In this case above expression will not work as company name is hard coded. You can use below expression in that case&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;transtype={'returns'}, company={"=Sum({$&amp;lt;transtype={'returns'}&amp;gt;}dlr)&amp;gt;0"}&amp;gt;}dlr)/&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;transtype={'sales'}, company={"=Sum({$&amp;lt;transtype={'returns'}&amp;gt;}dlr)&amp;gt;0"}&amp;gt;}dlr)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/133831_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Aug 2016 09:50:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Apples-to-Apples-Comparison/m-p/1142196#M374090</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-08-06T09:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: Apples to Apples Comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Apples-to-Apples-Comparison/m-p/1142197#M374091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks kushal...I was getting close to this method at first blush, but I wasn't including the double quotes so I was having 'error in expression'...your solution is perfect.&amp;nbsp; didn't see this type of post anywhere on qlik comm so I hope this question and your response will help lots of folks!!! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2016 03:33:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Apples-to-Apples-Comparison/m-p/1142197#M374091</guid>
      <dc:creator>brooksc57</dc:creator>
      <dc:date>2016-08-08T03:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: Apples to Apples Comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Apples-to-Apples-Comparison/m-p/1142198#M374092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks kindly for your response Mindaugas!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2016 03:36:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Apples-to-Apples-Comparison/m-p/1142198#M374092</guid>
      <dc:creator>brooksc57</dc:creator>
      <dc:date>2016-08-08T03:36:39Z</dc:date>
    </item>
  </channel>
</rss>

