IF [Order Date] >= DATEADD('hour', 2, (IF DATEPART('weekday', DATEADD('month', 3, DATETRUNC('year', [Order Date]))) = 1
THEN DATEADD('month', 2, DATETRUNC('year', [Order Date])) + 7
ELSE DATETRUNC('week', DATEADD('month', 2, DATETRUNC('year', [Order Date])) + 13)
END))
AND
[Order Date] <= DATEADD('hour', 2, (IF DATEPART('weekday', DATEADD('month', 10, DATETRUNC('year', [Order Date]))) = 1
THEN DATEADD('month', 10, DATETRUNC('year', [Order Date])) + 7
ELSE DATETRUNC('week', DATEADD('month', 10, DATETRUNC('year', [Order Date])) + 6)
END))
THEN DATEADD('hour', 1, [Order Date])
ELSE [Order Date]
END
Para los cambios de horarios europeos, utilice una fórmula parecida a la siguiente:
IF
//last Sunday in March at 1AM
[Date] >= DATEADD('hour',1,DATEADD('day',-1,DATETRUNC('week',DATEADD('month',3,DATETRUNC('year',[Date])))))
AND
//last Sunday in October at 2AM
[Date] < DATEADD('hour',2,DATEADD('day',-1,DATETRUNC('week',DATEADD('month',10,DATETRUNC('year',[Date])))))
THEN DATEADD('hour',1,[Date])
ELSE [Date]
END001458297

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.