Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi there,
is it possible to convert this to set analysis?
Sum (If(Year(INVOICEDATE)=2018 and INVOICEDATE <= AddMonths(today()-1,-24), SALES))
Thank You!
Sum ({<INVOICEDATE={">='01/01/2018' <= $(=Date(AddMonths(today()-1,-24))) "}>} SALES)
To use Year(INVOICEDATE) you need to create an Year field in script, in this case you can use this
SUM({<Year={2018}, INVOICEDATE={"<= $(=Date(AddMonths(today()-1,-24))) "}>} SALES)
Sum ({<INVOICEDATE={">='01/01/2018' <= $(=Date(AddMonths(today()-1,-24))) "}>} SALES)
To use Year(INVOICEDATE) you need to create an Year field in script, in this case you can use this
SUM({<Year={2018}, INVOICEDATE={"<= $(=Date(AddMonths(today()-1,-24))) "}>} SALES)