sql server - SSRS chart labels -


i need figuring out how accurately display labels in stacked chart in ssrs; need single represenation of upper stack in below chart.

the chart has 2 states, can either based on red or green data, both in same data source.

at moment chart looks (this based on green data):

enter image description here

as can see both labels inside chart , legend absolutely cluttered. idea have legend have 2 items (late issues , not finished issues); 1 displays non-finished issues , 1 displays non-finished issues outside estimated due-date.

for reference: above chart should have 1 non-outstanding issue , 5 outstanding issues (3 ongoing , 2 open, see below further info stages).

enter image description here

inside chart want have numerical respresentation of above requirements. number representing outstanding issues , 1 shows non-finished issues.

this red representation looks like:

enter image description here

at point i'm not sure wrong anymore. mentioned both run on same dataset, different values.

the red tracker has simple true/false value runs of data whereas green tracker has numerical representation of 3 values (5-7). data represent is: 5 - open, 6 - ongoing, 7 - closed.

i've attempted green data both when series either of 3 above mentioned numbers, when it's getting un-closed (5,6 not 7).

this code set labels maroon part of chart (it's workable snippet.):

iif(count(iif(fields!outstanding.value = 1 ,  fields!trk_trackerstatus_lkid2.value <> 7, 1, nothing)) = 0, "", count(iif(fields!outstanding.value = 1  ,  fields!trk_trackerstatus_lkid2.value <> 7, 1, nothing)))) 

basically checking if there more 0 items outstanding , aren't finished (are not 7). if there more 0, sets label. if there 0 counted items, label should empty string.

i think wanting group series data based on status number. can either case statement in dataset query or can use expression in series group:

the expression have used there follows:
=switch(fields!status.value = 5, "group 1", fields!status.value = 6, "group 2", fields!status.value = 7, "group 2", true, "group 3")

this esentially assigns grouping value data based on values in field. in case, status of 5 becomes group 1, status of 6 or 7 becomes group 2 , other values become group 3 ensure bad data obvious on report.

what takes chart displayed raw data (on left) , turns think how want see (on right):

you need apply same logic chart labels well. reason recommend add column original sql script grouping you, have make changes once.


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - InvalidDataAccessApiUsageException: Parameter value element did not match expected type -