Skip to content

Commit bd179d6

Browse files
committed
Add special behavior for extending
1 parent 8a3d6cc commit bd179d6

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

query-languages/dax/dateadd-function-dax.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,16 @@ The following formula calculates dates that are one year before the dates in the
5757
= DATEADD(DateTime[DateKey],-1,year)
5858
```
5959

60+
## Special behavior
61+
62+
When selection includes last two days of month, it will use "extension" semantics and will includes day till end of month. For example, when Feb 27 and 28 of 2013 are included and a month is added, it will get March 27 to 31.
63+
64+
This behavior will only happen when last two days of month are included. If only Feb 27 is selected, it will go to March 27.
65+
66+
```dax
67+
= DATEADD(DateTime[DateKey], 1, month)
68+
```
69+
6070
## Related content
6171

6272
[Time intelligence functions](time-intelligence-functions-dax.md)

0 commit comments

Comments
 (0)