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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I would like to create a new column called Number of Years served.
Number of years served = (Date he left - Date he joined)/365. Both these variables need to be accessed from the same table
I'm not able to figure out a way to do the subtraction. Is there any way this can be done?
Thank You!
Solved! Go to Solution.
Hi @Anonymous
I think you are trying to reference the columns in a measure, your formua should work in a calculated column.
R you can try this as well:
Column=DATEDIFF(Table1[Left_Date],Table1[joining_Date],YEAR)
Thanks
Raj
Hi @Anonymous
I think you are trying to reference the columns in a measure, your formua should work in a calculated column.
R you can try this as well:
Column=DATEDIFF(Table1[Left_Date],Table1[joining_Date],YEAR)
Thanks
Raj
This worked, thank you!
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!