EOWEEK
The EOWEEK function takes the date as input and returns the ending date of the week. Node references and measures are also accepted as input arguments. Use DATE.SET() to set the format of the output date.
Optionally, you can specify an offset for the return date, which may be a positive or negative number. Additional weeks are added to or subtracted from the end date depending on the offset value.
Syntax
Arguments
date - The date which is passed as an input to the function. Required.
offset - Number of weeks to be added to or subtracted from the end date of the week. Optional.
Return value
Date representing the end of the week.
Example
![](https://docs.inforiver.com/~gitbook/image?url=https%3A%2F%2F3062809325-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FEbkCXCUXmtUq5tcnUtZE%252Fuploads%252FOLOcnZSPylPOroCMf5PQ%252Fimage.png%3Falt%3Dmedia%26token%3De27526ca-c7fd-438d-895c-394db9d65a43&width=768&dpr=4&quality=100&sign=ba43af52&sv=1)
If you wish to add one or two more weeks to the ending date, you can use 1 or 2 as offset values respectively.
![](https://docs.inforiver.com/~gitbook/image?url=https%3A%2F%2F3062809325-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FEbkCXCUXmtUq5tcnUtZE%252Fuploads%252FGtnF7xJfxGL4Ac1TBetb%252Fimage.png%3Falt%3Dmedia%26token%3Da30520ac-99f1-4a62-b94e-33a666ba2202&width=768&dpr=4&quality=100&sign=6a06cba&sv=1)
Last updated