From what it seems that you have a combination of DOCID and ITEMID repeating 27 times in your dashboard.... that is why when you sum in the script you are getting 135 (5*27), 108 (4*27), 270 (10*27)... etc.... May be you need to add distinct? or use Only?
LOAD
DOCID,
ITEMID,
Only(Num (Trim([QTY]),'#,##0', '.' , ',')) as PRQTY
FROM
(qvd)
WHERE PRCODE='O002'
group by DOCID,ITEMID;
or
LOAD
DOCID,
ITEMID,
Sum(DISTINCT Num (Trim([QTY]),'#,##0', '.' , ',')) as PRQTY