Google Sheets Error fix
QUERY SUM or AVG Is Too Low: Mixed Types Are Treated as Blank
QUERY's SUM can match SUM and still be short of the amounts you can see, because text that looks like a number is treated as blank. When the column is mostly text, QUERY sum returns #VALUE!.