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


running values on a stacked graph


running values on a stacked graph

Author
Message
Nomvula
Nomvula
SSCrazy
SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)

Group: General Forum Members
Points: 2858 Visits: 776
Hi
I have a stacked graph and need to calculate running values.
I have a series value is CountDistinct(Fields!WorkOrders.Value)
CategoryGroup (Fields!AgeGroupWeek.Value) and SeriesGroup (Fields!WorkOrderImportance.Value)
Then I created a secondary axis as a line type in order to calculate the accumulative value, the expression I used is
Runningvalue(Fields!WorkOrderCode.Value,
Count,nothing)
The only problem is that it's calculate for each SeriesGroup whereas I need to calculate the Running Value on a category group.
provided the sample data

CREATE TABLE DATALOAD

(

WorkOrderId VARCHAR(10)

,AgeGroupWeek VARCHAR(20)

,WorkOrderImportance VARCHAR(20)

);

INSERT INTO DATALOAD (WorkOrderId,AgeGroupWeek,WorkOrderImportance) VALUES ('S00258051' ,'Over 3 Months ago' ,'Normal')

INSERT INTO DATALOAD (WorkOrderId,AgeGroupWeek,WorkOrderImportance) VALUES ('S00126' ,'Over 3 Months ago' ,'Normal')

INSERT INTO DATALOAD (WorkOrderId,AgeGroupWeek,WorkOrderImportance) VALUES ('S03101' ,'Over 3 Months ago' ,'High')

INSERT INTO DATALOAD (WorkOrderId,AgeGroupWeek,WorkOrderImportance) VALUES ('S03091' ,'2 Months ago' ,'Low')

INSERT INTO DATALOAD (WorkOrderId,AgeGroupWeek,WorkOrderImportance) VALUES ('S03092' ,'2 Months ago' ,'Low')

INSERT INTO DATALOAD (WorkOrderId,AgeGroupWeek,WorkOrderImportance) VALUES ('S03093' ,'2 Months ago' ,'Low')

INSERT INTO DATALOAD (WorkOrderId,AgeGroupWeek,WorkOrderImportance) VALUES ('S03094' ,'1 Months ago' ,'Low')

INSERT INTO DATALOAD (WorkOrderId,AgeGroupWeek,WorkOrderImportance) VALUES ('S03095' ,'3 Weeks ago' ,'High')

INSERT INTO DATALOAD (WorkOrderId,AgeGroupWeek,WorkOrderImportance) VALUES ('S03096' ,'3 Weeks ago' ,'High')

INSERT INTO DATALOAD (WorkOrderId,AgeGroupWeek,WorkOrderImportance) VALUES ('S03097' ,'2 Weeks ago' ,'Normal')

INSERT INTO DATALOAD (WorkOrderId,AgeGroupWeek,WorkOrderImportance) VALUES ('S03098' ,'Over 3 Months ago' ,'Normal')

INSERT INTO DATALOAD (WorkOrderId,AgeGroupWeek,WorkOrderImportance) VALUES ('S03091' ,'Over 3 Months ago' ,'Normal')


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