on 04-22-2014 7:32 AM
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.
language | total |
Arabic | 5 |
Chinese | 5 |
English (Default) | 577 |
Espanol | 386 |
Hmong | 2 |
Iloko | 5 |
Korean | 2 |
NONE GIVEN | 17 |
Not Provided | 70 |
Persian | 4 |
Russian | 2 |
Samoan | 2 |
Tagalog | 13 |
Undetermined | 2260 |
Vietnamese | 5 |
after applying rank | |
language | total |
Undetermined | 2260 |
English (Default) | 577 |
Espanol | 386 |
Not Provided | 70 |
NONE GIVEN | 17 |
I want to show rest also means (final result should be like this)
language | total |
Undetermined | 2260 |
English (Default) | 577 |
Espanol | 386 |
Not Provided | 70 |
NONE GIVEN | 17 |
Arabic | 5 |
Chinese | 5 |
Hmong | 2 |
Iloko | 5 |
Korean | 2 |
Persian | 4 |
Russian | 2 |
Samoan | 2 |
Tagalog | 13 |
Vietnamese | 5 |
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 |
Undetermined | 2260 |
English (Default) | 577 |
Espanol | 386 |
Not Provided | 70 |
NONE GIVEN | 17 |
Arabic | 5 |
Chinese | 5 |
Hmong | 2 |
Iloko | 5 |
Korean | 2 |
Persian | 4 |
Russian | 2 |
Samoan | 2 |
Tagalog | 13 |
Vietnamese | 5 |
top 5 are coming with rank 5 and rest are coming as it is as real data
please suggest
Ranjeet
Hi Sampath,
this is output from database
language | total |
Arabic | 5 |
Chinese | 5 |
English (Default) | 577 |
Espanol | 386 |
Hmong | 2 |
Iloko | 5 |
Korean | 2 |
NONE GIVEN | 17 |
Not Provided | 70 |
Persian | 4 |
Russian | 2 |
Samoan | 2 |
Tagalog | 13 |
Undetermined | 2260 |
Vietnamese | 5 |
if i apply ranking (top 5) i am getting this out rest all are not coming due to ranking
language | total |
Undetermined | 2260 |
English (Default) | 577 |
Espanol | 386 |
Not Provided | 70 |
NONE GIVEN | 17 |
my requirement is like below
language | total |
Undetermined | 2260 |
English (Default) | 577 |
Espanol | 386 |
Not Provided | 70 |
NONE GIVEN | 17 |
Arabic | 5 |
Chinese | 5 |
Hmong | 2 |
Iloko | 5 |
Korean | 2 |
Persian | 4 |
Russian | 2 |
Samoan | 2 |
Tagalog | 13 |
Vietnamese | 5 |
means after top 5 rest all values will also be there is report
please ask if you want any more information..
Ranjeet
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
User | Count |
---|---|
76 | |
9 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.