Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Why this expression is working while this other won't

Hello everyone.

I'm trying to understand why this formula

"COUNT({<[subscribe_date.autoCalendar.Year] = {$(vMaxSubscribeYear)}>}subscribe_date)"

is working while

"COUNT({<YEAR([subscribe_date.autoCalendar.Date]) = {$(vMaxSubscribeYear)}>}subscribe_date)" isn't.

YEAR([subscribe_date.autoCalendar.Date] shouldn't be equal to [subscribe_date.autoCalendar.Year]?

What am I misunderstanding?

1 Solution

Accepted Solutions
sunny_talwar

You are not allowed to use functions such as Year(), Sum(), Min() on the left hand side of the set modifier... you can only use field names

View solution in original post

4 Replies
sunny_talwar

You are not allowed to use functions such as Year(), Sum(), Min() on the left hand side of the set modifier... you can only use field names

Anonymous
Not applicable
Author

Now it's clearier, thanks. Quite bothersome IMHO. May I use variables on the left side of the set modifier?

sunny_talwar

If they evaluate to a field name... then yes... but if not... then you can't

Anonymous
Not applicable
Author

Ok, understood, many thanks.