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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
ErickGaitan
Frequent Visitor

How to compare two the time scheduled vs time actual

Good day community, 

I have to compare the time the agent took break vs the time schedule break.

First, I would like to identify which was the first break and the second break, both are in the same columm.

Second, compare the 2 time frames. I have noticed that PBI filled the rows blank and duplicate the information as you can see below.

 

ErickGaitan_0-1666793529443.png

 

I have been working on this for a month and I feel frustrated at this point 

find below the data Sample

I want to compare the difference in minutes between DTS column and start time column.

 

DateDTS TestBreak TimeLunch TimeStart TimeBreak-1 SchBreak-2 SchLunch Sch
10/9/202206:30 AM  08:30 AM00:15:00  
10/9/202206:30 AM  10:30 AM  01:00:00
10/9/202206:30 AM  01:45 PM 00:15:00 
10/9/202207:00 AM  08:30 AM00:15:00  
10/9/202207:00 AM  10:30 AM  01:00:00
10/9/202207:00 AM  01:45 PM 00:15:00 
10/9/202208:30 AM00:12:37 08:30 AM00:15:00  
10/9/202208:30 AM00:12:37 10:30 AM  01:00:00
10/9/202208:30 AM00:12:37 01:45 PM 00:15:00 
10/9/202209:00 AM00:02:23 08:30 AM00:15:00  
10/9/202209:00 AM00:02:23 10:30 AM  01:00:00
10/9/202209:00 AM00:02:23 01:45 PM 00:15:00 
10/9/202210:30 AM00:02:00 08:30 AM00:15:00  
10/9/202210:30 AM00:02:00 10:30 AM  01:00:00
10/9/202210:30 AM00:02:00 01:45 PM 00:15:00 
10/9/202212:00 PM 00:29:2908:30 AM00:15:00  
10/9/202212:00 PM 00:29:2910:30 AM  01:00:00
10/9/202212:00 PM 00:29:2901:45 PM 00:15:00 
10/9/202212:30 PM 00:30:0008:30 AM00:15:00  
10/9/202212:30 PM 00:30:0010:30 AM  01:00:00
10/9/202212:30 PM 00:30:0001:45 PM 00:15:00 
10/9/202201:00 PM 00:00:3008:30 AM00:15:00  
10/9/202201:00 PM 00:00:3010:30 AM  01:00:00
10/9/202201:00 PM 00:00:3001:45 PM 00:15:00 
10/9/202202:30 PM00:13:01 08:30 AM00:15:00  
10/9/202202:30 PM00:13:01 10:30 AM  01:00:00
10/9/202202:30 PM00:13:01 01:45 PM 00:15:00 
10/9/202204:00 PM  08:30 AM00:15:00  
10/9/202204:00 PM  10:30 AM  01:00:00
10/9/202204:00 PM  01:45 PM 00:15:00 
10/9/202206:30 AM  08:00 AM  00:15:00
10/9/202206:30 AM  11:00 AM  01:00:00
10/9/202206:30 AM  02:00 PM  00:15:00
10/9/202207:00 AM  08:00 AM  00:15:00
10/9/202207:00 AM  11:00 AM  01:00:00
10/9/202207:00 AM  02:00 PM  00:15:00
10/9/202209:00 AM00:15:00 08:00 AM  00:15:00
10/9/202209:00 AM00:15:00 11:00 AM  01:00:00
10/9/202209:00 AM00:15:00 02:00 PM  00:15:00
10/9/202211:00 AM 00:29:2608:00 AM  00:15:00
10/9/202211:00 AM 00:29:2611:00 AM  01:00:00
10/9/202211:00 AM 00:29:2602:00 PM  00:15:00
10/9/202211:30 AM 00:30:0008:00 AM  00:15:00
10/9/202211:30 AM 00:30:0011:00 AM  01:00:00
10/9/202211:30 AM 00:30:0002:00 PM  00:15:00
10/9/202212:00 PM 00:00:3408:00 AM  00:15:00
10/9/202212:00 PM 00:00:3411:00 AM  01:00:00
10/9/202212:00 PM 00:00:3402:00 PM  00:15:00
10/9/202201:30 PM00:11:11 08:00 AM  00:15:00
10/9/202201:30 PM00:11:11 11:00 AM  01:00:00
10/9/202201:30 PM00:11:11 02:00 PM  00:15:00
10/9/202202:00 PM00:03:51 08:00 AM  00:15:00
10/9/202202:00 PM00:03:51 11:00 AM  01:00:00
10/9/202202:00 PM00:03:51 02:00 PM  00:15:00
10/9/202204:00 PM  08:00 AM  00:15:00
10/9/202204:00 PM  11:00 AM  01:00:00
10/9/202204:00 PM  02:00 PM  00:15:00
10/9/202206:30 AM  08:30 AM00:15:00  
10/9/202206:30 AM  10:30 AM  01:00:00
10/9/202206:30 AM  01:50 PM 00:15:00 
10/9/202208:00 AM00:07:24 08:30 AM00:15:00  
10/9/202208:00 AM00:07:24 10:30 AM  01:00:00
10/9/202208:00 AM00:07:24 01:50 PM 00:15:00 
10/9/202208:30 AM00:07:56 08:30 AM00:15:00  
10/9/202208:30 AM00:07:56 10:30 AM  01:00:00
10/9/202208:30 AM00:07:56 01:50 PM 00:15:00 
10/9/202212:00 PM 00:23:3908:30 AM00:15:00  
10/9/202212:00 PM 00:23:3910:30 AM  01:00:00
10/9/202212:00 PM 00:23:3901:50 PM 00:15:00 
10/9/202212:30 PM 00:30:0008:30 AM00:15:00  
10/9/202212:30 PM 00:30:0010:30 AM  01:00:00
10/9/202212:30 PM 00:30:0001:50 PM 00:15:00 
10/9/202201:00 PM 00:06:2108:30 AM00:15:00  
10/9/202201:00 PM 00:06:2110:30 AM  01:00:00
10/9/202201:00 PM 00:06:2101:50 PM 00:15:00 
10/9/202201:30 PM00:00:03 08:30 AM00:15:00  
10/9/202201:30 PM00:00:03 10:30 AM  01:00:00
10/9/202201:30 PM00:00:03 01:50 PM 00:15:00 
10/9/202202:00 PM00:13:56 08:30 AM00:15:00  
10/9/202202:00 PM00:13:56 10:30 AM  01:00:00
10/9/202202:00 PM00:13:56 01:50 PM 00:15:00 
10/9/202204:00 PM  08:30 AM00:15:00  
10/9/202204:00 PM  10:30 AM  01:00:00
10/9/202204:00 PM  01:50 PM 00:15:00 
10/9/202206:30 AM  08:55 AM00:15:00  
10/9/202206:30 AM  10:30 AM  01:00:00
10/9/202206:30 AM  02:05 PM 00:15:00 
10/9/202207:00 AM  08:55 AM00:15:00  
10/9/202207:00 AM  10:30 AM  01:00:00
10/9/202207:00 AM  02:05 PM 00:15:00 
10/9/202209:00 AM00:08:22 08:55 AM00:15:00  
10/9/202209:00 AM00:08:22 10:30 AM  01:00:00
10/9/202209:00 AM00:08:22 02:05 PM 00:15:00 
10/9/202209:30 AM00:09:30 08:55 AM00:15:00  
10/9/202209:30 AM00:09:30 10:30 AM  01:00:00
10/9/202209:30 AM00:09:30 02:05 PM 00:15:00 
10/9/202212:00 PM 00:24:1808:55 AM00:15:00  
10/9/202212:00 PM 00:24:1810:30 AM  01:00:00
10/9/202212:00 PM 00:24:1802:05 PM 00:15:00 
10/9/202212:30 PM 00:30:0008:55 AM00:15:00  
10/9/202212:30 PM 00:30:0010:30 AM  01:00:00
10/9/202212:30 PM 00:30:0002:05 PM 00:15:00 
10/9/202201:00 PM 00:05:4308:55 AM00:15:00  
10/9/202201:00 PM 00:05:4310:30 AM  01:00:00
10/9/202201:00 PM 00:05:4302:05 PM 00:15:00 
2 REPLIES 2
Anonymous
Not applicable

Hi @ErickGaitan ,

A little confused🤔, can you post the expected output? It would be nice to have a clear calculation process. Thank you very much!🤗

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

10/9/202208:30 AM00:12:37 08:30 AM00:15:00  

 

In this case if compare the first time frame vs second time frame: its 0 because the break was taken at the scheduled time frame, but if the agent for some reason take the break at a difference time frame I would like to know the difference in minuntes 

 

E.X

Break segments was scheduled at 10 am and the agent took the segment at 8.55 am 

 

10:00 AM00:08:22 08:55 AM00:15:00

 

 

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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