Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Community,
how to calculate MTD and YTD
MTD:
=Sum({<[Posting Date]={'>=$(=MonthStart(Today()))<=$(=Today())'}>} CLE_Amount)
i am using this expression.. but unable to get values..
Please anyone can help me.....
Sum({<[Posting Date]={'$(>=MonthStart(Today())<=Today())'}>} CLE_Amount)
the $(= ... must be applied to the whole sub expression
let me know
Hi Paul,
format of Posting Date is DD-MM-YYYY, but in script your DateFormat is D/M/YYYY
You can try
....$(=Date(MonthStart(Today()),'DD-MM-YYYY')))
also in $(=Today())
Regards,
Antonio
Hi ,
Still i am unable to get values...
Hi Paul,
try like this:
SUM({<Date = , Month =, Quarter = , Date = {">=$(=MonthStart(Today()))<=$(=Today())"}>}Sales)
will give you Total Sales for Current Month to Date
SUM({<Date = , Month =, Quarter = , Date = {">=$(=YearStart(Today()))<=$(=Today())"}>}Sales)
will give you Total Sales For Current Year to Date
Regards
KC
See Attachment
it seems you have different format for the dates, in dimension and in set analysis expression
try with
=Sum({<[Posting Date]={">=$(=date(MonthStart(Today()),'MM-DD-YYYY'))<=$(=date(Today(),'MM-DD-YYYY'))"}>} CLE_Amount)