Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

MTD

This is my equation for YTD

=Floor(Sum({<Year={"$(=Year(Max(Date))-1)"}, Date= {"<=$(=addmonths(max(Date),-12))"}>} arqtyshp)).

Anybody colud tell me how to make it as MTD.

Thanks in Advance

1 Solution

Accepted Solutions
rajni_batra
Specialist
Specialist

=Floor(Sum({<Year={"$(=Year(Max(Date))-1)"}, Date= {"<=$(months(max(Date)))"}>} arqtyshp)).

View solution in original post

2 Replies
MayilVahanan

Hi

Use MonthStart and MonthEnd Function

Like

=Sum({<Date = {'>=$(=MonthStart(Max(Date))) <= $(=MonthEnd(Max(Date)))'}>}Sales)

Hope that helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
rajni_batra
Specialist
Specialist

=Floor(Sum({<Year={"$(=Year(Max(Date))-1)"}, Date= {"<=$(months(max(Date)))"}>} arqtyshp)).