Hello forum users and Excel guru's alike.
I have a question relating the datamodel in Excel 2013 Powerpivot. I am using a Dutch version of Excel (on Office 365) but formula's in Datamodel are all in English so I think most of you will understand the issue:
What I want to do: Take a date and adjust this date to incorparate a number of months that is added in a other column.
Example:
Start of contract date: 24-5-2014 (this is a date field in the datamodel and it is called [StartContract])
Contract duration in months: 10 (this is a number field in the datamodel and it is called [DurationInMonths])
Output: 24-03-2015(this is the calculated field that doesn't work)
My current formula looks like this:
=DATE(YEAR([StartContract]);MONTH([StartContract]+[DurationInMonths]);DAY([StartContract]))
It shows an error as soon as I hit Enter. The formula works fine when I replace [DurationInMonths] with the value "10" or when I leave out "+[DurationInMonths]". But that isn't an option!
The following variation also doesn't work.
=DATE(YEAR([StartContract]);MONTH([StartContract])+[DurationInMonths];DAY([StartContract]))
Please, is there any one with a solution?
Kind regards,
Erik van Hurck