Friday, March 9, 2012

Reportmodel data incorrect

Hi,

I have a very weird and frustrating problem at a customer. Since two months we are busy developing a report model, so users are able to create their own reports using the reportbuilder.

Suddenly the 1:n relations seem to be screwed! If I have a simple relation between entities, like a customer can have optional multiple invoices and a invoice has always one customer..

When in reportbuilder I select the customername, invoicenumber and #Invoices, then I expect there is only one invoice per invoicenumber. (When I select this in a query myself it is the truth...) But, the reportbuilder gives 2 as a result. This suddenly happens to all my 1:n roles.

It's not only in the #invoices fields, even when i select invoice amount this amount is being multiplied by 2.

I opened a backup of my project from one month ago, with the same relation in it and try to make the same report and it gave me the right results. But ofcourse I don't want to waste a month works, so I need to get this model working!

HELP!!!!

Thanks in advance

Julian

My fault... If i selected the relation entity and tested the results I would have seen each relation is mentioned twice.

No comments:

Post a Comment