The data not related and odd data may be related to the Links not being set properly for this report. Go to Edit, Links and Fields.

If all the fields are from the History files, the links should be:

Driver:
QIHISTDR (Historical Details file)

Linking Field:
QIHISTDR to the QIHISTHR on Document number or Customer/Document.

Link Mode: One to one.

If you are reporting on Text lines, you should use these links:

Driver:
QIHISTTR (Historical Text file)

Linking Fields:
QIHISTTR to QIHISTDR Linking field Customer/Document/Detail

QIHISTDR to QIHISTHR Linking field Customer/Document

Link Mode: One to one

Let us know if this doesn't also take care of problem 3.