on 08-28-2018 7:31 AM
Use LOAD_D(date column) if this is a Sunday; Otherwise, convert to Sunday’s date; Please note that the most likely day, other than Sunday, is Saturday, in which case simply add 1 to the date.
Experts-How to implement this in bods?
dateColumn - day_in_week(dateColumn) + 7 always returns (next) Sunday's date
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
dateColumn - day_in_week(dateColumn)
Hi Dirk,
USE LOAD_D if this is a Sunday; Otherwise, convert to Sunday’s date. For Monday to Wednesday, use the previous Sunday; For Thursday to Saturday, use the following Sunday.
How to implement this in BODS?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
isweekend(dateColumn) = 1 and isweekend(dateColumn + 1) =0
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.