<?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 to calculate combining several columns using restrictions? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-calculate-combining-several-columns-using-restrictions/m-p/264219#M495668</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Feb 2012 19:12:41 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-02-08T19:12:41Z</dc:date>
    <item>
      <title>How to calculate combining several columns using restrictions?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-combining-several-columns-using-restrictions/m-p/264216#M495658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to solve a data problem. I need to create a formula that takes the sum (based on column A) of "to X" value minus the corresponding value in "balance" for X. The similar will apply for the "to Y". Another restriction is that variables in column "C" will differ, so there must be a restriction for this as well. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 1164px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="98"&gt;A&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none;" width="98"&gt;B&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none;" width="98"&gt;C&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none;" width="98"&gt;Balance&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none;" width="98"&gt;To X&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none;" width="98"&gt;To Y&lt;/TD&gt;&lt;TD class="xl73" style="border-left: medium none;" width="92"&gt;TO ALLOCATE X&lt;/TD&gt;&lt;TD class="xl73" style="border-left: medium none;" width="92"&gt;TO ALLOCATE Y&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: medium none;"&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-top: medium none;"&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-top: medium none;"&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-top: medium none;"&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-top: medium none;"&gt;&lt;/TD&gt;&lt;TD class="xl67" style="border-top: medium none;"&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-top: medium none;"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: medium none;"&gt;&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none; border-top: medium none;"&gt;&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none; border-top: medium none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl69" height="17" style="border-top: medium none;"&gt;1&lt;/TD&gt;&lt;TD class="xl70" style="border-left: medium none; border-top: medium none;"&gt;X&lt;/TD&gt;&lt;TD class="xl70" style="border-left: medium none; border-top: medium none;"&gt;Z&lt;/TD&gt;&lt;TD class="xl70" style="border-left: medium none; border-top: medium none;"&gt;508.98&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border-left: medium none; border-top: medium none;"&gt;12.41&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border-left: medium none; border-top: medium none;"&gt;496.57&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl69" height="17" style="border-top: medium none;"&gt;1&lt;/TD&gt;&lt;TD class="xl70" style="border-left: medium none; border-top: medium none;"&gt;Y&lt;/TD&gt;&lt;TD class="xl70" style="border-left: medium none; border-top: medium none;"&gt;Z&lt;/TD&gt;&lt;TD class="xl70" style="border-left: medium none; border-top: medium none;"&gt;12,334.00&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border-left: medium none; border-top: medium none;"&gt;300.83&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border-left: medium none; border-top: medium none;"&gt;12,033.17&lt;/TD&gt;&lt;TD align="right" class="xl75"&gt;-195.74&lt;/TD&gt;&lt;TD align="right" class="xl75"&gt;195.74&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl69" height="17" style="border-top: medium none;"&gt;2&lt;/TD&gt;&lt;TD class="xl70" style="border-left: medium none; border-top: medium none;"&gt;X&lt;/TD&gt;&lt;TD class="xl70" style="border-left: medium none; border-top: medium none;"&gt;Z&lt;/TD&gt;&lt;TD class="xl70" style="border-left: medium none; border-top: medium none;"&gt;492.59&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border-left: medium none; border-top: medium none;"&gt;12.01&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border-left: medium none; border-top: medium none;"&gt;480.58&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl69" height="17" style="border-top: medium none;"&gt;2&lt;/TD&gt;&lt;TD class="xl70" style="border-left: medium none; border-top: medium none;"&gt;Y&lt;/TD&gt;&lt;TD class="xl70" style="border-left: medium none; border-top: medium none;"&gt;Z&lt;/TD&gt;&lt;TD class="xl70" style="border-left: medium none; border-top: medium none;"&gt;21,118.62&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border-left: medium none; border-top: medium none;"&gt;515.09&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border-left: medium none; border-top: medium none;"&gt;20,603.53&lt;/TD&gt;&lt;TD align="right" class="xl75"&gt;34.51&lt;/TD&gt;&lt;TD align="right" class="xl75"&gt;-34.51&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;The two last columns "TO ALLOCATE X" and "TO ALLOCATE Y" shows the numbers that I would like to achieve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone please help me with this issue? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Johanna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 15:07:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-combining-several-columns-using-restrictions/m-p/264216#M495658</guid>
      <dc:creator />
      <dc:date>2012-02-08T15:07:40Z</dc:date>
    </item>
    <item>
      <title>How to calculate combining several columns using restrictions?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-combining-several-columns-using-restrictions/m-p/264217#M495660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you explain again how you achieve your desired result please?&amp;nbsp; I can't work out how you got to -195.74, for example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 16:45:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-combining-several-columns-using-restrictions/m-p/264217#M495660</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-02-08T16:45:49Z</dc:date>
    </item>
    <item>
      <title>How to calculate combining several columns using restrictions?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-combining-several-columns-using-restrictions/m-p/264218#M495664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to get -195.74 I do 12.41+300.83-508.98. For Y I get 195.74 I do 496.57+12,033.17-12,334. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Johanna &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 18:30:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-combining-several-columns-using-restrictions/m-p/264218#M495664</guid>
      <dc:creator />
      <dc:date>2012-02-08T18:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate combining several columns using restrictions?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-combining-several-columns-using-restrictions/m-p/264219#M495668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 19:12:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-combining-several-columns-using-restrictions/m-p/264219#M495668</guid>
      <dc:creator />
      <dc:date>2012-02-08T19:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate combining several columns using restrictions?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-combining-several-columns-using-restrictions/m-p/264220#M495669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to send the expression instead? I don’t have a full license (yet), so I cannot open your file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2012 12:13:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-combining-several-columns-using-restrictions/m-p/264220#M495669</guid>
      <dc:creator />
      <dc:date>2012-02-10T12:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate combining several columns using restrictions?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-combining-several-columns-using-restrictions/m-p/264221#M495670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use a straight table with "A" as dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To Allocate x: =Sum([To X]) - Sum({&amp;lt;B = {'X'}&amp;gt;}Balance)&lt;/P&gt;&lt;P&gt;To Allocate y: =Sum([To Y]) - Sum({&amp;lt;B = {'Y'}&amp;gt;}Balance)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2012 18:45:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-combining-several-columns-using-restrictions/m-p/264221#M495670</guid>
      <dc:creator />
      <dc:date>2012-02-10T18:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate combining several columns using restrictions?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-combining-several-columns-using-restrictions/m-p/264222#M495671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for this, but the thing is that I need to have all columns that indicated in the first posting. Any ideas how to solve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Johanna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 10:12:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-combining-several-columns-using-restrictions/m-p/264222#M495671</guid>
      <dc:creator />
      <dc:date>2012-02-14T10:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate combining several columns using restrictions?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-combining-several-columns-using-restrictions/m-p/264223#M495672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Try with this expression&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; To Allocate X =Sum(TOTAL &amp;lt;A&amp;gt; [To X])-Aggr(Sum( {&amp;lt;B={'X'}&amp;gt;}Balance),A)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; To Allocate Y=Sum(TOTAL &amp;lt;A&amp;gt; [To X])-Aggr(Sum( {&amp;lt;B={'Y'}&amp;gt;}Balance),A) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 10:59:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-combining-several-columns-using-restrictions/m-p/264223#M495672</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-02-14T10:59:03Z</dc:date>
    </item>
  </channel>
</rss>

