Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9236

Aggregation

$
0
0

Hello, I have a query in which I have Company Code, Plants and then material ok.  Comp Code can have multiple plants and one pplant can have many materials ok.


When I do a query by including all these three char. my total comes out to be $283,900 (I did SUM function in Excel) but when I take Plants and Material out, my total for company code comes out $35,009,238. should it not be 283,900.

 

I have a calc. keyfigure in which i am using except. aggregation ok. but i don't know if this effects it or not.

 

so my data looks like this:

 

Company Code     Plant     Material     Price     Units     Formula (Price * Units)

COMP1                 KOR      101            100       100        1,000

COMP1                 KOR      102             200      100         2,000

 

 

but when I take out Material and Price to get the value at Comp Code level, it gives me this:

 

200 * 300 = 60000

 

which is wrong....and I want 3,000

 

 

 

 

 

 

 

 

 

 

please help.


Viewing all articles
Browse latest Browse all 9236

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>