Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Expression Help

Hi All,

I working on an xirr calculation and wanted to excluded company "ABC". I added '-' after Company to exclude 'ABC' but not getting any results.

=XIRR(aggr({<Company-='ABC.'>},Company,Amount),[Date])

Any feedback greatly appreciated!

Thanks,

Frank

7 Replies
satishkurra
Specialist II
Specialist II

Try this

=XIRR(aggr(Sum({<Company-='ABC.'>},Amount),Company),[Date])

sunny_talwar

Set Analysis doesn't seem right. Missing Curly brackets:

=XIRR(Aggr(Only({<Company-={'ABC.'}>}Amount), Company), Date)

Anonymous
Not applicable
Author

Thanks Guys, still not working.

cesaraccardi
Specialist
Specialist

Hi,

What if you write it like this:

xirr(total<Company> sum({$<Company-={'ABC.'}>} Amount), Date)

Cesar

Anonymous
Not applicable
Author

Didn't work.

Anonymous
Not applicable
Author

Pls provide error you get when trying the above suggested expressions. When using aggr we need to have an aggregation function. You must have did a thorough check I am sure, but just want to rule out any typos here, is it ABC. or ABC ?

Try this:

XIRR(Aggr(Sum({<Company-={"ABC*"}>}Amount), Company), Date)

Anonymous
Not applicable
Author

Thanks All for the replies.

I figure it out by removing Aggr and Sum from the above expression.