SUM Function and List ALL
I want to aggregate the order From Table A to B.
Table A
Region | Product | amount |
a | x | 100 |
y | 10 | |
b | x | 200 |
y | 20 |
Table B
Region | aggregate |
x | 300 |
y | 30 |
I input the formula as below.
Aggregate = Amount [SUM:Region]
But I could not calculate it.
If I have RegionALL as Region's top level of item, I could calculate it.
We should use Top level of item instead of SUM Function?
Best Answers
-
Hi @hyudolee,
Dimensions in Table A --> Region and Product [ 2 different lists]
Dimension in Table B --> Product
The values in Table A are at the Region and Product levels. However, you are trying to fetch value at each Product in Table B from Table A.
To aggregate values, you need Top level item in the Region list.
Hope this helps --> Understanding Top Level - Anaplan Community
In your previous example regarding SUM, I believe you have one of the below mentioned methods
Region and Amount are two different properties in the "Country" List
OR
Region and Amount as two line items in a module
You can use SUM in that case without adding a Top level item.
Hope this guide helps to understand SUM Function --> SUM - Anaplan Technical Documentation
Regards
Sathya
0
Answers
-
Let me understand couple of things about your case:
1) First table has two dimensions: Region and Product
2) Second table has only Regions
3) Product list has Top level item
If all of the above are true, then you don't have to use SUM function for aggragation and you can simply link to the amount line item:
Aggregate = Amount
Aggregate line item will automatically take Product.Top Level amount.
Hope it helps. If not - please add details.
Cheers,
Kirill
0 -
Hi, @SathyaM .
Thanks for replay!
You mean we cannot aggregate amount unless we set Top level of items?
I can aggregate it Country to Region(Property), if I use Formula like [SUM:Region].
But I can not do before case.
I think it's strange.
Country Region(Property) amount a X 100 b X 200 c Y 10 d Y 20 Region amount X 300 Y 30 0