Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Comparing a date within a range

Hey everyone,

I am trying to sum all values that have a reporting date with the last 3 months. I am looking for only charges, [TX Type] = {'C'}. Is there a way to say:

Reporting Date > AddMonths(Date(now(0))),-3)


This is the expression I currently have, obviously with the Reporting Date bit missing.

sum(

      {<

       [TX Type] = {'C'}

       ,[Reporting Date]  = _?_?_?_?_?_?_?_?_?_

      >} [Amount])


Thanks so much.

2 Replies
Anil_Babu_Samineni

Perhaps this?

sum({< [TX Type] = {'C'} ,[Reporting Date]  = {"$(=AddMonths(Date(now(0)),-3))"} >} [Amount])

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
marinadorcassio1
Partner - Creator
Partner - Creator

Hi,


More precisely, I think :

sum({< [TX Type] = {'C'} ,[Reporting Date]  = {" > $(=AddMonths(Date(now(0)),-3))"} >} [Amount])