Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
FEDE
Contributor II
Contributor II

CALCULATE A KPI WITH THE TOP 10 VALUES (Languages IT and EN)

Ciao a tutti,

ho un estrazione dove vengono registrati gli ordini di competenza: in tale estrazione  sono presenti i campi: fornitore, mese  di competenza, importo, cliente etc...

Vorrei creare un KPI il cui valore mostri la somma degli importi solo per i top 10 fornitori, ovvero il totale ordinato dai clienti ai 10 fornitori che hanno un valore dell'importo ordinato più alto.

Come posso fare?

Grazie 🙂

Hi everyone,

I have an extraction where are recorded the orders of competence : in this extraction the fields are present: supplier, month of competence, amount, customer etc ...

I would like to create a KPI whose value shows the sum of the amounts only for the top 10 suppliers, that is the total ordered by the customers to the 10 suppliers who have a higher amount of the ordered amount.

How can I do?

Thank you 🙂

1 Solution

Accepted Solutions
bhargav_bhat
Creator II
Creator II

Hi FEDE,

Try this expression

sum(Aggr(if(Rank(Sum(amount),4,1) <=10,Sum(amount),0),Supplier))

Regards,

Bhargav

 

View solution in original post

4 Replies
bhargav_bhat
Creator II
Creator II

Hi FEDE,

Try this expression

sum(Aggr(if(Rank(Sum(amount),4,1) <=10,Sum(amount),0),Supplier))

Regards,

Bhargav

 

FEDE
Contributor II
Contributor II
Author

Thank you Bhargav 🙂
bhargav_bhat
Creator II
Creator II

Hi Fede,

Can you please mark it correct if you got the solution  🙂 

Regards,

Bhargav

 

FEDE
Contributor II
Contributor II
Author

Did I mark it in the correct way?
Sorry i'm new 🙂