Skip to Content

1:n relationships in reporting

Hi experts,

for a long time I'm struggeling with the following problem, without having found a suitable solution.

Maybe you can show me the way, since it should be a very common topic.

The scenario is as follows:

I'd like to see production information.

I'd like to know which quantitiy of product P has been produced and

which according amount of components C have been used for that production.


ProdOrder Product Component

4711 P1 C1


ProdOrder Product Component #Products produced #Components used 4711 P1 C1 10 10 C2 10 16 4712 P2 C1 15 15 C2 15 30 C3 15 20 P1 Result wanted: 10, is: 20 (=2*10) 26 P2 Result wanted: 15, is: 45 (=3*15) 65

My problem is the result for keyfigure "#Products produced". Since there are n records for the same product (one for each component), the result-row shows: n*(#products) - which is in fact wrong. P1 was produced 10 times, but used 2 components (e.g. "bolts" and "nuts") - anyway: That doesn't extend the produced amount, it's still 10, not 20.

So, to sum it up a little bit: I want each product-record (the fist? the last? the average?) only exactly once as part of my result-sum.

I hope I could make my problem understandable.

The above example is based on an infoset (where every record contains both keyfigures).

Using a multiprovider (where each record contains either the one or the other keyfigure) would be another option, but it would lead to the issue that as soon as a filter con components is set, the product-quantity-records would be excluded.

I tried a lot with exception aggregation, nested exception aggregation, constant selection, etc. but did not find a suitable way.

Would be great if anybody of you could show up the way.

Thanks a lot in advance.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2016 at 08:19 AM


    did you tried exception aggregation as average with reference to prodorder in #products produced?

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.