Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

MTD Syntax Error

Dear all,

Could you suggest syntax error in following expression:

=num(Sum({<[DATE OF ISSUE]={">=$(=Num(MonthStart(Max([DATE OF ISSUE]))))<=$(=Max([DATE OF ISSUE]))"},COMPANY={'TCIL'}>} SALES)/VMillion,'00')

Regards,

Balraj

12 Replies
Anonymous
Not applicable
Author

Harsha,

I have checked but no such scenario.

Not applicable
Author

Hi Balraj,

Try with the below expression which is not having COMPANY = {'TCIL'}

=num(Sum({<[DATE OF ISSUE]={">=$(=Num(MonthStart(Max([DATE OF ISSUE]))))<=$(=Max([DATE OF ISSUE]))"}>} SALES)/VMillion,'00')

If it is working fine then the remaining dates are not related with the COMPANY = {'TCIL'}.

Try it and let me know..

Thanks

Harsha

Not applicable
Author

Hi,

You can create a variable and pass today()-1

vCurrDate=today()-1 and by pass fiscal year and days,

Sum({$<Day=,Fin_Year=, Date={"<=$(vCurrDate)"}>}Value)

year([DATE OF ISSUE]) as year, day([DATE OF ISSUE]) as day

MTD =num(Sum({<year=,day=,[DATE OF ISSUE]={"<=$(vCurrDate)"}>} SALES)/VMillion,'00')


Regards

Vimlesh