Hi There,
Am not sure on what you meant, but if it is the max month it means the last month of the quarter, then you can get like this right?
if(in(rightstr("0CALQUARTER", 1), '1') = 1, leftstr("0CALQUARTER",4)+'03', if(in(rightstr("0CALQUARTER", 1), '2') = 1, leftstr("0CALQUARTER",4)+'06', if(in(rightstr("0CALQUARTER", 1), '3') = 1, leftstr("0CALQUARTER",4)+'09', if(in(rightstr("0CALQUARTER", 1), '4') = 1, leftstr("0CALQUARTER",4)+'12',''))))
Regards,
Krishna Tangudu