<?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 Conditional Expression with a filter in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditional-Expression-with-a-filter/m-p/322915#M118964</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 someone please help me with my formula in a pivot table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= if(Account &amp;lt;&amp;gt; 'GP%', sum(if(Type = 'Actual', Amount)), if (Account = 'GP%',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and this is where I need help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If Account = GP% then the formula for this is sum(AmountGP)/sum(AmountInv) however it needs to be filtered on Type = 'Actual' in the first place.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as I can work out to perform this I need to have the sum outside the brackets that include the Type.&amp;nbsp; This however gives me the wrong amount though as it is summing together the product of hte formula when I need it to work the other way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I filter on Type = 'Actual' and then perform my formula?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thankyou in advance, &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Nov 2011 07:17:00 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-11-16T07:17:00Z</dc:date>
    <item>
      <title>Conditional Expression with a filter</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Expression-with-a-filter/m-p/322915#M118964</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 someone please help me with my formula in a pivot table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= if(Account &amp;lt;&amp;gt; 'GP%', sum(if(Type = 'Actual', Amount)), if (Account = 'GP%',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and this is where I need help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If Account = GP% then the formula for this is sum(AmountGP)/sum(AmountInv) however it needs to be filtered on Type = 'Actual' in the first place.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as I can work out to perform this I need to have the sum outside the brackets that include the Type.&amp;nbsp; This however gives me the wrong amount though as it is summing together the product of hte formula when I need it to work the other way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I filter on Type = 'Actual' and then perform my formula?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thankyou in advance, &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2011 07:17:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Expression-with-a-filter/m-p/322915#M118964</guid>
      <dc:creator />
      <dc:date>2011-11-16T07:17:00Z</dc:date>
    </item>
    <item>
      <title>Conditional Expression with a filter</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Expression-with-a-filter/m-p/322916#M118965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you're trying to check for the accounts that start with 'GP'? Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(left(Account,2) &amp;lt;&amp;gt; 'GP',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({&amp;lt;Type={'Actual'}&amp;gt;} Amount),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({&amp;lt;Type={'Actual'}&amp;gt;} AmountGP)/sum({&amp;lt;Type={'Actual'}&amp;gt;} AmountInv)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2011 16:21:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Expression-with-a-filter/m-p/322916#M118965</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2011-11-16T16:21:09Z</dc:date>
    </item>
    <item>
      <title>Conditional Expression with a filter</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Expression-with-a-filter/m-p/322917#M118966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thankyou so much that was exactly what I needed!!!&amp;nbsp; BRILLIANT!!&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also sorry it took so long to get back to you - got pulled onto another project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fiona,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2011 00:01:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Expression-with-a-filter/m-p/322917#M118966</guid>
      <dc:creator />
      <dc:date>2011-12-01T00:01:47Z</dc:date>
    </item>
  </channel>
</rss>

