Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Switch not working in a calculated column

Hello  -  I have this formula below working as a measure.     But when trying to use as a calculated column, I do not get an error message, but I do not get any results past the first condition.   ...
  • edhans's avatar
    edhans
    6 years ago

    You have an extra () after the Opportunity Creation Date field. Use this:

     

    = Duration.Days(DateTime.Date([Opportunity Create Date])-DateTime.Date([Actual Close]))

    that will return the number of days as a whole number.