OpenBI Docs Buy

DAY

Which day of its month a date falls on, 1 to 31.

Group: Date and time. Compatible with DAX.

Syntax

DAY ( <date> )
ParameterTypeDescription
dateDateA date, a date with a time, or text that reads as one.

Returns

Whole number. Which day of its month the date falls on, from 1 up to 31.

Remarks

  • A blank date gives BLANK.
  • Text is read as a date first; a number is taken as a date number, days from 30 December 1899.
  • DAY ( EOMONTH ( date, 0 ) ) is the number of days in the date's month.

Examples

The day of each bond's maturity

EVALUATE
SELECTCOLUMNS (
    Holdings,
    "Bond", Holdings[Bond],
    "Maturity", Holdings[Maturity],
    "Day", DAY ( Holdings[Maturity] )
)
ORDER BY [Maturity]
BondMaturityDay
Government 20282028-03-022
Covered 20292029-06-2020
Corporate 20302030-11-2525
Municipal 20312031-09-011
Government 20332033-03-1515

Days in February

EVALUATE
ROW (
    "2024", DAY ( EOMONTH ( DATE ( 2024, 2, 10 ), 0 ) ),
    "2025", DAY ( EOMONTH ( DATE ( 2025, 2, 10 ), 0 ) )
)
20242025
2928

MONTH, YEAR, EOMONTH, WEEKDAY, DATE.

Last updated · OpenBI Studio 0.3.74