I'm developing a cube for analysing the orders of a company.
My database (for orders) is organized in the tables 'ORDER' and 'ORDER LINE'. I must create a cube that sums the number of products by client, and some other totals like this that join the 'ORDER' and 'ORDER LINE' tables.
The problem is that one of the totals I must calculate is a sort os distinct sum: I must sum a field from the 'ORDER' table, and show it only once for each order.
Meaning that if a order has 2 lines, the value of the field should appear once, not 2*value.
Is this possible?
NetAngel
My database (for orders) is organized in the tables 'ORDER' and 'ORDER LINE'. I must create a cube that sums the number of products by client, and some other totals like this that join the 'ORDER' and 'ORDER LINE' tables.
The problem is that one of the totals I must calculate is a sort os distinct sum: I must sum a field from the 'ORDER' table, and show it only once for each order.
Meaning that if a order has 2 lines, the value of the field should appear once, not 2*value.
Is this possible?
NetAngel