Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
evgeniystuchalk
Partner - Creator II
Partner - Creator II

using 'less or equal' condition in set analysis

Hello every one!

i'm using this set expression to calculate tasks with passed time of completion:

Count({$<[Тип даты]={'*Срок выполнения задачи*'}, [1. День]={"$(=Date(Today(), 'DD.MM.YYYY'))"},[Статус задачи]={0}>}DISTINCT [ID задачи])+ sum({$<[Год]={"*"}>}0)

Highlighted part of expression must response to count only tasks, that have date of completion less than today. but this formula works only with "=" sign. if im using variants like [1. День]<{"$(=Date(Today(), 'DD.MM.YYYY'))"}, or [1. День]={"$(<Date(Today(), 'DD.MM.YYYY'))"}, calculation returns zero, and this is wrong.


So, what the problem?

1 Solution

Accepted Solutions
sunny_talwar

Try this:

Count({$<[Тип даты]={'*Срок выполнения задачи*'}, [1. День]={"$(='<' & Date(Today(), 'DD.MM.YYYY'))"},[Статус задачи]={0}>}DISTINCT [ID задачи])+ sum({$<[Год]={"*"}>}0)

View solution in original post

2 Replies
sunny_talwar

Try this:

Count({$<[Тип даты]={'*Срок выполнения задачи*'}, [1. День]={"$(='<' & Date(Today(), 'DD.MM.YYYY'))"},[Статус задачи]={0}>}DISTINCT [ID задачи])+ sum({$<[Год]={"*"}>}0)

evgeniystuchalk
Partner - Creator II
Partner - Creator II
Author

Mr. Sunny T, cool as always Your formula works. Thanks again.