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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Duration

Hi, 
First, when I imported my Excel data I had to set the Data Type as Time.
I was receiving an error when I wanted to set it as Duration. 
Current Duration Format: 13:30 (hh:nn)
I have the Start Time e.g 15:05 and End Time e.g. 16:10
I have tried DAX DATEDIFF but the return came back as 00:00

I am unable to create valid Visualisation for the Time Duration. 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , You will not be able display duration on y axis

 

But this column should work

 

datediff([start time], [end time],second)

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Thank you @amitchandak 

Unfortunately, this formula doesn't work for me. The result is 00:00
my formula:
TimeDuration =
DATEDIFF('FACT TABLE'[Start Time],'FACT TABLE'[End Time], second)
amitchandak
Super User
Super User

@Anonymous , You will not be able display duration on y axis

 

But this column should work

 

datediff([start time], [end time],second)

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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