cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
spandy34
Post Patron
Post Patron

Time Duration

I am struggling with measuring time a duration.  I have a calculated column called Planned Duration - which is short time format.

 

I have included the column code below.  Can you please tell me how I would amend it so that 30 minutes.  The issue I have at times is that if the planned entry was before midnight and then the exist is after midnight, my calculations get mixed up.  Please can someone help

 

spandy34_1-1683043328837.png

 

@v-jingzhang @Ahmedz @tamerj1 @v-shex-msft 

 

 

 

2 ACCEPTED SOLUTIONS
tamerj1
Super User
Super User

@spandy34 

But whay the date is the same? It should be next day for the exit. You need to fix the data from the source. Otherwise how can we tell if this is rows is good and that row is bad?

View solution in original post

@spandy34 

But what about the 2nd row?

View solution in original post

4 REPLIES 4
tamerj1
Super User
Super User

@spandy34 

But whay the date is the same? It should be next day for the exit. You need to fix the data from the source. Otherwise how can we tell if this is rows is good and that row is bad?

Your right - I will go back to the source and then look at the requirements when I start again.

The day is the same because the planned visit should be 23:30 and leave the visit at 00:00.  The day would change if the exist time was 00:01.  The data is a SQL import from a Care System.

 

The Planned Duration (highlighted yellow) should say 00:30 instead of 23:30 .    The Planned Entry Time Date and Planned Exist Time Date are from an SQL Import .  I need to create a column for time format and digital format for the Planned Duration (Planned Exist Time Date -Planned Entry Time Date) but when the entry time is near midnight the calculations go wrong.

 

Im sorry if I was unclear.

@spandy34 

But what about the 2nd row?

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors