Hi ,
Adding to response,
You can try this power fx,
ClearCollect(
MaterialList,
{BelRef: "000",Product: "P0",CostEa: 123},
{BelRef: "001",Product: "P0",CostEa: 3},
{BelRef: "002",Product: "P0",CostEa: 50},
{BelRef: "003",Product: "P0",CostEa: 10}
);
ClearCollect(
KitList,
{KitRef: "Kit-1",Qy: 2,BelRef: "000"},
{KitRef: "Kit-2",Qy: 2,BelRef: "002"},
{KitRef: "Kit-3",Qy: 2,BelRef: "003"}
);
ClearCollect(
filtered,
Filter(
MaterialList,
ThisRecord.BelRef in KitList.BelRef
)
);
ClearCollect(
filtered_v2,
Filter(
MaterialList As _M,
LookUp(KitList As _K,_M.BelRef = _K.BelRef).BelRef <> Blank()
)
);