Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
steliosg
Partner - Contributor III
Partner - Contributor III

Complex set analysis works only for equal sign(=)

Hello,

I'd like to make the below function works with sign >= instead of =

The initilal expression is

sum({$<CODE={'10'}, Date={"=Date(firstsortedvalue( {$<CashAmount={'>0'},Date= {'<$(=OpeningDate)'} >} Date,-Date),'DD/M/YYYY')"}>}Amount)

and it works.

The ideal is

sum({$<CODE={'10'}, Date={">=Date(firstsortedvalue( {$<CashAmount={'>0'},Date= {'<$(=OpeningDate)'} >} Date,-Date),'DD/M/YYYY')"}>}Amount)

but it doesn't work.

Any help will be welcomed!

1 Solution

Accepted Solutions
Anonymous
Not applicable

See if this helps, always works for me, my additions in bold:

sum({$<CODE={'10'}, Date={"$(=   '>=' & Date(firstsortedvalue( {$<CashAmount={'>0'},Date= {'<$(=OpeningDate)'} >} Date,-Date),'DD/M/YYYY')   )"}>}Amount)

Regards,

Michael

View solution in original post

2 Replies
Anonymous
Not applicable

See if this helps, always works for me, my additions in bold:

sum({$<CODE={'10'}, Date={"$(=   '>=' & Date(firstsortedvalue( {$<CashAmount={'>0'},Date= {'<$(=OpeningDate)'} >} Date,-Date),'DD/M/YYYY')   )"}>}Amount)

Regards,

Michael

steliosg
Partner - Contributor III
Partner - Contributor III
Author

Thanks a lot  Michael,

You save my night!

Best Regards