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"
Vvelarde
Community Champion
9 years agoAnonymous
hi,
To calculate the age in Days:
Age = DATEDIFF(Table1[DateTimeColumn],TODAY(),DAY)
to calculate the days between the start and end.
DaysBetween = DATEDIFF(Table1[StarDate],Table1[EndDate],DAY)
Anonymous
9 years agoNot applicable
Thanks you...
I seem to have done something wrong (assuming it's me as a newbie):
- Vvelarde9 years ago
Community Champion
Anonymous
Use "New Column" not "New Measure"
- Anonymous9 years agoNot applicable
Thank you for taking the time to help me, it's much appreciated.
- Anonymous4 years agoNot applicable
Who wants an age in days? This is a silly solution!
- MarcelBeug9 years ago
Community Champion
My best guess is that you need to choose "New Column" first.