Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Anyone can tell me that is below code is right for MTD expression
SUM({$<FinancialYear=, Quarter=,FiscalYear={$(=max(FiscalYear))}
,[PostingDate]={">=$(=MonthStart(max({$<FiscalYear={$(=max(FiscalYear))}>}[PostingDate])))<=$(=max({$<FiscalYear={$(=max(FiscalYear))}>}[PostingDate]))"}
>}Target )
Thanks
Expression looks correct to me. Are you facing any issue?
or this will be sufficient, make sure that your [PostingDate] is in proper date format.
SUM({$<FinancialYear=, Quarter=,FiscalYear={"$(=max(FiscalYear))"},
[PostingDate]={">=$(=monthstart(max([PostingDate])))<=$(=max([PostingDate]))"}>}Target)
Looks ok, but you may have to format the dates too:
SUM({$<FinancialYear=, Quarter=,FiscalYear={$(=max(FiscalYear))}
,[PostingDate]={">=$(=Date(MonthStart(max([PostingDate]))))<=$(=Date(max([PostingDate])))"}
>}Target )
hi
Please try this expression for MTD
SUM({$<FinancialYear=, Quarter=,FiscalYear={$(=max(FiscalYear))},
[PostingDate]={">=$(=MonthStart(max([PostingDate])))<=$(=MonthEnd(max([PostingDate])))"}>}Target )
Hope this help you
Thanks & Regards
Ahmar Ansari
am not getting proper targets in using this expression .
might be helpful for you?
I would take this another step by adding the formatting of PostingDate to the left hand side of the equation:
Sum({$<FinancialYear=, Quarter=, FiscalYear = {$(=Max(FiscalYear))}, [PostingDate] ={">=$(=Date(MonthStart(Max([PostingDate])), 'PostingDateFormatHere'))<=$(=Date(max([PostingDate]), 'PostingDateFormatHere'))"}>} Target)