I'll give this a shot, but I'm not entirely sure what you're asking.
var amounts = xfa.resolveNodes("tblParts.Row1[*]");
var total = 0;
for (var i=0; i<amounts.length; i++) if (amounts.item(i).ddSomething == "abc") total += amounts.item(i).ExpenseAmount;
//go through the table, if the drop down matches what you're looking for, add that amount to the total
nfExpenseABCTotal.rawValue = total;