Hi @HUIL,
Your Day and Weekday fields (I’m assuming you’re also using the extract function to get Weekday) both return an integer but DayName is a string. Your switch function can’t return different data types. If you use DayName instead of Day in your switch function, you need to change Weekday to toString(Weekday).