Forum Discussion
Anonymous
9 years agoNot applicable
Calculating age from a date and time
I'd be extreemly grateful if someone could help with this. I have a column containing date and time information. From this I need to create a new column which shows the age based on the date (in days...
- 9 years ago
Anonymous
Use "New Column" not "New Measure"
RayL
Advocate I
7 years agoFYI-
another quick way to convert DOB to age:
- In Query Editor> select the column that contains DOB
- Go to Date & Time Colmn section > Date> Select "Age"
- In Date & Time Colmn section > Duration > Select "Total Years"
- Highlight the transformed column, right click and select "Change Type"> Select "Whole Number"
- Rename the column
- mplakin7 years agoNew Member
One issue with this method is that for anyone that is over 6 months into their "current" age, their age will be rounded up. E.g. 26.7 will be rounded up to 27.
The solution to this is before you convert the column to a whole number, instead right click on the column header and go to Transform -> Round -> Round Down.
- sahibar7 years agoRegular Visitor
I had similar requirement of calculating age from DOB.
This is the easiest way to implement.
Thank you!!
- AkshayManke2 years ago
Helper II
What a Fantastic Way RayL, Many thanks for Sharing.!