
Anonymous Community User asked a question.
If statement returns "Y" or "N", I want to use this in a filter
I made a calculation field which returns "Y" or "N". I want to make a filter which only shows the items which returns "Y". I tried to make a if statement which returns 1 or 0 as a number but I receive the error that I make an statement to a number. I can't make a filter with a calculation field. Can anybody help me with a workaround? Thanks a lot! var today = moment().month() var Q1 = moment(@Q1).month() var Q2 = moment(@Q2).month() var Q3 = moment(@Q3).month() var Q4 = moment(@Q4).month() if (Q1 == today || Q2 == today || Q3 == today || Q4 == today){"Y"}else{"N"}