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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! 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])
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |