<?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: Using expressions inside other expressions problems. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-expressions-inside-other-expressions-problems/m-p/1198673#M880546</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes! Thank you that seems to work. This looks like roughly the same thing you posted previously. The only difference is that you're using the full formula here for "Values" instead or just the expression name "Values."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a reason why i need to put this entire complicated formula within the Aggr() brackets? To me it seems like I should just be able to use something like the below, instead of including that entire long formula within the Aggr() function. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-style: inherit;"&gt;=&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;Sum(Total &amp;lt;Parent&amp;gt;&lt;/SPAN&gt; Aggr(OnlyNegValues&lt;/STRONG&gt;&lt;STRONG style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-style: inherit;"&gt;)), Parent&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;, Counterparty_SECFIN)&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-style: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Why do i have to keep using this super long formula? why can't i just use the previous expression name that already contains that formula? Am I missing something here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Oct 2016 17:12:55 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-10-17T17:12:55Z</dc:date>
    <item>
      <title>Using expressions inside other expressions problems.</title>
      <link>https://community.qlik.com/t5/QlikView/Using-expressions-inside-other-expressions-problems/m-p/1198662#M880535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All, I'm new to Qlikview and this is my first post. I've found this forum super useful so far so hopefully you can help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have Data in a pivot table that looks roughly like the below, and I'm having a really frustrating time trying to use the values of previous expressions in later ones.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a column of Values, and then another expression "OnlyNegValues" that uses an if statement to grab only the negative values (change any positive value to 0). This part works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create a column that sums the "OnlyNegValues" column for each &lt;STRONG&gt;parent&lt;/STRONG&gt;, which i thought should be really simple but I feel like I've tried everything and can't get it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought it should be some simple formula like =Aggr(sum(OnlyNegValues), Parent) but that doesn't work. I've tried a bunch of different things, sometimes i can get it to sum up ALL of the values as I show here (not just the negative ones) other times I get just an entire column of zeros. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help you have is greatly appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 780px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl70" height="17" style="text-align: center;" width="98"&gt;Parent&lt;/TD&gt;&lt;TD class="xl71" style="border-left: none; text-align: center;" width="98"&gt;Child&lt;/TD&gt;&lt;TD class="xl72" style="text-align: center;" width="136"&gt;Values&lt;/TD&gt;&lt;TD class="xl72" style="border-left: none; text-align: center;" width="126"&gt;OnlyNegValues&lt;/TD&gt;&lt;TD class="xl72" style="border-left: none; text-align: center;" width="196"&gt;Sum of Negative Values - WRONG&lt;/TD&gt;&lt;TD class="xl72" style="border-left: none; text-align: center;" width="126"&gt;DESRIED&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none; text-align: center;"&gt;&lt;SPAN style="color: #0000ff;"&gt;P&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl73" style="border-top: none; border-left: none; text-align: center;"&gt;&lt;SPAN style="color: #0000ff;"&gt;C1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none; text-align: center;"&gt;&lt;SPAN style="color: #0000ff;"&gt;$1.4&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none; text-align: center;"&gt;&lt;SPAN style="color: #0000ff;"&gt;$0.00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none; text-align: center;"&gt;&lt;SPAN style="color: #0000ff;"&gt;-&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none; text-align: center;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none; text-align: center;"&gt;&lt;SPAN style="color: #0000ff;"&gt;P&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl73" style="border-top: none; border-left: none; text-align: center;"&gt;&lt;SPAN style="color: #0000ff;"&gt;C2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none; text-align: center;"&gt;&lt;SPAN style="color: #0000ff;"&gt;$0.5&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none; text-align: center;"&gt;&lt;SPAN style="color: #0000ff;"&gt;$0.00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none; text-align: center;"&gt;&lt;SPAN style="color: #0000ff;"&gt;-&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none; text-align: center;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none; text-align: center;"&gt;&lt;SPAN style="color: #0000ff;"&gt;P&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl73" style="border-top: none; border-left: none; text-align: center;"&gt;&lt;SPAN style="color: #0000ff;"&gt;C3&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none; text-align: center;"&gt;&lt;SPAN style="color: #0000ff;"&gt;($0.6)&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none; text-align: center;"&gt;&lt;SPAN style="color: #0000ff;"&gt;($0.63)&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none; text-align: center;"&gt;&lt;SPAN style="color: #0000ff;"&gt;-&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none; text-align: center;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none; text-align: center;"&gt;&lt;SPAN style="color: #0000ff;"&gt;P&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl73" style="border-top: none; border-left: none; text-align: center;"&gt;&lt;SPAN style="color: #0000ff;"&gt;C4&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none; text-align: center;"&gt;&lt;SPAN style="color: #0000ff;"&gt;($2.2)&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none; text-align: center;"&gt;&lt;SPAN style="color: #0000ff;"&gt;($2.21)&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none; text-align: center;"&gt;&lt;SPAN style="color: #0000ff;"&gt;-1.0031640270963&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl72" style="border-top: none; border-left: none; text-align: center;"&gt;&lt;SPAN style="color: #0000ff;"&gt;-2.84&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none; text-align: center;"&gt;&lt;SPAN style="color: #ff6600;"&gt;P2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl73" style="border-top: none; border-left: none; text-align: center;"&gt;&lt;SPAN style="color: #ff6600;"&gt;C5&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none; text-align: center;"&gt;&lt;SPAN style="color: #ff6600;"&gt;$1.0&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none; text-align: center;"&gt;&lt;SPAN style="color: #ff6600;"&gt;$0.00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none; text-align: center;"&gt;&lt;/TD&gt;&lt;TD class="xl72" style="border-top: none; border-left: none; text-align: center;"&gt;&lt;SPAN style="text-decoration: underline; color: #ff6600;"&gt; &lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none; text-align: center;"&gt;&lt;SPAN style="color: #ff6600;"&gt;P2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl73" style="border-top: none; border-left: none; text-align: center;"&gt;&lt;SPAN style="color: #ff6600;"&gt;C6&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none; text-align: center;"&gt;&lt;SPAN style="color: #ff6600;"&gt;($0.5)&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none; text-align: center;"&gt;&lt;SPAN style="color: #ff6600;"&gt;($0.50)&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none; text-align: center;"&gt;&lt;SPAN style="color: #ff6600;"&gt;0.5&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl72" style="border-top: none; border-left: none; text-align: center;"&gt;&lt;SPAN style="color: #ff6600;"&gt;-0.5&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-expressions-inside-other-expressions-problems/m-p/1198662#M880535</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using expressions inside other expressions problems.</title>
      <link>https://community.qlik.com/t5/QlikView/Using-expressions-inside-other-expressions-problems/m-p/1198663#M880536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try rangesum like in below link?&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/81914"&gt;Range Sum&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you mind sharing your sample app if possible ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2016 20:28:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-expressions-inside-other-expressions-problems/m-p/1198663#M880536</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2016-10-14T20:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using expressions inside other expressions problems.</title>
      <link>https://community.qlik.com/t5/QlikView/Using-expressions-inside-other-expressions-problems/m-p/1198664#M880537</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 style="text-decoration: line-through;"&gt;Sum(TOTAL &amp;lt;Child&amp;gt; Aggr(If(Sum(Value) &amp;gt; 0, Sum(Value)), Parent, Child))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Total needs to be on the Parent field&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Sum(TOTAL &amp;lt;&lt;SPAN style="color: #ff0000;"&gt;Parent&lt;/SPAN&gt;&amp;gt; Aggr(If(Sum(Value) &amp;gt; 0, Sum(Value)), Parent, Child))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2016 20:31:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-expressions-inside-other-expressions-problems/m-p/1198664#M880537</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-14T20:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: Using expressions inside other expressions problems.</title>
      <link>https://community.qlik.com/t5/QlikView/Using-expressions-inside-other-expressions-problems/m-p/1198665#M880538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks guys. I'd love to post a sample app but this is part of a very large spreadsheet that contains sensitive information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there an easy way I can just export this one tab of the app to share with with you? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2016 20:38:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-expressions-inside-other-expressions-problems/m-p/1198665#M880538</guid>
      <dc:creator />
      <dc:date>2016-10-14T20:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using expressions inside other expressions problems.</title>
      <link>https://community.qlik.com/t5/QlikView/Using-expressions-inside-other-expressions-problems/m-p/1198666#M880539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See if this helps&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-1290"&gt;Preparing examples for Upload - Reduction and Data Scrambling&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2016 21:08:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-expressions-inside-other-expressions-problems/m-p/1198666#M880539</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-14T21:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: Using expressions inside other expressions problems.</title>
      <link>https://community.qlik.com/t5/QlikView/Using-expressions-inside-other-expressions-problems/m-p/1198667#M880540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try what Sunny suggested? Can you just copy some 100 rows (and mask the values) of data onto excel or use sunny's link for scrambling data and upload accordingly. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2016 21:20:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-expressions-inside-other-expressions-problems/m-p/1198667#M880540</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2016-10-14T21:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Using expressions inside other expressions problems.</title>
      <link>https://community.qlik.com/t5/QlikView/Using-expressions-inside-other-expressions-problems/m-p/1198668#M880541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried Sunny's suggestion and I just get a column full of 0s, doesn't seem to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried to scramble and reduce the data in my app so I can post a sample, I'll reply to my original post with a sample file. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 13:58:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-expressions-inside-other-expressions-problems/m-p/1198668#M880541</guid>
      <dc:creator />
      <dc:date>2016-10-17T13:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using expressions inside other expressions problems.</title>
      <link>https://community.qlik.com/t5/QlikView/Using-expressions-inside-other-expressions-problems/m-p/1198669#M880542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried all the suggestions in the thread so far and nothing seems to be working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached a scrambled sample of my app, hopefully that helps. Thanks in advance for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 14:26:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-expressions-inside-other-expressions-problems/m-p/1198669#M880542</guid>
      <dc:creator />
      <dc:date>2016-10-17T14:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using expressions inside other expressions problems.</title>
      <link>https://community.qlik.com/t5/QlikView/Using-expressions-inside-other-expressions-problems/m-p/1198670#M880543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to point out the expected output based on your attached sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 16:43:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-expressions-inside-other-expressions-problems/m-p/1198670#M880543</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-17T16:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using expressions inside other expressions problems.</title>
      <link>https://community.qlik.com/t5/QlikView/Using-expressions-inside-other-expressions-problems/m-p/1198671#M880544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For instance for Parent Liqwjxyz (sorry for the scrambling) I would expect to see a -0.3 (or -0.286) for ideally both of these rows in the "Non netted" column:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="qv example.png" class="jive-image image-1" height="134" src="/legacyfs/online/140876_qv example.png" style="height: 134px; width: 776.449px;" width="776" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or for Parent "Lzdc pb Qmze Wyfzjc" I would expect to see a -0.5 in the Non netted column for both of these rows in the Non Netted column:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="qv example 2.png" class="jive-image image-2" height="131" src="/legacyfs/online/140877_qv example 2.png" style="height: 131px; width: 745.509px;" width="746" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 16:51:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-expressions-inside-other-expressions-problems/m-p/1198671#M880544</guid>
      <dc:creator />
      <dc:date>2016-10-17T16:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Using expressions inside other expressions problems.</title>
      <link>https://community.qlik.com/t5/QlikView/Using-expressions-inside-other-expressions-problems/m-p/1198672#M880545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="140875" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/140875_Capture.PNG" style="height: 89px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=&lt;SPAN style="color: #ff0000;"&gt;Sum(Total &amp;lt;Parent&amp;gt;&lt;/SPAN&gt; Aggr(if(((Sum({$&amp;lt;Counterparty_SECFIN-={"$('-'))"},Scenario_Name={'Risk Off'}&amp;gt;} CV_dirty_MV_PC)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({$&amp;lt;CV_reserve_mark-={'(none)'},Scenario_Name={'Risk Off'},CV_Instrument_type={'Bond','ABS','Index Bond','CP'}&amp;gt;} if(CV_collateral=Forward_Issue_ID, Forward_Issue_MV,0))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;+&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({$&amp;lt;Counterparty_SECFIN-={"$('-'))"},Scenario_Name={'Risk Off'}&amp;gt;} LST_scenario1_total_PL)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({$&amp;lt;CV_reserve_mark-={'(none)'},Scenario_Name={'Risk Off'},CV_Instrument_type={'Bond','ABS','Index Bond','CP'}&amp;gt;} if(CV_collateral=Forward_Issue_ID, Forward_Issue_Underlying_PNL,0)))/1000000000)&amp;gt;0,0, ((Sum({$&amp;lt;Counterparty_SECFIN-={"$('-'))"},Scenario_Name={'Risk Off'}&amp;gt;} CV_dirty_MV_PC)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({$&amp;lt;CV_reserve_mark-={'(none)'},Scenario_Name={'Risk Off'},CV_Instrument_type={'Bond','ABS','Index Bond','CP'}&amp;gt;} if(CV_collateral=Forward_Issue_ID, Forward_Issue_MV,0))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;+&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({$&amp;lt;Counterparty_SECFIN-={"$('-'))"},Scenario_Name={'Risk Off'}&amp;gt;} LST_scenario1_total_PL)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({$&amp;lt;CV_reserve_mark-={'(none)'},Scenario_Name={'Risk Off'},CV_Instrument_type={'Bond','ABS','Index Bond','CP'}&amp;gt;} if(CV_collateral=Forward_Issue_ID, Forward_Issue_Underlying_PNL,0)))/1000000000)), Parent&lt;SPAN style="color: #ff0000;"&gt;, Counterparty_SECFIN)&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 17:06:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-expressions-inside-other-expressions-problems/m-p/1198672#M880545</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-17T17:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using expressions inside other expressions problems.</title>
      <link>https://community.qlik.com/t5/QlikView/Using-expressions-inside-other-expressions-problems/m-p/1198673#M880546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes! Thank you that seems to work. This looks like roughly the same thing you posted previously. The only difference is that you're using the full formula here for "Values" instead or just the expression name "Values."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a reason why i need to put this entire complicated formula within the Aggr() brackets? To me it seems like I should just be able to use something like the below, instead of including that entire long formula within the Aggr() function. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-style: inherit;"&gt;=&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;Sum(Total &amp;lt;Parent&amp;gt;&lt;/SPAN&gt; Aggr(OnlyNegValues&lt;/STRONG&gt;&lt;STRONG style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-style: inherit;"&gt;)), Parent&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;, Counterparty_SECFIN)&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-style: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Why do i have to keep using this super long formula? why can't i just use the previous expression name that already contains that formula? Am I missing something here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 17:12:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-expressions-inside-other-expressions-problems/m-p/1198673#M880546</guid>
      <dc:creator />
      <dc:date>2016-10-17T17:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using expressions inside other expressions problems.</title>
      <link>https://community.qlik.com/t5/QlikView/Using-expressions-inside-other-expressions-problems/m-p/1198674#M880547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunalety, Aggr() function do not work with column names. So whenever you have used Aggr() you will have to use the complete expression &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 17:22:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-expressions-inside-other-expressions-problems/m-p/1198674#M880547</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-17T17:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: Using expressions inside other expressions problems.</title>
      <link>https://community.qlik.com/t5/QlikView/Using-expressions-inside-other-expressions-problems/m-p/1198675#M880548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ahhhh ok thanks Sunny, that explains a lot about why I was struggling so much with this haha.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that true only of the Aggr() function? Are there any other functions where column names are off limits? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 17:24:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-expressions-inside-other-expressions-problems/m-p/1198675#M880548</guid>
      <dc:creator />
      <dc:date>2016-10-17T17:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using expressions inside other expressions problems.</title>
      <link>https://community.qlik.com/t5/QlikView/Using-expressions-inside-other-expressions-problems/m-p/1198676#M880549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aggr() is the only one that comes to mind right now. But if I hear about something, I will come back to update this post &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 17:43:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-expressions-inside-other-expressions-problems/m-p/1198676#M880549</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-17T17:43:45Z</dc:date>
    </item>
  </channel>
</rss>

