I am using one filter tool which is filtering the data based on month values. If today's date is between 1-8 then last month is the current month else last to last is the current month.
Formula as follows:
([Date New] = Left(DateTimeAdd(Left(DateTimeToday(),8)+"01",IIF(DateTimeDay(DateTimeToday())<=8,-2,-1),"months"), 10))
I was the user to input the value 8 at run time. So that user can decide that the date should be less than 8 or any other date(10 or 12).
How to achieve this using interface?