Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hi All
I have two Columns. Date of Birth and Current Date. I have applied a simple formula in 3rd Column Age=[Current date]-[Date of Birth] I found the result in Date format. Now I want to convert 3rd column in number of days or number of years
Basically I want to calculate age in years in 3rd Column of 4th Column using the 3rd Column Information.
Best Regards
Rashid Anwar
Solved! Go to Solution.
Hi @rashid0146,
you can use datediff function in 3rd column only for finding the difference in years.
DATEDIFF(dateofbirth, currentdate, year)
Reagrds
Hi @rashid0146
can you below dax function to calculate difference between two date
Difference = DATEDIFF(<start_date>, <end_date>, <interval>)
For your case, use
Days = DATEDIFF(tablename[Date of birth], Today(),Days)
you will get days here.
By
Gnanasekar
Hi @rashid0146
can you below dax function to calculate difference between two date
Difference = DATEDIFF(<start_date>, <end_date>, <interval>)
For your case, use
Days = DATEDIFF(tablename[Date of birth], Today(),Days)
you will get days here.
By
Gnanasekar
Hi @rashid0146,
you can use datediff function in 3rd column only for finding the difference in years.
DATEDIFF(dateofbirth, currentdate, year)
Reagrds
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Ask questions in Eventhouse and KQL, Eventstream, and Reflex.
User | Count |
---|---|
88 | |
82 | |
66 | |
64 | |
58 |
User | Count |
---|---|
171 | |
111 | |
109 | |
72 | |
71 |