Quantcast
Channel: SQL Server Reporting Services
Viewing all articles
Browse latest Browse all 1418

How can you create survey bar graph

$
0
0

Hi,

I want to create bar graph similar to below:

Is this possible in SSRS?

My dataset is as follows

Select SurveyID, 
       CourseID,
      ,SUM(CASE WHEN Q1_Yes = 'Yes' THEN 1 END) Total_Q1_Yes
      ,SUM(CASE WHEN Q1_No = 'No' THEN 1 END) Total_Q1_No
From Surveys 
Where Surveyid = 1 and Courseid = 5
Group By SurveyID, CourseID

I use a bar chart layout.

I Drop the CourseID field in the Category Groups area of The Chart Data pane
I Drop the Total_Q1_Yes field and the Total_Q1_No fields into the Values area of the Chart Data pane.
I Hide both horizontal and vertical axis and enable display values.
I Change the chart title text to display the question.

The only problem is I cant get the Total_Q1_Yes and Total_Q1_No to display on the category axis (vertical axis) along side the relevant bar since this is the category axis and only CourseID label can be displayed. Total_Q1_Yes and Total_Q1_No end up as the legend but I want them displayed on the vertical axis as in the layout above.

Also I'm having to create a chart for each question and stacking them below one another. Is there any way in SSRS I can get a layout like above?


Viewing all articles
Browse latest Browse all 1418

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>