cancel
Showing results for 
Search instead for 
Did you mean: 

how to apply ranking with all data

former_member196948
Participant
0 Kudos

Hi All,

Good morning,

I want to know how to show top 5 records(ranking top 5) with rest all data in table

for eg.

languagetotal
Arabic5
Chinese5
English (Default)577
Espanol386
Hmong2
Iloko5
Korean2
NONE GIVEN17
Not Provided70
Persian4
Russian2
Samoan2
Tagalog13
Undetermined2260
Vietnamese5

after applying rank
languagetotal
Undetermined2260
English (Default)577
Espanol386
Not Provided70
NONE GIVEN17

I want to show rest also means (final result should be like this)

language total
Undetermined2260
English (Default)577
Espanol386
Not Provided70
NONE GIVEN17
Arabic5
Chinese5
Hmong2
Iloko5
Korean2
Persian4
Russian2
Samoan2
Tagalog13
Vietnamese5

top 5 values coming from applying ranking and after that rest all are in the table

i am using 3.1 infoview.

Thanks in advance,

Ranjeet

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Ranjeet,

Do you want all the values in that table.. Apply Descending order in  the total column.

I am not sure hope useful to your requirement.

Regards,

G

former_member196948
Participant
0 Kudos

Hi Bhargav,

Thanks for your reply, i want all values in the table

Descending order will reflect values for all i want top 5  with rest of values

language total
Undetermined2260
English (Default)577
Espanol386
Not Provided70
NONE GIVEN17
Arabic5
Chinese5
Hmong2
Iloko5
Korean2
Persian4
Russian2
Samoan2
Tagalog13
Vietnamese5

top 5 are coming with rank 5 and rest are coming as it is as real data

please suggest

Ranjeet

former_member183330
Active Participant
0 Kudos

Hi Ranjith,

Not able to get your requirement, sorry to this.

Could you please explain clearly and just give the out put what you are getting and give the sample data how you want.

Thanks,

arijit_das
Active Contributor
0 Kudos

Well, then you have to use 2 blocks with fixed column width joined together using relative positioning.

former_member196948
Participant
0 Kudos

Hi Sampath,

this is output from database

languagetotal
Arabic5
Chinese5
English (Default)577
Espanol386
Hmong2
Iloko5
Korean2
NONE GIVEN17
Not Provided70
Persian4
Russian2
Samoan2
Tagalog13
Undetermined2260
Vietnamese5

if i apply ranking (top 5) i am getting this out rest all are not coming due to ranking

languagetotal
Undetermined2260
English (Default)577
Espanol386
Not Provided70
NONE GIVEN17

my requirement is like below

languagetotal
Undetermined2260
English (Default)577
Espanol386
Not Provided70
NONE GIVEN17
Arabic5
Chinese5
Hmong2
Iloko5
Korean2
Persian4
Russian2
Samoan2
Tagalog13
Vietnamese5

means after top 5 rest all values will also be there is report

please ask if you want any more information..

Ranjeet

former_member183330
Active Participant
0 Kudos

Create variable Use below logic

=Rank([total];[language])

drop this variable besides the above mentioned 2 fields you will get the rank numbers, sort based on this variable.

or

if need the same sort order like you given above then se the below logic:

=If(Rank([total];[language])<=5;1;2)

drop this variable in front column of the table .

Thanks

former_member196948
Participant
0 Kudos

hi Sampath

i dont want to use sorting on records if u see my sample report after top 5 values are  like 5,2 ,13.

after top 5 it is mixture of data no sorting apply 

ranjeet

arijit_das
Active Contributor
0 Kudos

I really do not understand what kind of business need is satisfied by such representation of data. Why can't you just show the data in descending order ?

former_member183330
Active Participant
0 Kudos

Ranjeet,

you can show the data as you wish use below logic.

=If(Rank([total];[language])<=5;Rank([total];[language]);6)


use this variable in first column of the table and hide the column.


but as arjith said there is no logic for your requirement.


Thanks,

G Sampath Kumar