2008 SSRS Chart Secondary Axis Data Value not being displayed - reporting-services

I use 2008 SSRS and am new to SSRS. I am trying to create a bar chart that has a line chart as the secondary axis. Within the Chart Data window, under Values, I have 'loan_count' as the primary axis and 'offer_percent' as the secondary axis. Under Category Groups I have the column 'month'. Under Series Groups, I have the column 'metrics'. For the 'metrics' column (Series Groups), I created a filter: [metrics] in Ending Inventory, Inventory with Offer (includes 2 values).
Let's look at the secondary axis under Values. The column used is 'offer_percent'. This is the column that does not show up in the report. In my attempt to fix this problem, under its Series Properties I have an expression: =IsNothing(Fields!offer_percent.Value) <> true = true. I am using this 'not null' expression because 'offer_percent' is present (not null) only when 'metrics' = 'offer_per_inventory'. With this expression, the report still doesn't show the values of offer_percent.
I hope I am clear with my issues. Any input would be greatly appreciated!
Thank you!
Edit : format code

Related

SSRS Charts & Datasets

I need help on what I believe to be a simple SSRS report function, but alas I cannot seem to get to work. I am running a SQL Server 2012, using VS2010.
The report that I'm tasked with requires multiple charts (pie, line and stacked) all based off this one query.
I have created a report with a single dataset as follows:
Use WWTP
SELECT DateAndTime, TagIndex, Val As Value
FROM FloatTable
WHERE DateAndTime BETWEEN #StartDate AND #EndDate
I then place a chart object on the report and apply a filter of TagIndex = 1 and I drag Value onto the chart for the X axis and I drag *DateAndTime* onto the chart for the Y axis. This returns the data as required.
However I'd like to add another value onto this chart (eg. TagIndex = 2). I have tried the following:
Modified the Chart Filter to TagIndex = 1 OR 2
Removed chart Filter and applied the following expression onto the value: =IIf(Fields!TagIndex.Value = 1, Fields!Value.Value, Nothing)
Both scenarios don't return anything. Should I create multiple data sets to achieve this?

SSRS Sparkline category with Lookup

I have a table in which I have to use SSRS Sparklines. But the requirement is that, I have to lookup the Y axis values and Category groups from another dataset, using a unique identifier in both the datasets. Lets say DS1 is the parent dataset and DS2 has got the Y values and Category (12 months) for the Sparkline.
I cannot use DS2 as Default dataset for the table, because it will result in writing lookup expressions for around 20-25 cells other than Sparkline cell.
So I used the below expressions for Sparkline.
Value axis :
=lookupset(Fields!RowID.Value,Fields!RowID.Value,Fields!Trend.Value,"DS2")
Category axis :
=lookupset(Fields!RowID.Value,Fields!RowID.Value,Fields!MonthName.Value,"DS2")
I used lookup set, because I believe we have to map a set of values to the Sparkline chart. But it throws me the below error.
Any suggestions to solve the error? Is it possible to configure a Sparkline without Category axis? I asked because I can manage my chart if SParkline can plot the trend values alone, without a category axis also.
You can use Join Keyword to avoid the "datatype that is not valid" error.
=Join(lookupset(Fields!RowID.Value,Fields!RowID.Value, Fields!MonthName.Value,"DS2"),"," + vbcrlf)
But the problem now is, All the Month names are displaying at one point in x-axis(Category axis).
Appreciate any help to get the Month names individually rather than at 1 point on category axis?

SSRS Cumulative Chart or S graph

How to create a Column chart with a cumulative line graph running over the columns. I have a dataset that returns the columns months,Qty1 and Qty2 . Now I need a column chart that compares these two quantities for every month in the column and a cumulative line for each Qty running over the column charts.
Thanks !
To get a line chart on top of your bar chart:
(Assuming you're using Visual Studio to design your report, these steps may be different in other environments):
Create your bar chart with the monthly bars that you want.
Click on the chart, then in the ChartData window that pops up, click the green "+" in the Values section, and add the field that contains the value you want to use in your line chart.
Once the value is added, right click it in the ChartData window, and choose "Change Chart Type" - change to a line chart.
Tweak your category, series, and axis settings until it renders in a manner you like.
NOTE: If your cumulative field isn't already a running aggregate, you're going to need to either add such a field to your dataset, or use an expression to work out the aggregation; the line chart won't do that for you.

SSRS. Hide a Column based on Row Group Value

My application uses SSRS to produce payslips for employees. The Payslip report consists of a tablix with 5 columns. Among the 5, is a column called "Units" and another called "Invoice value".
The report has several Row Grouping levels, but the only important one for this question is the Payslip Number Row Grouping "RG_SlipNum". There is a page break after each "RG_SlipNum" RowGroup.
When users want to print Payslips, they can optionally supply up to 5 parameters which filter the result set to print out.
Employees can be paid based on the number of units delivered * a rate (Unit Based), or by a percentage of the invoice value (Invoice based) for the delivery (Oversimplified, but hopefully, you get my drift).
If the employee is Unit based I want the Units Column to Show, and the "Invoice Value" Column to be hidden. If they are Invoice based I want both columns to show.
My dataset has a bit field indicating whether to show or hide a column based on the logic above. It will be a 1 or a 0 for every underlying row within the current rowGroup. I have tried to use the First(,) function in a Column Visibility expression on the "Invoice Value" Column. However, I get the following error whenever I try to limit the scope of the First Function to the current Payslip Rowgroup using the RowGroup name.
"The Hidden expression for the tablix 'X' has a scope parameter that is not valid for an aggregate function. The scope parameter must be set to a string constant that is equal to either the name of a containing group, the name of a containing data region, or the name of a dataset. "
So, my Question(s)
Can you define a RowGroup name as the Scope argument in a First() function?
If not, What's the best way of achieving this without completely re-working my Dataset / RDL to accomplish this. (Using SSRS2008)
Why is it always just after posting a forum question, you figure it (or some workaround) out?
I'd still like some (better) answers if anyone sees this, but I've set a cell in the tablix to the value of the bit field that determines whether to show the column or not. I then changed my Column Visibility expression to check the cell value (using ReportItems!textboxname.Value) and it's working. as I scroll the payslips the columns visibility changes appropriately.

How do I make a SSRS 2008 R2 Ranged Bar Chart always show data labels?

I am working on a Range Bar Chart in SSRS 2008 R2 that is configured to look something like a Gantt Chart. The Data set looks like:
Metric | Date-plot-1 | ... | Date-plot-n
My problem comes in with null values in Date-plot1. If my report dataset returns a data value, I see the date labels on the bottom of the chart. If that particular field is null, I either get no data labels, or "MM/dd/yyyy" (which is the formatting string I am applying to the dates).
Unfortunately, due to this being a data-quality report there can/will be NULL values in any/all of the columns. How can I get the axis label to display even if the first date plot is null?
what do you expect the values on the y axis to fall into if the X is null?
Nevertheless, I would deal with the null on the data source. Make it whatever value you answered my first question :)
If not possible, try to select the scale of the chart and see properties related with interval like intervalOffset.