Forum Discussion
#Duration function
- 4 years ago
This should do it
Add column > Custom column
[First Response Target] + #duration(0,0,[First Response Deviation in Minutes],0)
Hi Anonymous , are you doing this in DAX or in the Power Query editor. The #duration function is in Power Query so it would be accessible when adding a custom column in your dataset
If you want to do it in DAX, use DATEADD - DATEADD function (DAX) - DAX | Microsoft Docs
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
Matt
- Anonymous4 years agoNot applicable
Hi Matt,
Thanks for the information. I am doing it in DAX. If I try to use the DATEADD function in DAX like this:
_First Response Calc = DATEADD('RowData'[First Response Target],'RowData'[First Response Deviation in Minutes]/1440,DAY)I will get an error indicating "A date column containing duplicate dates was specified in the call to function 'DATEADD'. This is not supported.Kevin- mattww4 years ago
Responsive Resident
Is that a measure or calculated column? And same question for [First Response Deviation in Minutes]
- Anonymous4 years agoNot applicable
'RowData'[First Response Target] is a date/time field from the dataset.
RowData'[First Response Deviation in Minutes] is a whole number of minutes field from the dataset.
Using DAX, I am trying to add the deviation minutes to the First Response Target date.