Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hi,
I am the new user of PowerBi and working with a dataset, where I have two different dates are in two columns. I would like subtract between those dates and get number of days. Please advise.
Regards
Samik
Hey,
here you will find a little description of the DAX function
DATEDIFF(...): https://msdn.microsoft.com/en-us/query-bi/dax/datediff-function-dax
and here you will find how to create a calculated column
https://docs.microsoft.com/en-us/power-bi/desktop-tutorial-create-calculated-columns
Regards,
Tom
DATEDIFF doesn't work, it comes "Error" in the new column
No there is no null value. Syntax is pasted below
= Table.AddColumn(#"Removed Columns1", "Overdue", each DATEDIFF[Date2][Schedule status])
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.