Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
count(Maintenance)
=count(if(StartDate <= CurrentDate) and (StartDate <= CurrentDate) and
(StartDate >= CurrentDate) and (StartDate >= CurrentDate));
Thanks in Advance!
Hi!
It looks like your expression is not completed. To make it easier I will break it down:
=count(
if(
StartDate <= CurrentDate and StartTime <= CurrentTime and EndDate >= CurrentDate and EndTime >= CurrentTime
,Maintenance
)
);
Remember the if statement works like:
if( criteria=met
,THEN
,ELSE)
BR
Jakob Berglund
What ??
Let me reduce your if condition to its effective part:
StartDate = CurrentDate
Please try to add some more details what you try to do.
Hi,
You can write in this way
count(if(startDate<=CurrentDate and startDate>=CurrentDate ,Maintenance))
You have written "startDate<=CurrentDate " two times which i am not able to understand i think this should be one time only if condition is same and fields are same.
Regards,
Ravi
MY BAD SORRY! IT SHOULD BE MORE LIKE THIS:
=count(if(StartDate <= CurrentDate) and (StartTime <= CurrentTime) and
(EndDate >= CurrentDate) and (EndTime >= CurrentTime));
Hi!
It looks like your expression is not completed. To make it easier I will break it down:
=count(
if(
StartDate <= CurrentDate and StartTime <= CurrentTime and EndDate >= CurrentDate and EndTime >= CurrentTime
,Maintenance
)
);
Remember the if statement works like:
if( criteria=met
,THEN
,ELSE)
BR
Jakob Berglund