I have a yxdb file with month end valuation dates in it, the field is a date field (i.e. not datetime). I want to filter for the last day of the previous month, if I drop a filter onto the canvas and select the 31st of August 2023, I get data. If I replace the static date with this it returns no results:
DateTimeAdd(DateTimeTrim(DateTimeToday(),'FirstOfMonth'),-1,'day')
I have added a new field to the dataset with a formula and added in the above date formula, then added a filter and said to filter when Valuation Date = My New Date Field - I get results! Why when I use the DateTimeAdd(DateTimeTrim(DateTimeToday(),'FirstOfMonth'),-1,'day') formula in a filter does it not work?