fbpx

dtLastDayOfWeekOfMonth (MDX+)

Returns the member matching the last day of the week of the month (e.g. last Saturday), null if missing.

Parameters

Name Type Cardinality Default value
time member  set-member-expression  one   
day of week [1-7]  numeric-expression  one   

Return

member|set-members

Description

This functions returns the member matching the last day of the week of the month.
If the member is missing it will return NULL.

dtLastDayOfWeekOfMonth( [Calendar].[Calendar].[Day].[31 Oct 2016], 7 ) will return the last Sunday of the month (i.e., [Time].[Calendar].[Day].[30 Oct 2016]).

When applied to a set it will return a set that is the result of applying this function on each member
of the input set. When the resulting member is missing it will be ignored.

See Also

dtAsOf dtAsOfToday dtNextDay dtNextWeek dtNextMonth dtNextQuarter dtNextYear dtPreviousDay dtPreviousWeek dtPreviousMonth dtPreviousQuarter dtPreviousYear dtPlusDays dtPlusWeeks dtPlusMonths dtPlusQuarters dtPlusYears dtMinusDays dtMinusWeeks dtMinusMonths dtMinusQuarters dtMinusYears dtFirstDayOfWeekOfMonth dtFirstDayOfWeekOfQuarter dtFirstDayOfWeekOfYear dtLastDayOfWeekOfMonth dtLastDayOfWeekOfQuarter dtLastDayOfWeekOfYear dtNthDayOfWeekOfMonth dtNthDayOfWeekOfQuarter dtNthDayOfWeekOfYear dtDatesWeek dtDatesWeekend dtDatesWorkweek dtDatesWtd dtDatesMtd dtDatesQtd dtDatesYtd dtDatesItd dtDatesWfd dtDatesMfd dtDatesQfd dtDatesYfd dtWithDayOfWeek dtWithDayOfMonth dtWithDayOfYear dtWithMonthOfYear dtWithYear dtWithTime

Examples

Special Examples (errors, null, ...)

Since Version

6.0

XMLA Properties

Find here the value of the XMLA properties when not specified otherwise.