2

I have dob column how can i calculate age by using DOB column in derived column ? I tried using as below but this throws an error .

 datediff(yy, Dob,getdate()) 
Hadi
  • 36,233
  • 13
  • 65
  • 124
Kate
  • 445
  • 3
  • 9
  • 22

1 Answers1

3

Try using the following expression:

DATEDIFF("yy" , [DOB], GETDATE())

References:

Hadi
  • 36,233
  • 13
  • 65
  • 124