<?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: How do I calculate a column - another column? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-do-I-calculate-a-column-another-column/m-p/508111#M189954</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bruno,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Total Mode you should also specify 'Sum of Rows' rather than the default 'Expression Total'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Nov 2013 16:06:30 GMT</pubDate>
    <dc:creator>marcus_malinow</dc:creator>
    <dc:date>2013-11-11T16:06:30Z</dc:date>
    <item>
      <title>How do I calculate a column - another column?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-calculate-a-column-another-column/m-p/508107#M189950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have attached a little table as an example of what I am trying to achieve. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the example, I have example people. They all need to be trained 6 hours, so 360 minutes. The 'Training Actual' column will show how much training they have done. The 'Training Target' will show the target they are to reach. If the 'Training Actual' is over 360, I want it to be counted as 360. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Qlikview, if I do:&lt;/P&gt;&lt;P&gt;IF('Training Actual' &amp;gt; 'Training Target', 0, 'Training Target' - 'Training Actual') ... it will give 61 because it takes the totals. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It doesn't calculate that for every individual person. If it did, it would give me the results in 'Training Required'. That is what I am trying to get but it's proving to be really hard in Qlikview right now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone knows how to do this, please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bruno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 14:13:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-calculate-a-column-another-column/m-p/508107#M189950</guid>
      <dc:creator />
      <dc:date>2013-11-11T14:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: How do I calculate a column - another column?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-calculate-a-column-another-column/m-p/508108#M189951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bruno,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a couple of things&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the expression you want is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF([Training Actual] &amp;gt; [Training Target], 0, [Training Target] - [Training Actual])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Total Mode you should also specify 'Sum of Rows' rather than the default 'Expression Total'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 14:19:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-calculate-a-column-another-column/m-p/508108#M189951</guid>
      <dc:creator>marcus_malinow</dc:creator>
      <dc:date>2013-11-11T14:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: How do I calculate a column - another column?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-calculate-a-column-another-column/m-p/508109#M189952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try: rangesum([Training Target],-rangemin(360,[Training Actual]))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 14:41:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-calculate-a-column-another-column/m-p/508109#M189952</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-11-11T14:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do I calculate a column - another column?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-calculate-a-column-another-column/m-p/508110#M189953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry, that was just an example so you guys understand what I was trying to do, that actual formula I have is more complex and correct but just giving me the totals instead of calculating the individual people.&lt;/P&gt;&lt;P&gt;The picture I attached was just from Excel, it was just to try to explain.. sorry for any confusion..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bruno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 15:55:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-calculate-a-column-another-column/m-p/508110#M189953</guid>
      <dc:creator />
      <dc:date>2013-11-11T15:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: How do I calculate a column - another column?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-calculate-a-column-another-column/m-p/508111#M189954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bruno,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Total Mode you should also specify 'Sum of Rows' rather than the default 'Expression Total'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 16:06:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-calculate-a-column-another-column/m-p/508111#M189954</guid>
      <dc:creator>marcus_malinow</dc:creator>
      <dc:date>2013-11-11T16:06:30Z</dc:date>
    </item>
  </channel>
</rss>

