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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.