i want to run an analysis that displays data for the previous month.
so if i set up an agent to run say 1st day of every month, the data would display for the preceding month only.
i have created this field TIMESTAMPDIFF(SQL_TSI_MONTH,"Date (procedure)"."Date",CURRENT_DATE) which returns a value i thought i could filter on but the value returned isn't accurate.
For example if i run the reportĀ today to include data up to 26th july , early July values are 1 while later july values are 0. i would expect all july values to be 0, all june 1 etc.
Anyway above is probably notĀ the right approach. Is there a simpler and accurate way to achieve this?
Any help appreciated
thanks