Question: The SUM function works incorrect.

Answer:

(in the report with two masterdata bands can't get sum the second band) 
FR can't determine which band to sum. Use the extended SUM syntax (also for MIN, MAX, AVG): SUM([CustNo], MasterData2)