Forum Discussion

Shivam_210121's avatar
Shivam_210121
New Member
4 years ago

Date ADD function, working incorrectly while selecting end of the month dates.

My dateadd function is giving me a problem. Whenever I select a date from 21st Apr'22 - 30th Apr'22 for the sum of sales, date add gives me a sum of values from 21st Mar'22 - 31st Mar'22 (End of the month) Technically, I want to compare sales from
21st Apr'22 - 30th Apr'22  v/s
21st Mar'22 - 30th Mar'22.

- I have a separate date table.
- There are no missing dates in the data, (i.e., all dates have some data)

Kindly help.

1 Reply