Skip to content
Advertisement

Count for each day return wrong value

The below code gives a count of 1 for each day, and accumulates from today (13/04/2021) til the end of the month and sums them for Saturdays, Sundays and Week days.

For today (13/04/2021) I would expect the count to be Saturday = 2, Sunday = 2, and Weekdays to be 14 but instead I get 18 til the end of April – why is that?

enter image description here

Advertisement

Answer

I think it is because ‘between’ includes 1 and 7 again, below query should give you remaining 14 week days

enter image description here

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement