SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Unable to get stacked Column chart working


Unable to get stacked Column chart working

Author
Message
dbman
dbman
SSC Veteran
SSC Veteran (217 reputation)SSC Veteran (217 reputation)SSC Veteran (217 reputation)SSC Veteran (217 reputation)SSC Veteran (217 reputation)SSC Veteran (217 reputation)SSC Veteran (217 reputation)SSC Veteran (217 reputation)

Group: General Forum Members
Points: 217 Visits: 1537
Hello,

I am trying to get a stacked column chart to work. I have the following query:

SELECT COUNT(CALL_Status) AS Calls, Call_Operatorid, Call_Status
FROM CALL
WHERE ( CALL_OPERATORID = 'Paul Smith' OR
CALL_OPERATORID = 'Martin Jones' OR
CALL_OPERATORID = 'Tim Edwards' OR
CALL_OPERATORID = 'James Peters') and (Call_Status <> 'Closed' or Call_Status = 'In Progress' or Call_Status = 'User Action Required' or Call_Status = 'Monitoring')
GROUP BY CALL_OPERATORID, Call_Status


If I run my query i get the following results:


Calls Call_Operatorid Call_Status
1 Paul Smith In Progress
2 Martin Jones In Progress
5 Tim Edwards In Progress
2 James Peter In Progress
3 Paul Smith Monitoring
2 Martin Jones Open
4 James Peters Open
2 Paul Smith Open
1 Tim Edwards User Action Required
4 Paul Smith User Action Required


I am trying to create a stacked column chart. I have dragged the chart on to the report. I would like the columns to contain the results for each Call Operatorid

So for instance the first stacked column would have 'Open' in red, 'In progress' in blue, 'monitoring' in green etc.

In the value section I have dragged Calls. I then added another field and then another field. Subsequently adding three calls values.

In the category groups section i added Call_Operatorid.

If i run the report all the stacked columns look the same height. What i need is for the respective stacks to correspond with the query results. Do i need to use an expression somehow?
Or does anyone know where I am going wrong.

Thanks
dbman
dbman
SSC Veteran
SSC Veteran (217 reputation)SSC Veteran (217 reputation)SSC Veteran (217 reputation)SSC Veteran (217 reputation)SSC Veteran (217 reputation)SSC Veteran (217 reputation)SSC Veteran (217 reputation)SSC Veteran (217 reputation)

Group: General Forum Members
Points: 217 Visits: 1537
Any ideas anyone?
dbman
dbman
SSC Veteran
SSC Veteran (217 reputation)SSC Veteran (217 reputation)SSC Veteran (217 reputation)SSC Veteran (217 reputation)SSC Veteran (217 reputation)SSC Veteran (217 reputation)SSC Veteran (217 reputation)SSC Veteran (217 reputation)

Group: General Forum Members
Points: 217 Visits: 1537
Problem solved thanks.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search