I'm not exactly sure if this is what you mean but Col functions found under Statistical grouping in Formula editor might help.
Col Sum(
:Name("Concentration of some component in raw material batch [%]") *
:Name("Weight of Ingoing raw material batch [kg]"),
:Final product batch
) / Col Sum(:Name("Weight of Ingoing raw material batch [kg]"), :Final product batch)
-Jarmo