<?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: Difference &amp; % difference in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Difference-difference/m-p/1430810#M3207</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your response, it worked well.&lt;/P&gt;&lt;P&gt;I have one more question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create a bar chart and show only the numbers that are zero in GM 2016. This means the numbers are only in GM 2017 ( not the numbers that are present in both). As shown in figure below.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capturadsa.JPG" class="jive-image image-1" height="258" src="https://community.qlik.com/legacyfs/online/187679_Capturadsa.JPG" style="height: 258.31px; width: 302px;" width="302" /&gt;&lt;/P&gt;&lt;P&gt;I tried to use this formula but i failed. &lt;/P&gt;&lt;P&gt;If(fabs(Sum({$&amp;lt;[Year]={"2016"}&amp;gt;}[Gross Margin Actual Year])) &amp;lt;&amp;gt; 0 , Sum({$&amp;lt;[Year]={"2017"}&amp;gt;}[Gross Margin Actual Year]) ,0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help me in this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Dec 2017 10:34:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-12-20T10:34:57Z</dc:date>
    <item>
      <title>Difference &amp; % difference</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Difference-difference/m-p/1430808#M3205</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;Can you please help me in getting the correct difference &amp;amp; the % difference of two numbers (column GM 2016; column GM 2017), &lt;/P&gt;&lt;P&gt;I want to obtain the difference only to non 0 number that are present in both columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used "fabs(Sum({$&amp;lt;[Year]={"2016"}&amp;gt;}[Gross Margin Actual Year])) - (Sum({$&amp;lt;[Year]={"2017"}&amp;gt;}[Gross Margin Actual Year]))" &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to get the difference as the data in excel is in one column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2017 16:14:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Difference-difference/m-p/1430808#M3205</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-19T16:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: Difference &amp; % difference</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Difference-difference/m-p/1430809#M3206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;fabs(Sum({$&amp;lt;[Year]={"2016"}&amp;gt;}[Gross Margin Actual Year])) &amp;lt;&amp;gt; 0 and fabs(Sum({$&amp;lt;[Year]={"2017"}&amp;gt;}[Gross Margin Actual Year])) &amp;lt;&amp;gt; 0, &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;fabs(Sum({$&amp;lt;[Year]={"2016"}&amp;gt;}[Gross Margin Actual Year])) - (Sum({$&amp;lt;[Year]={"2017"}&amp;gt;}[Gross Margin Actual Year])))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically check if part 1 of the expression is not 0 and part 2 is not zero, then perform the calculation&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2017 16:47:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Difference-difference/m-p/1430809#M3206</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-19T16:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: Difference &amp; % difference</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Difference-difference/m-p/1430810#M3207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your response, it worked well.&lt;/P&gt;&lt;P&gt;I have one more question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create a bar chart and show only the numbers that are zero in GM 2016. This means the numbers are only in GM 2017 ( not the numbers that are present in both). As shown in figure below.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capturadsa.JPG" class="jive-image image-1" height="258" src="https://community.qlik.com/legacyfs/online/187679_Capturadsa.JPG" style="height: 258.31px; width: 302px;" width="302" /&gt;&lt;/P&gt;&lt;P&gt;I tried to use this formula but i failed. &lt;/P&gt;&lt;P&gt;If(fabs(Sum({$&amp;lt;[Year]={"2016"}&amp;gt;}[Gross Margin Actual Year])) &amp;lt;&amp;gt; 0 , Sum({$&amp;lt;[Year]={"2017"}&amp;gt;}[Gross Margin Actual Year]) ,0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help me in this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2017 10:34:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Difference-difference/m-p/1430810#M3207</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-20T10:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: Difference &amp; % difference</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Difference-difference/m-p/1430811#M3208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(fabs(Sum(TOTAL {$&amp;lt;[Year]={"2016"}&amp;gt;}[Gross Margin Actual Year])) = 0 , Sum({$&amp;lt;[Year]={"2017"}&amp;gt;}[Gross Margin Actual Year]), 0)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2017 16:49:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Difference-difference/m-p/1430811#M3208</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-20T16:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: Difference &amp; % difference</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Difference-difference/m-p/1430812#M3209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This doesnot work,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It gives all rows that are 0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2017 13:59:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Difference-difference/m-p/1430812#M3209</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-21T13:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: Difference &amp; % difference</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Difference-difference/m-p/1430813#M3210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;If(fabs(Sum(TOTAL {$&amp;lt;[Year]={"2016"}&amp;gt;}[Gross Margin Actual Year])) &lt;SPAN style="color: #ff0000;"&gt;&amp;gt;&lt;/SPAN&gt; 0 , Sum({$&amp;lt;[Year]={"2017"}&amp;gt;}[Gross Margin Actual Year]), 0)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2017 14:01:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Difference-difference/m-p/1430813#M3210</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-21T14:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: Difference &amp; % difference</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Difference-difference/m-p/1430814#M3211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, i have tried this and this gives the results of both 2016 &amp;amp; 2017 non zero numbers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2017 14:06:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Difference-difference/m-p/1430814#M3211</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-21T14:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Difference &amp; % difference</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Difference-difference/m-p/1430815#M3212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;also tried this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(fabs(Sum(TOTAL [Gross Margin Actual Year])) &amp;lt;&amp;gt; 0 , Sum({$&amp;lt;[Year]={"2017"}&amp;gt;}[Gross Margin Actual Year]), 0) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and this gives all the values of 2017 (which are in 2016 &amp;amp; 2017, but the numbers of 2017). But what i need is the values of only 2017 that means it may be new row or 2016 = 0 &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2017 14:10:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Difference-difference/m-p/1430815#M3212</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-21T14:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Difference &amp; % difference</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Difference-difference/m-p/1430816#M3213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you, once again, put it in words as to what you are looking to get?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2017 14:20:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Difference-difference/m-p/1430816#M3213</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-21T14:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: Difference &amp; % difference</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Difference-difference/m-p/1430817#M3214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the column GM 16 &amp;amp; GM 17 are in one column in excel. so I want to a bar graph that shows only the numbers of GM 17 which are highlighted in yellow. The criteria here is that these numbers are zero in 2016.&amp;nbsp; So I want thee numbers in graph not the ones that are in both the columns. &lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capturadsa.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/187870_Capturadsa.JPG" style="height: 530px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2017 14:25:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Difference-difference/m-p/1430817#M3214</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-21T14:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Difference &amp; % difference</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Difference-difference/m-p/1430818#M3215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this the expression you use for GM 16?&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;fabs(Sum({$&amp;lt;[Year]={"2016"}&amp;gt;}[Gross Margin Actual Year]))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are, then you want this, right?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(GM 16 = 0, GM17, 0)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is true, then I would think that one of these expression should work&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(&lt;/STRONG&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;fabs(Sum({$&amp;lt;[Year]={"2016"}&amp;gt;}[Gross Margin Actual Year])) = 0, &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({$&amp;lt;[Year]={"2017"}&amp;gt;}[Gross Margin Actual Year]), 0)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(&lt;/STRONG&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;fabs(Sum(TOTAL {$&amp;lt;[Year]={"2016"}&amp;gt;}[Gross Margin Actual Year])) = 0, &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({$&amp;lt;[Year]={"2017"}&amp;gt;}[Gross Margin Actual Year]), 0)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this doesn't work still, its time for you to share a sample so that we can see what in the world you are doing &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2017 14:29:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Difference-difference/m-p/1430818#M3215</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-21T14:29:14Z</dc:date>
    </item>
  </channel>
</rss>

