Announcements
cancel
Showing results for
Did you mean:
Contributor III

## Sum if date equal to particular month

Hi All,

I would like to get the SUM of UNITS, if the RECEIPT DATE is equal to 'Jan'.

To get the Month of the date, i know it should be

Month([RECEIPT DATE])

Sum({\$<month([Receipt Date])={'Jan'}>} [Units])

1 Solution

Accepted Solutions

Perhaps these?

Sum(if(month(date)='jan', units))

Or

Sum({<date={"= month(date)='jan'"}>} units)

And I would always think

Sum({<monthfield={'jan'}>} units) where as monthfield is created in script if month field and date field are associated.

Before develop something, think If placed (The Right information | To the right people | At the Right time | In the Right place | With the Right context)

Perhaps these?

Sum(if(month(date)='jan', units))

Or

Sum({<date={"= month(date)='jan'"}>} units)

And I would always think

Sum({<monthfield={'jan'}>} units) where as monthfield is created in script if month field and date field are associated.