COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: joecog on 22 Apr 2011 08:21:32 PM

Title: Bar Chart Percentages not displaying correctly
Post by: joecog on 22 Apr 2011 08:21:32 PM
Hi,

I had created a bar chart where the Y2 axis is set as percentages.
The Series data item, I had set the data format as percentages as well.
The report instead of showing the percentages, it shows a zero on top of the bar.

Has anyone have this prob before?

Title: Re: Bar Chart Percentages not displaying correctly
Post by: joecog on 24 Apr 2011 11:16:06 PM
Hi there,


Anyone have any idea to solve this?


Regards,
Joe
Title: Re: Bar Chart Percentages not displaying correctly
Post by: 167505 on 26 Apr 2011 03:58:22 PM
Setting up dataformat as percentage will simply multiply the value by 100 and adds a % symbol next to it. so if your measure value is 3 it may show as 300 %.. if you want to display % in series you have to first make sure that the measure value is actually in decimal values..

Having said that .. are you able to see the Y2 axis values in %..for ex, the Y2 axis values should be like 10 %,20 % etc.. remove the dataformat in series and apply it only in Y axis and check the data first.. what type of chart you are using is it an stacked bar,column or 100 % stacked bar?

Regards,
Nag
Title: Re: Bar Chart Percentages not displaying correctly
Post by: joecog on 28 Apr 2011 10:19:32 PM
Hi Nag,

Yes the measure value is in decimal value.
I was able to see the percentage in Y2 axis but not at the top of the bar.
I'm using combination chart where the bar is a column , not stacked

In the crosstab report, I can see the net value in decimal and when I set the data format to percentage , the crosstab also show as in percentage.

But in the chart ,it only show as a "zero"
Title: Re: Bar Chart Percentages not displaying correctly
Post by: bvk.cognoise on 29 Apr 2011 05:05:56 AM
Hi joecog,

do one thing dont change data format to y2 axis data item.keep it as decimal.then drag a text item besides that y2 axis dataitem in that add '%' symbol.in my list report i did the same thing when i face the same problem.try it in chart.hop it works.

thanks
bvk
Title: Re: Bar Chart Percentages not displaying correctly
Post by: joecog on 04 May 2011 03:14:33 AM
Hi Vamsi,

The crosstab figure is shown correctly as percentage, just that in chart it was showing as decimal value.

From what mentioned by you, I not quite understand how to drag a text item beside the existing item and add in '%' symbol to it.
Do you have steps by steps to do it?

Joe
Title: Re: Bar Chart Percentages not displaying correctly
Post by: joecog on 08 Jun 2011 04:43:01 AM
Got the solution already, the put the percentages under Data Format field for Measures will solve the problem.