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

How do I subtract the ticket end time from 12:00:00 AM

I need to calculate the ticket end time before 12 AM. So that I can get the hours spent on the ticket during one day.

 

Any help would be appreciated

 

@AlB @amitchandak

2 REPLIES 2
Anonymous
Not applicable

The result I need is Ticket end time on or before 23:59:59 PM on a specific date.

 

Example:- if a sepcific ticket is worked from 25/11/2020 9:15 PM to 26/11/2020 3:15 AM

 

Ticket end time on or before 23:59:59 PM should come under 25/11/2020 and on or after 12 AM should be calculated under 26/11/2020.

 

Ticket IDstart_timeend_time
102/09/2020 17:0403/09/2020 02:17
217/05/2020 20:2018/05/2020 05:29
311/08/2020 20:1012/08/2020 05:19
401/07/2020 13:3101/07/2020 22:40
521/09/2020 13:2421/09/2020 22:35
627/09/2020 10:5527/09/2020 20:15
705/08/2020 13:5505/08/2020 23:03
816/07/2020 13:5616/07/2020 23:05
924/07/2020 13:5824/07/2020 23:08
1021/08/2020 10:0021/08/2020 19:14
1123/06/2020 21:0124/06/2020 06:16
1225/06/2020 20:4926/06/2020 06:03
1320/08/2020 21:0321/08/2020 06:11
1424/07/2020 11:0024/07/2020 20:13
1501/10/2020 10:5401/10/2020 20:07
1601/05/2020 23:5902/05/2020 09:09
1729/09/2020 22:1730/09/2020 07:28
1805/03/2020 23:3906/03/2020 08:58
1909/01/2020 13:3809/01/2020 22:51


This is what I am trying to achieve, if you can help me with this 

amitchandak
Super User
Super User

@Anonymous , I think this was asked previously too.

How do I know the time spend?

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

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.

Top Solution Authors