Ahmed10
Ahmed10

Reputation: 33

Subtract two Date/Time columns in Power BI

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)?

Upvotes: 3

Views: 26351

Answers (1)

RADO
RADO

Reputation: 8148

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

Upvotes: 2

Related Questions