Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
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).
I also have a seperate dataset with a start date and end date (date and time) which I need to calculate the days between the start and end.
Solved! Go to Solution.
FYI-
another quick way to convert DOB to age:
I had similar requirement of calculating age from DOB.
This is the easiest way to implement.
Thank you!!
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.
@Anonymous
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)
Hello,
If I then wanted to create a measure of the AVERAGE of all the "ages" how would I achieve this?
I used the Query Editor to "Insert a Custom Column" (Add Column tab). I inserted the formula given here, but PowerBI doesn't seem to like the DATEDIFF function. The system inserted the Table.AddColumn bit up to the DATEDIFF.
= Table.AddColumn(#"Removed Columns", "ItemAge", each DATEDIFF([FirstDetected],TODAY(),DAY))Advice welcome.
Thanks you...
I seem to have done something wrong (assuming it's me as a newbie):
@Anonymous
Use "New Column" not "New Measure"
Who wants an age in days? This is a silly solution!
Thank you for taking the time to help me, it's much appreciated.
My best guess is that you need to choose "New Column" first.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 50 | |
| 49 | |
| 35 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 91 | |
| 75 | |
| 41 | |
| 26 | |
| 25 |