your first expression will give you the correct data.
as in the second one you have used the "*". i dont understood the use of "*" with calender type.
also if you want to give facility to user to select the Calender type. then create the data island for the calender type and link it to the variable.
Thanks by your help.
The use of the "*" in the second term intends to intersect with the lines of the "calendar table", in which CalendarType= "Fiscal".
My first expression doesn't return the correct data, because the Max(MonthID) for same year in calendartype="Fiscal" isn't same of other calendar type (eg: Gregorian).
I've three calendars in the same table, with a identifier which is CalendarType.
My intention is to pass the calendar type as an variable, but for now i'm only testing values.
I 'll apreciate your help.