Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
shumailh
Creator III
Creator III

Set Analysis

below code is not working, anyone please help

=sum({$<MonthName_ID = {MonthName(MonthEnd(LoadDate-Day(LoadDate)))}>} bal)/(100*1000000)

2 Replies
nagaiank
Specialist III
Specialist III

Try the following:

=sum({$<MonthName_ID = {MonthName(LoadDate,-1)}>} bal)/(100*1000000)

Is the format of the fieldvalues in the MonthName_ID field the same as the format returned by MonthName function (i.e., Mmm YYYY)?

shumailh
Creator III
Creator III
Author

Yes the format is same.

Also I did it like this and its working..

=sum({$<MonthName_ID = {'$(=MonthName(MonthEnd(LoadDate -Day(LoadDate))))'}>} bal)

Thanks,

Shumail