Link to home
Create AccountLog in
Microsoft SQL Server 2008

Microsoft SQL Server 2008

--

Questions

--

Followers

Top Experts

Avatar of asrithap
asrithap🇺🇸

SSRS Bar chart displaying percentage
I have a sharepoint  2010 list that is my data source for my SSRS 2008 Bar chart report. I want to display the percentage of employees complete and incomplete by section in bar chart. I am able to show the count of employees completing the task but unable to get the percentage of employees completed in ssrs bar chart. Can anyone help me out in this issue. Please find attached ssrs report and structure of the sharepoint list.
structureOfList.png
SSRSBarChart.png
PolicyReport-DashboardSep29.rdl

Zero AI Policy

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of ValentinoVValentinoV🇧🇪

I assume you want a percentage as compared to the other bar within the same category, right?  If I take your chart in the screenshot as example, the first bar should show 10%, the second one 90%, and so on, right?

To get that done, you can actually calculate it through an expression that references the actual category group in the chart.  In your case that would be something like this:

=Count(Fields!ID.Value) / Count(Fields!ID.Value, "Chart1_CategoryGroup")

Open in new window

The first part (in front of the / division operator) gets the count of the current series item within the current category while the second part gets the count of all items, regardless the series, within the current category item.

To get your value formatted right, put something like 0% in the Label > Format property of the Chart Series (can be done through the Properties window).

In case you're interested in learning a bit more about the formatting options: Formatting Numbers [SSRS]

Avatar of asrithapasrithap🇺🇸

ASKER

Thank you so much for all your help. Finally I was able to show the percentages. I have issue with the formatting. Please see the attached screenshot. I have used FormatPercentage in Series Label properties. =FormatPercent(Count(Fields!ID.Value) *100/ Count(Fields!ID.Value, "Chart1_CategoryGroup")). I am new to ssrs and I am not sure where to format it. Could you please help me on this. I am in hurry to complete this task.
Chartscreenshot.png

Avatar of asrithapasrithap🇺🇸

ASKER

Thank you ValentinoV for all your help. I truly appreciate it.  You saved my day. I removed 100 in expression and it worked. Is there anyway that I can increase the space between bars for more clarity.

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


ASKER CERTIFIED SOLUTION
Avatar of ValentinoVValentinoV🇧🇪

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account

Avatar of asrithapasrithap🇺🇸

ASKER

Ok let me give a try  in setting the point width thanks again

Avatar of asrithapasrithap🇺🇸

ASKER

Sure will do . Thanks for all your help
Microsoft SQL Server 2008

Microsoft SQL Server 2008

--

Questions

--

Followers

Top Experts

Microsoft SQL Server 2008 is a suite of relational database management system (RDBMS) products providing multi-user database access functionality.Component services include integration (SSIS), reporting (SSRS), analysis (SSAS), data quality, master data, T-SQL and performance tuning. Major improvements include the Always On technologies and support for unstructured data types.