Quantcast
Channel: SQLServerCentral » Reporting Services » Reporting Services » Latest topics
Viewing all articles
Browse latest Browse all 2791

SSRS chart filter dataset with series expression

$
0
0
Trying to build a bar graph with multiple series and am not able to specifically select the values I want per series.For the sake of simplicity I'll focus of just 2 series.The image below is not my example, but example of what I am trying to achieve. Image below shows 2 series, a blue series and a yellow series.[img]http://ueuqew.blu.livefilestore.com/y1pPRrN5wCtP1nfy2osV4QwZR6r9BaRPqQuR2imOSiQbY7tQGbtYlyQ2kAHmgxDhOjY8Xy8rOjqKHYvNb-7qZtcoupBPWf_W1Uv/Matrix%EF%BC%81.png?psid=1[/img]The dataset below is what I am working with, ordered by date[CompanyID] [Date] [ValueA]UNKNOWN ----- 8/1/2014 -----3661PHIBAR ----- 8/1/2014 -----9581EXXFAI ----- 8/1/2014 -----7075MOTHOU ----- 8/1/2014 -----3197NALNAP ----- 8/1/2014 -----2572AFTRIC ----- 8/1/2014 -----2343MARDEE ----- 8/1/2014 -----3903-----UNKNOWN ----- 7/1/2014 -----99299PHIBAR ----- 7/1/2014 -----23724EXXFAI ----- 7/1/2014 -----16953MOTHOU ----- 7/1/2014 -----6450AFTRIC ----- 7/1/2014 -----98799MARDEE ----- 7/1/2014 -----5685-----AFTRIC ----- 6/1/2014 -----151285MOTHOU ----- 6/1/2014 -----34700EXXFAI ----- 6/1/2014 -----26228PHIBAR ----- 6/1/2014 -----28701UNKNOWN ----- 6/1/2014 -----127911-----UNKNOWN ----- 5/1/2014 -----136922PHIBAR ----- 5/1/2014 -----37566EXXFAI ----- 5/1/2014 -----47861MOTHOU ----- 5/1/2014 -----18162AFTRIC ----- 5/1/2014 -----88223MARDEE ----- 5/1/2014 -----5575-----------------------------------------------------------------------------------------------------Constant Chart config: [Category Group=companyID]Series 1 configs (Blue):Sigma Values: [=Fields!ValueA.Value]This series will display these values:[CompanyID]----- [Date]----- [ValueA]UNKNOWN ----- 8/1/2014 -----3661PHIBAR ----- 8/1/2014 -----9581EXXFAI ----- 8/1/2014 -----7075MOTHOU ----- 8/1/2014 -----3197NALNAP ----- 8/1/2014 -----2572AFTRIC ----- 8/1/2014 -----2343MARDEE ----- 8/1/2014 -----3903Series 1 is never an issue, it displays the records above (1 valueA, per company, per day), which appear to be the first record, per date, for each companyID.-----------------------------------------------------------------------------------------------------All subsequent series pull back nothing, so Yellow bars never display....Series 2 configs (Yellow):Values: [=IIF(Fields!daterange.Value="2014-07-01",TRUE,FALSE)]OrValues: [=IIF(Fields!daterange.Value="2014-07-01",Fields!ValueA.Value,Nothing)]Orwhatever....This returns nothing, but I want it to return these records:[CompanyID]----- [Date]----- [ValueA]UNKNOWN ----- 7/1/2014 -----99299PHIBAR ----- 7/1/2014 -----23724EXXFAI ----- 7/1/2014 -----16953MOTHOU ----- 7/1/2014 -----6450AFTRIC ----- 7/1/2014 -----98799MARDEE ----- 7/1/2014 -----5685I am trying to show the values for each date, grouped by company, in their own bar-----------------------------------------------------------------------------------------------------So Series 3 configs (Addition Yellow) would display:Values: [=IIF(Fields!daterange.Value="2014-06-01",TRUE,FALSE)]AFTRIC ----- 6/1/2014 -----151285MOTHOU ----- 6/1/2014 -----34700EXXFAI ----- 6/1/2014 -----26228PHIBAR ----- 6/1/2014 -----28701UNKNOWN ----- 6/1/2014 -----127911-----------------------------------------------------------------------------------------------------So Series 4 configs (Additional Yellow) would display:Values: [=IIF(Fields!daterange.Value="2014-05-01",TRUE,FALSE)]UNKNOWN ----- 5/1/2014 -----136922PHIBAR ----- 5/1/2014 -----37566EXXFAI ----- 5/1/2014 -----47861MOTHOU ----- 5/1/2014 -----18162AFTRIC ----- 5/1/2014 -----88223MARDEE ----- 5/1/2014 -----5575-----------------------------------------------------------------------------------------------------The ridiculous thing is I can achieve what I need by adding a "Series Group" based on [date], but I can't customize the colors for each date.It seems very straightforward, but I have tried so many variations without success I'm about to put my Head through the monitor...I have got to be overlooking some basic principle....HELP!

Viewing all articles
Browse latest Browse all 2791

Trending Articles