Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
| ReportedDate | StartTime | EndTime | OrderNumber | WorkCenterNumber | ActualRunningTime (Hour) |
| 11-04-2023 | 11-04-2023 23:26 | 12-04-2023 0:01 | Break time | 0101-101 | 0.583333333 |
| 11-04-2023 | 11-04-2023 23:26 | 11-04-2023 23:59 | Break time | 0101-101 | 0.56 |
| 12-04-2023 | 12-04-2023 8:01 | 12-04-2023 10:05 | Other | 0101-201 | 2.066666667 |
| 12-04-2023 | 12-04-2023 21:32 | 16-04-2023 21:32 | No Schedule | 0101-101 | 96 |
| 12-04-2023 | 12-04-2023 13:26 | 12-04-2023 14:05 | Break time | 0101-201 | 0.65 |
| ReportedDate | StartTime | EndTime | OrderNumber | WorkCenterNumber | ActualRunningTime (Hour) |
| 11-04-2023 | 11-04-2023 23:26 | 11-04-2023 23:59 | Break time | 0101-101 | 0.56 |
| ReportedDate | StartTime | EndTime | OrderNumber | WorkCenterNumber | ActualRunningTime (Hour) |
| 12-04-2023 | 12-04-2023 00:00 | 12-04-2023 0:100 | Break time | 0101-101 | 0.00001 |
| 12-04-2023 | 12-04-2023 8:01 | 12-04-2023 10:05 | Other | 0101-201 | 2.066666667 |
| 12-04-2023 | 12-04-2023 21:32 | 12-04-2023 11:59 | No Schedule | 0101-101 | 96 |
| 12-04-2023 | 12-04-2023 13:26 | 12-04-2023 14:05 | Break time | 0101-201 | 0.65 |
Hi,
I already try above example but sum the running time will getting wrong result example if I filter date 12/6/2023 my start date 10/6/2023 and end date 12/6/2023 will be listed. (actual running time will be 48hrs) but with my filter it should show only 24hour.
So I am thinking something like, do checking if there are cross day between starttime and endtime automatic take max date to minus starttime (but result also might not very correct what if starttime 2days back)
Duration III =
var maxdate = MAXX(ALLSELECTED('Calendar'), 'Calendar'[DateTime])
var mindate = MINX(ALLSELECTED('Calendar'), 'Calendar'[DateTime])
var datediff = DATEDIFF(mindate, maxdate, day)
var time = if(datediff > 0 , maxdate - starttime, sum(Results[ActualRunningTime]) )
return CALCULATE( SUM(time),
filter ( Results, Results[EndTime] >= mindate
&&
Results[StartTime] <= maxdate ))
@user023 , Try a measure like with slicer on independent date table
//Date1 is independent Date table
new measure =
var _max = maxx(allselected(Date1),Date1[Date])
var _min = minx(allselected(Date1),Date1[Date])
return
calculate( sum(Table[Value]), filter('Table', 'Table'[End Time] >=_min && 'Table'[Start Time Time] <=_max))
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 50 | |
| 49 | |
| 35 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 91 | |
| 75 | |
| 41 | |
| 26 | |
| 25 |