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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello everyone. I've been trying to find a solution to my timing issue, but still not getting the expected results. Let me explain.
I have 3 important columns (INDEX, PRODDATE, MACHINE) and 1 reference column which is OUTTIME.
There are only 2 conditions:
Is this possible?
Please see my picture for better understanding.
Desired Result
Thankyou!
Solved! Go to Solution.
Hi
Table.Combine(
Table.Group(
#"Previous Step",
{"INDEX"},
{{"Data", each Table.FromColumns(
Table.ToColumns(_) &
{{[PRODDATE]{0} & #time(7,0,0)} & List.RemoveLastN([OUTTIME],1)} &
{List.RemoveLastN([OUTTIME],1) & {Date.AddDays([PRODDATE]{0},1) & #time(7,0,0)}},
Table.ColumnNames(_) & {"STARTPRODTIME","FINISHPRODTIME"})
}},
GroupKind.Local,
(x,y) => if y[INDEX]=1 then 1 else 0)
[Data])
Stéphane
Hi
Table.Combine(
Table.Group(
#"Previous Step",
{"INDEX"},
{{"Data", each Table.FromColumns(
Table.ToColumns(_) &
{{[PRODDATE]{0} & #time(7,0,0)} & List.RemoveLastN([OUTTIME],1)} &
{List.RemoveLastN([OUTTIME],1) & {Date.AddDays([PRODDATE]{0},1) & #time(7,0,0)}},
Table.ColumnNames(_) & {"STARTPRODTIME","FINISHPRODTIME"})
}},
GroupKind.Local,
(x,y) => if y[INDEX]=1 then 1 else 0)
[Data])
Stéphane
It works. Terima kasih for your help 😁🇮🇩
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 19 | |
| 9 | |
| 8 | |
| 7 | |
| 6 |