Returns the end of the week containing the date, shifted by an offset, if provided.
Last day of the week is considered to be a Saturday.
date: The input date.
offset: An optional number of offset weeks from the input date (integer, default - 0).
A datetime representing the end of the week for the given date value, with the offset, if specified.
range offset from -1 to 1 step 1 | project weekEnd = endofweek(datetime(2017-01-01 10:10:17), offset)