Subtract two Date/Time columns in Power BI

Ahmed10 picture Ahmed10 · Aug 27, 2018 · Viewed 18.3k times · Source

How do I subtract two Date/Time columns in Power BI.

If I have:

Image

How do I find out the time difference between Last Updated and Created Time (in hours)?

Answer

RADO picture RADO · Aug 27, 2018

Assuming your table is called "Table":

Time Difference = DATEDIFF('Table'[Created Time], Table[Last Updated], DAY)

DATEDIFF Function description:

https://msdn.microsoft.com/en-us/query-bi/dax/datediff-function-dax