Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
i want YTD to be calculated on Selected date by user.
for example if user select date 15 feb 2009
user should get sales of from 1 jan 2009 to 15 feb 2009
how to do it?
thanks
Harlin
Hello
finally this worked
=Sum({$<Year = {$(=max(Year))}, Month={"<=$(=max({<Year={$(=max(Year))}>} Month))"},OrderDay={"<=$(=max(OrderDay))"}>} Value)
thanks Stefano for the response
my date is formated in M/D/YYY format.
thanks
Harleen Singh
hope this help u
sum({<MonthYear={"=$(Max(MonthYear))"}<}Amount)
Hi,
Use YearStart( DateField )
Rgds
Anand
Hi,
Use some thing like
=If ( Date >= Yearstart(Today()) and Date <= vTest , Date )
vTest = getfieldselections( Date )
Ex:-
vTest = 15 feb 2009
HTH
Rgds
Anand
Any correct answer in terms of Set analysis??
thanks
Harlin
sum({<MonthYear={"=$(Max(MonthYear))"},{Date={"<=$(=Max(date))"}}<}Amount)
what about this sardar ji
in your statement why are u using < in the last??
{Date={"<=$(=Max(date))"}}<}
thanks
harlin
No all above not working.
Any working example??
thanks
Harlin
Hi Harleen,
be careful if the date is numeric or formatted like dd/mm/yyyy.
This could be the problem.
Stefano.
Look at this
I hope this helps u
Stefano