COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: Kindness on 28 Sep 2011 07:00:28 AM

Title: How to create slice "Others" in pie?
Post by: Kindness on 28 Sep 2011 07:00:28 AM
Does anybody know how to create a slice "Others" in pie?
The task is the following: when the pie includes small slices, this slices should be displayed as one slice "others".
Thanks
Title: Re: How to create slice "Others" in pie?
Post by: Arpitagrawal9 on 28 Sep 2011 07:05:28 AM
if the slices whose size are small and are needed to be shown as others are fixed than in the data item you are using in the Pie chart create a conditional data item

For ex:

If [ProductID] IN (1,2,3,4,5)
THEN 'Others'
elsef [ProductID]

Hope this helps
Title: Re: How to create slice "Others" in pie?
Post by: Kindness on 28 Sep 2011 07:41:12 AM
Thanks, Arpit Agrawal!

But, unfortunately, the slices whose size are small and are needed to be shown as others are not fixed.

I experimented  a long and found a temporal solution. I created data item and insert it in the pie as series of pie slices:
union (
topCount (
[Dimention_View].[Questions].[Questions].[Section],
3,
[Dimention_View].[Corrective actions].[CA count]
),
member(
total(
[Dimention_View].[Corrective actions].[CA count] within set
except (
[Dimention_View].[Questions].[Questions].[Section],
topCount (
[Dimention_View].[Questions].[Questions].[Section],
3,
[Dimention_View].[Corrective actions].[CA count]
)
)
),
'Other Sections',
'Other Sections',
[Dimention_View].[Questions].[Questions]
),
all
)


and this solution works in simple report. but sometimes it doesn't work.

Therefore I ask for help. May be someone see a mistake in my solution or there is another way to create "Others" slice