Forum Discussion
sroychou
8 years agoRegular Visitor
Subtract Two Columns - New BI user
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
5 Replies
- AnonymousNot applicable
- sroychouRegular Visitor
DATEDIFF doesn't work, it comes "Error" in the new column
- bikram_laishram
Helper I
can you please share the error. also are the are there any null or blank value in either of the columns
- TomMartens
Super User
Hey,
here you will find a little description of the DAX function
DATEDIFF(...): https://msdn.microsoft.com/en-us/query-bi/dax/datediff-function-daxand 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