I am on a site where we have no access to the rpd and are not aloud to use the evaluate function, so I am hoping this is possible with just answers standard OBIEE functionality.
my data is like this:
code amount Invoice Num Line Num Supplier
122 200 12345 1 John Dee
133 10 12345 2 John Dee
133 1 12346 1 Jane Doe
134 1 12346 2 Jane Doe
The output I want is
code amount Invoice Num Supplier
122 210 12345 John Dee
133 2 12346 Jane Doe
The logic for the result is 'give me the code by Invoice Num and Supplier that has the largest total value, in the case of ties give me an arbitrary result like the lowest line num for the greatest joint amount - or just a random line of the tied greatest, I am easy.
Many thanks guys and girls in thanks for your help.
Teresa.