Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
PowerBINoob24
Resolver I
Resolver I

Finding difference in minutes between two date/time fields

If got a column that I'm trying to calculate the number of minutes between to date/time fields.  I've currently got 

Time To Access = DATEDIFF('UniqueUsers'[First Access Time],'UniqueUsers'[Send Date].[Day],MINUTE).  The Time to Access Column is formatted at a whole number data type and returns values like -64561883 for a time date that is 19 minutes apart.
 
Any thoughts on what I am doing wrong?
1 ACCEPTED SOLUTION
grandtotal
Resolver III
Resolver III

Make sure that both input columns are in datatime format.
Then try to remove the .[Day] part:

Time To Access = DATEDIFF('UniqueUsers'[First Access Time],'UniqueUsers'[Send Date],MINUTE)

 

View solution in original post

2 REPLIES 2
grandtotal
Resolver III
Resolver III

Make sure that both input columns are in datatime format.
Then try to remove the .[Day] part:

Time To Access = DATEDIFF('UniqueUsers'[First Access Time],'UniqueUsers'[Send Date],MINUTE)

 

That was it....just ahd to remove the .DAY  Thanks!  It's the little things.....

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.