cancel
Showing results for 
Search instead for 
Did you mean: 

formulay to display max

Former Member
0 Kudos

Hello Friends,

we are displaying top 5 countries as below using ranking.

CountryCategoryQuantity
GermanyCatA80
ItalyCatB75
FranceCatA60
SwedenCatC10

But when I include material then it is displaying as below.

CountryCategoryMaterialQuantity
GermanyCatAMatA80
ItalyCatBMatC75
FranceCatAMatB25
FranceCatAMatD35
SwedenCatCMatE10

I need to display material where it has highest 'quantity' as below. but Quantity should display total (i.e 60), not the respective material quantity (ie 35).

Could you please help me the formula definition to display that material..

CountryCategoryMaterialQuantity
GermanyCatAMatA80
ItalyCatBMatC75
FranceCatAMatD60
SwedenCatCMatE10

Thank you,

suri

Accepted Solutions (1)

Accepted Solutions (1)

kohesco
Active Contributor
0 Kudos

check out document

http://scn.sap.com/docs/DOC-58033

I saw this question popup several times, so I thought a good document was needed.

Answers (2)

Answers (2)

Former Member
0 Kudos

Question: How do you determine which Material to show against the country?

saurabh_sonawane
Active Contributor
0 Kudos

try this one

sum(Quantity in ( county))

and after that apply rank