Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
chinnu123
Creator
Creator

Top 5 records

Hi Community,

In my excel sheet I have two fields Group and value. I need to get top 5 groups based on the value

I am attaching sample excel please provide me some solution

Thanks,

Chinnu.

4 Replies
Clever_Anjos
Employee
Employee

sunny_talwar

Looking for something like this?

Capture.PNG

Script:

Table:

LOAD Group,

    value

FROM

(ooxml, embedded labels, table is Sheet1);

Join(Table)

LOAD Group,

  value,

  AutoNumber(value) as Rank

Resident Table

Order By value desc;

On the front end create a straight table with:

Dimensions: Group, Rank

Expression: =Sum({<Rank = {'<=5'}>}value)

chinnu123
Creator
Creator
Author

No sunny this is not solution I needed

sunny_talwar

Than can you clarify what exactly you are looking for?