It's over Datawarehouse products Business Objects.

I need to combine two information
Over the first line is the invoice information with customer, analytical and budget variable.
On the second line is the information of customer, it's the payement of the first. The only common information is the reference and the amount. How can I combine the info. I've created two query's but when I make a break over the analytical of budget value the reporter exclkude all information over the payement line???