Skip to main content

PQL46 (PQL Function Library - CPM 4.6)

ROUND_MONTH

Applies to: CELONIS 4.0 CELONIS 4.2 CELONIS 4.3 CELONIS 4.4 CELONIS 4.5 CELONIS 4.6

Description

This function rounds a DATE input down to the month by setting its DAY, HOUR, MINUTE, SECOND and MILLISECOND values to their ground state.

Syntax
ROUND_MONTH ( table.date_column )
Example

[1] Round dates down to the month.

Query

Column1

ROUND_MONTH ( "Table1"."Date" )

Input

Output

Table1

Date : DATE

Mon May 08 2006 23:59:59.999

Fri Dec 31 1999 23:59:59.999

Fri Jan 01 2016 00:59:59.000

Sat Jan 01 1994 00:00:00.000

Result

Column1 : DATE

Mon May 01 2006 00:00:00.000

Wed Dec 01 1999 00:00:00.000

Fri Jan 01 2016 00:00:00.000

Sat Jan 01 1994 00:00:00.000