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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Anonymous
Not applicable

Calculate time duration?

Hi,

 

can you someone help me to calculate time duration, please? I am unable to calculate

 

I need to calculate the time duration between "Created" and "last_updated".

 

See the example below,

Createdlast_updated
09:25:0109:31:01
09:57:1711:12:01
12:06:0012:25:01
1 ACCEPTED SOLUTION
Anonymous
Not applicable

@themistoklis ,

Thank you for your help. Dear guest🙂

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

@themistoklis ,

Thank you for your help. Dear guest🙂

Anonymous
Not applicable

@themistoklis ,

Thanks for your help. The formula works for me but how do I change format to time I don't find that option?

 

Can you help me?

 

Thanks,

Pradeep

@Anonymous 

 

Select the field --> Column Tools --> Format

 

Please see image below:

steps2.JPG

themistoklis
Community Champion
Community Champion

@Anonymous 

You can do this by using DAX formula.

You can show the time difference in HH:MM:SS or in mins if you want.

 

To show in format HH:MM:SS simply use the formula below in a column not a measure

Time_Diff = Sheet1[Time_B] - Sheet1[Time_A]

 

To convert the Time_Diff to minutes use the formula below in a column not a measure

Mins = HOUR(Sheet1[Time_Diff])*60+MINUTE(Sheet1[Time_Diff])

 

If the fields show time only make sure you change the format to time (e.g. HH:MM:SS) see image below:

timediff.JPG

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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