
Announcements
Capacity_dataset where:
DateFrom.Selected.Value and DateTo.Selected.Value).Operation.FilteredTableFinal containing records from the original Capacity_dataset where the Entry_ID matches the filtered results.ForAll loop with Patch to update the OEE_Adjusted field for all matching rows in the Capacity_dataset.// Step 1: Filter and Collect Data
ClearCollect(
FilteredTable,
Filter(
Capacity_dataset,
Value(Year_Month) >= Value(DateFrom.Selected.Value) &&
Value(Year_Month) <= Value(DateTo.Selected.Value)
)
);
ClearCollect(
FilteredTable1,
Filter(
FilteredTable,
Operation = SelectOperation.Selected.Value
)
);
ClearCollect(
FilteredTableFinal,
Filter(
Capacity_dataset,
Entry_ID in FilteredTable1.Entry_ID
)
);
// Step 2: Update Data Using Patch
ForAll(
FilteredTableFinal,
Patch(
Capacity_dataset,
ThisRecord, // Attempting to update the filtered records
{ OEE_Adjusted: Value(TextInput1.Text) }
)
)
Operation gets updated.DateFrom and DateTo) completely.Operation, not the correctly filtered rows.Patch function only update the first record and ignore the filtered data?ForAll and Patch together?ThisRecord loses connection to the original data source after filtering?With(
{
_List:
Filter(
Capacity_dataset,
Operation = SelectOperation.Selected.Value &&
Value(Year_Month) >= Value(DateFrom.Selected.Value) &&
Value(Year_Month) <= Value(DateTo.Selected.Value)
)
},
ForAll(
_List As _Data,
Patch(
Capacity_dataset,
LookUp(
Capacity_dataset,
Entry_ID = _Data.Entry_ID
),
{OEE_Adjusted: Value(TextInput1.Text)}
)
)
)