Hi @Chrisguff12 ,
This is not a straight-forward process and what I am supplying should work, but is more syntax guidance to get you on your way. I have it working on a test model here, but have needed to change all the references to the ones you supplied, so if there is an issue please check these and the general logic to what you need. Firstly, if you put this on the OnChange of the Combo Box
Clear(colCosts);
With(
{wCost: Self.SelectedItems},
Collect(
colCosts,
AddColumns(
wCost As aCost,
"Cost",
LookUp(
Etching_Parts_Lists,
'Item Description' = aCost.'Item Description'
).'Parts Cost'
)
)
)
Now the Default of your Text box containing the new information would be
With(
{
wCosts:
Concat(
colCosts,
'Item Description' & ", "
)
},
Left(
wCosts,
Len(wCosts) - 2
)
) & " - $" &
Text(
Sum(
colCosts,
Cost
),
"[$-en]###,##0.00"
)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.