<?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: Calculate difference between feilds of a column in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculate-difference-between-feilds-of-a-column/m-p/1654126#M448031</link>
    <description>&lt;P&gt;Basically in the year feild, I want one more value as 2018-2019.&amp;nbsp; Tried with creating a different expression, it shows 2 columns with difference. One for 2018 and anathor for 2019&lt;/P&gt;</description>
    <pubDate>Wed, 04 Dec 2019 14:14:27 GMT</pubDate>
    <dc:creator>sujit_nath</dc:creator>
    <dc:date>2019-12-04T14:14:27Z</dc:date>
    <item>
      <title>Calculate difference between feilds of a column</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-difference-between-feilds-of-a-column/m-p/1654054#M448025</link>
      <description>&lt;P&gt;I am loading multiple fields, YEAR being one of them. YEAR contains 2 values, 2018 and 2019. I am showing sum(sales) as an expression in straight table. Now I want to show the difference of sales in 2 years. How do I do that? I can not use set expression as these years are dynamic. Somehow the data needs to look like -&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Other dimensions&lt;/TD&gt;&lt;TD&gt;YEAR&lt;/TD&gt;&lt;TD&gt;2018&lt;/TD&gt;&lt;TD&gt;2019&lt;/TD&gt;&lt;TD&gt;difference&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;200&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;300&lt;/TD&gt;&lt;TD&gt;250&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How shall I achieve this.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:47:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-difference-between-feilds-of-a-column/m-p/1654054#M448025</guid>
      <dc:creator>sujit_nath</dc:creator>
      <dc:date>2024-11-16T01:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate difference between feilds of a column</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-difference-between-feilds-of-a-column/m-p/1654068#M448026</link>
      <description>&lt;P&gt;Try to use something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Normal table (bottom - top)
sum(sales) - below(sum(sales)) 
sum(sales) - above(sum(sales)) 
Pivot: (left - right)
sum(sales) - before(sum(sales)) 
sum(sales) - after(sum(sales)) &lt;/LI-CODE&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;tim&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 12:44:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-difference-between-feilds-of-a-column/m-p/1654068#M448026</guid>
      <dc:creator>zhadrakas</dc:creator>
      <dc:date>2019-12-04T12:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate difference between feilds of a column</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-difference-between-feilds-of-a-column/m-p/1654104#M448029</link>
      <description>&lt;P&gt;I am unable to do that&amp;nbsp; because I have only one expression, and multiple dimensions. The column YEAR is a dimension. Where do I try the options you mentioned?&lt;/P&gt;&lt;P&gt;The data needed is as:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;2018&lt;/TD&gt;&lt;TD&gt;2019&lt;/TD&gt;&lt;TD&gt;diff (This is calculated one)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;200&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2018 and 2019 are values for year.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 13:49:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-difference-between-feilds-of-a-column/m-p/1654104#M448029</guid>
      <dc:creator>sujit_nath</dc:creator>
      <dc:date>2019-12-04T13:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate difference between feilds of a column</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-difference-between-feilds-of-a-column/m-p/1654109#M448030</link>
      <description>&lt;P&gt;you need to create another expression like "absolute difference".&lt;/P&gt;&lt;P&gt;there you try the things i mentioned.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;tim&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 13:53:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-difference-between-feilds-of-a-column/m-p/1654109#M448030</guid>
      <dc:creator>zhadrakas</dc:creator>
      <dc:date>2019-12-04T13:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate difference between feilds of a column</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-difference-between-feilds-of-a-column/m-p/1654126#M448031</link>
      <description>&lt;P&gt;Basically in the year feild, I want one more value as 2018-2019.&amp;nbsp; Tried with creating a different expression, it shows 2 columns with difference. One for 2018 and anathor for 2019&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 14:14:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-difference-between-feilds-of-a-column/m-p/1654126#M448031</guid>
      <dc:creator>sujit_nath</dc:creator>
      <dc:date>2019-12-04T14:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate difference between feilds of a column</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-difference-between-feilds-of-a-column/m-p/1654326#M448051</link>
      <description>&lt;P&gt;If you simply need the difference between two columns, you can:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;edit chart and add a new expression&lt;/LI&gt;
&lt;LI&gt;open the expression editor&lt;/LI&gt;
&lt;LI&gt;insert your expression:&lt;STRONG&gt;&amp;nbsp;=[Total Sales]-[Gross Profit]&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;name the column: &lt;STRONG&gt;ie: Net Sales&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;apply and save the chart&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Not sure if this is what you are after or not but hope it guides you in the right direction.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Calculated Column.PNG" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/24950i502B2BDCA2211FE1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Calculated Column.PNG" alt="Calculated Column.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 20:31:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-difference-between-feilds-of-a-column/m-p/1654326#M448051</guid>
      <dc:creator>Frank_S</dc:creator>
      <dc:date>2019-12-04T20:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate difference between feilds of a column</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-difference-between-feilds-of-a-column/m-p/1654387#M448056</link>
      <description>&lt;P&gt;Hi Frank, Thanks for the solution, but the issue is that I have only one expression. The values I see on chart are under a dimension containing 2 values.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 03:41:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-difference-between-feilds-of-a-column/m-p/1654387#M448056</guid>
      <dc:creator>sujit_nath</dc:creator>
      <dc:date>2019-12-05T03:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate difference between feilds of a column</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-difference-between-feilds-of-a-column/m-p/1654393#M448057</link>
      <description>&lt;P&gt;&amp;nbsp;Hi Frank, This is how my data looks like (dummy data due to restrictions)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 451px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/24957iFA335387A0D0D091/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only expression is sum(sales) and I want to add a difference column beside Q1 and Q2, that will tell the difference in sales made in both quarters&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 05:05:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-difference-between-feilds-of-a-column/m-p/1654393#M448057</guid>
      <dc:creator>sujit_nath</dc:creator>
      <dc:date>2019-12-05T05:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate difference between feilds of a column</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-difference-between-feilds-of-a-column/m-p/1654549#M448079</link>
      <description>&lt;P&gt;check this thread&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-App-Development/Dimension-quot-difference-quot-in-a-pivot-table/td-p/466192" target="_blank"&gt;https://community.qlik.com/t5/QlikView-App-Development/Dimension-quot-difference-quot-in-a-pivot-table/td-p/466192&lt;/A&gt;&lt;/P&gt;&lt;P&gt;for a workaround where you use the total row to show the difference.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;if(Seconddimensionality()=1, Expression for Total, Normal Expression)&lt;/LI-CODE&gt;&lt;P&gt;You can create a new expression with Seconddimensionality() to see which number you need to use for the if condition:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 11:58:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-difference-between-feilds-of-a-column/m-p/1654549#M448079</guid>
      <dc:creator>zhadrakas</dc:creator>
      <dc:date>2019-12-05T11:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate difference between feilds of a column</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-difference-between-feilds-of-a-column/m-p/1656741#M448372</link>
      <description>&lt;P&gt;You mentioned a straight table early on, but this appears to be a pivot table, but I am going to toss out the following to have a look just in case it might work for you:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/ChartFunctions/InterRecordFunctions/column.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/ChartFunctions/InterRecordFunctions/column.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 19:49:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-difference-between-feilds-of-a-column/m-p/1656741#M448372</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-12-11T19:49:18Z</dc:date>
    </item>
  </channel>
</rss>

