## SUM Function and List ALL

Occasional Contributor

## 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?

2 ACCEPTED SOLUTIONS

Accepted Solutions
Certified Master Anaplanner

## Re: SUM Function and List ALL

Hi @hyudolee,

Top Level item is needed for Region List to aggregate values to Table B. Once Top level is added, you can directly refer the Amount (refer below screenshot)

Thanks

Sathya

Certified Master Anaplanner

## Re: SUM Function and List ALL

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

4 REPLIES 4
Certified Master Anaplanner

## Re: SUM Function and List ALL

Hi @hyudolee,

Top Level item is needed for Region List to aggregate values to Table B. Once Top level is added, you can directly refer the Amount (refer below screenshot)

Thanks

Sathya

Occasional Contributor

## Re: SUM Function and List ALL

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
Certified Master Anaplanner

## Re: SUM Function and List ALL

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

Certified Master Anaplanner

## Re: SUM Function and List ALL

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