I need to create a PIE graph with OTHERS for a WEBI report.
I have 3 columns on the report
Student Roll No, Student Name, Total Marks
I need to display only the the Top 5 Student Names on the basis of Total Marks all others need to be displayed under OTHERS.
This needs to be displayed in a Pie Chart. I have a primary Key in the table “Roll No” which does not allow me to group on “Others”.
Please help!!! Can I create a Pie graph displaying only top 5 student names and the remaining students and their total marks in OTHERS section.
EX.
Roll No ----Student Name-------Total Marks
1------------Rita-------------------245
2------------Mary-----------------300
3-----------Joseph---------------200
4-----------Ralph----------------250
5----------Suzie-----------------150
6---------Ryan------------------230
7---------Tina------------------280
8----------Steve----------------295
9----------Jack----------------160
10---------Ronnie------------140
The graph should display only Mary,Steve,Tina,Ralph and Rita with their appropriate Total Marks and OTHERS should show the sum of teh remaining marks i.e 880.
Thanks for the reply…
I think you have not considered the Unique Key i.e Student Roll No.
This needs to be considered in the graph as we can have 2 student names with the same name but different roll no and different marks.
You have only considered Name and Marks where all names are distinct. Try having some duplicate names and different marks and a unique key like rollno…Let me knwo if you can group OTHERS then!!!
If you are in a table or a section, this modifies the contexts.
In my example there are no sections
about #CONTEXT and rank
It is normal that [Rank] gives you #Context if you use it in a table with [Student Top 5] (because the rank variable must be used with City as output context)
If you need to use those 2 objects alone in a table then put : [Rank] in([Student Roll]) instead of just [Rank]
(this will return a #MULTIVALUE for the “Others” but it is not a problem since you can sort ascending rank anyway)
about #MULTIVALUE and student top
Are you sure that you created a dimension variable ? by default webi will try to force it to a measure, which leads to a #MULTIVALUE error.
You can either force it to a dimension or let it as a measure and create an additionnal dimension variable : [Student Top 5 Dim]=[Student Top 5].
In all case, the variable you will use in your tables must be a dimension.
Hi Joe,
Ok that makes sense.
I found that even with a #MULTIVALUE error in the table, the graph displayed correctly - strange but true!
This is discussed more here: https://bobj-board.org/t/139201
I’m glad to know that it works in XIR3!!!
Thanks