So if I want the week to be Sunday through Saturda...
# general
r
So if I want the week to be Sunday through Saturday - looks like I gotta use a formula like the one you originally linked to
k
You could use decode, get today's day of week, and then subtract the right amount of days to get desired result and that would always be right...
Case when {trandate} greater than ({today} - to_char({today},'d') -7) and less than ({today} -to_char({today},'d')-1) then {result} else 0 end
Got halfway through typing it and realized I didn't need a decode haha