Hello. New EspoCRM-user here. I do have some SQL knowledge.
A little background: we store donations in our system. People can donate 'oneoff', or frequently (monthly, annually)
I was asked to make a report where i list people that, in the previous month, have stopped their frequent donation.
So i am planning to establish the last donation of a person that is listed as a 'frequent' donor, and test whether that last donation is more than x days in the past.
I am looking at 'complex expressions' ( https://docs.espocrm.com/user-guide/...x-expressions/ ), and found a GREATEST function. So i thought i could do:
GREATEST(donatiedatum)<'2024-01-01'
(the field tested translates to 'donation date')
(on https://docs.espocrm.com/administrat...mula/datetime/ i found the date format should be like '2024-01-01')
But whether i use the above, or the inverse (GREATEST(donatiedatum)>'2024-01-01'): i do not get any results.
I was unable to find any/relevant examples of the use of this function. Anybody any tips on how to use this function / what i'm doing wrong?
A little background: we store donations in our system. People can donate 'oneoff', or frequently (monthly, annually)
I was asked to make a report where i list people that, in the previous month, have stopped their frequent donation.
So i am planning to establish the last donation of a person that is listed as a 'frequent' donor, and test whether that last donation is more than x days in the past.
I am looking at 'complex expressions' ( https://docs.espocrm.com/user-guide/...x-expressions/ ), and found a GREATEST function. So i thought i could do:
GREATEST(donatiedatum)<'2024-01-01'
(the field tested translates to 'donation date')
(on https://docs.espocrm.com/administrat...mula/datetime/ i found the date format should be like '2024-01-01')
But whether i use the above, or the inverse (GREATEST(donatiedatum)>'2024-01-01'): i do not get any results.
I was unable to find any/relevant examples of the use of this function. Anybody any tips on how to use this function / what i'm doing wrong?
Comment