Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have a dataset of equipment delays that basically records the time when the equipment was not working due to various kinds of delays or errors. Now there might be an instance where the shutdown was for 4 hours but the instance was recorded in two rows which add up to account for that complete instance. For example: If the machine was shut down from 2 PM to 6 PM, the data I have shows that the machine was shut down from 2 PM to 4 PM, and a new row shows that the machine was also shut down from 4 PM to 6 PM. This same thing can also happen across days. Attaching a sample table to show how the data is:
Delay | Machine | Shift | From Time | To | Delay | Agency | Delay Type | Problem | Area |
Date | Time | Time | |||||||
1/1/2021 | HR Slitter # 1 | A | 7:00:00 | 15:00:00 | 480 | RAW MATERIAL | DOWN TIME | OTHER | OTHER |
1/1/2021 | HR Slitter # 1 | B | 15:00:00 | 17:30:00 | 150 | RAW MATERIAL | DOWN TIME | OTHER | OTHER |
1/1/2021 | HR Slitter # 1 | B | 17:30:00 | 17:55:00 | 25 | CUTTER SETTING | DOWN TIME | CUTTER SETTING | CUTTER SECTION |
1/1/2021 | HR Slitter # 1 | B | 22:30:00 | 22:55:00 | 25 | CUTTER SETTING | DOWN TIME | CUTTER SETTING | CUTTER SECTION |
1/2/2021 | HR Slitter # 1 | A | 12:15:00 | 12:40:00 | 25 | CUTTER SETTING | DOWN TIME | CUTTER SETTING | CUTTER SECTION |
1/2/2021 | HR Slitter # 1 | B | 15:00:00 | 15:25:00 | 25 | CUTTER SETTING | DOWN TIME | CUTTER SETTING | CUTTER SECTION |
As you can see, the first three rows was a continuous shut down but broken down into multiple rows. I want to consolidate such multiple rows into 1 summarized row where the start time is the start time of the first row and the end time is the end time of the last such row. (In this case the row will have start time as 1/1/2021 7:00:00 and end time as 1/1/2021 17:55:00
Even though the agency is different?
How do you know it is a continuing outage? Could be two independent outages that just happen to abut ?
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
68 | |
64 | |
52 | |
39 | |
26 |
User | Count |
---|---|
80 | |
57 | |
45 | |
44 | |
35 |