Multi-line Text formatting on a Chart's bar value - sql-server

Is it possible to format multiline text on series values labels for a stacked bar chart.
The image below is what I am after.
The things I have tried so far.
Add a table to the report with column groups for each grade. Each column group will have ten detail columns so I can draw the pesky arrow lines, actually two groups of ten, one for the line and one for the arrows. That would equate to 12 x 20 textboxes to support stupid arrows.
Row group by grade a place a chart in each group detail. This is fine and then I can play with the horizontal axis offsets and get an almost identical match, however, I need to have two rows of text per value on the chart, is this possible?
I am open for other options. I might attempt to migrate this over to a kendo chart as I have converted a few chart reports that are impossible to render on the servers.

Is it possible to format multiline text on series values labels for a
stacked bar chart.
Yes, it is possible. You can use Environment.NewLine to produce a new line in any SSRS expression.
Even you can use it in the stacked bar chart series label, just concatenate the value you want to show with the produced new line.
=Fields!FirstLineValue.Value & Environment.NewLine & Fields!SecondLineValue.Value
It should produce:
Hopefully this is what you need.

Related

Comma-separated values as filter control in Google Data Studio

I have a sheet that has a text field that contains strings of comma-separated values.
I'd like to create a filter control that is smart enough to take those comma-separated values and parse them as individual strings.
For example, I have a field called "Colors" and three rows with the following values:
Black
Yellow, Blue
Blue
Currently, a filter created from this field contains the following values:
Black
Yellow, Blue
Blue
Ideally the filter would contain (and filter appropriately) the following values:
Black
Yellow
Blue
And selecting "Blue" would return rows #2 and #3.
This seems like rather basic functionality—am I missing a way to do this?
A Long Data Structure is preferred over a Wide Data Structure.
One way this can be achieved in Google Sheets is to first JOIN the comma separated values, then SPLIT them into individual cells and finally, to TRANSPOSE them so that they are all stacked in a single column (where Sheet1 is the input sheet and A:A the range):
=TRANSPOSE(
{SPLIT(
{JOIN(", ",Sheet1!A:A)},
", ", FALSE, TRUE)})
Google Data Studio Report to demonstrate, as well as a GIF showing the process:

Why do I see "Blank" or "0" value at the begging of Stacked Column Chart in Power BI Desktop

For some reason stacked column chart displays "Blank" value even though data behind doesn't have any Blank or '0'.
And my X-axis doesnt have "Type" where I can choose between continuous or categorical:
In a data behind I have 12 months, no blank or 0 :
The (Blank) value can occur even though your underlying data set has no blank values. It is because when you have established relationship between tables, and there are other visuals or filters on the same report page, leading to a joining or filter which results in blank values.
It can be hard to pinpoint sometimes, so the easiest thing you can do is to filter it in the Visual level filters as follows:
As for the X-axis continuous or categorical type setting, it is only available when the data type is numerics or date/time. The MonthShort column you're using is just text to Power BI and it has no idea in what way it should be continuously linked. You need to use the MonthNumber or a date column if you want to achieve so.

How to remove spacing between bars in column chart SSRS 2012

How can I remove spacing between bars in SSRS 2012 report.
In design mode, select one of the columns in the chart.
In the Properties pane, look for CustomAttributes; expand that group.
Look for PointWidth within that property group. Change that value from 0.8 (the default) to 0.9 for the columns to be a little closer together. Change the value to 1 if you want your columns to touch. Adjust as desired.
They keep this one hidden, a bit.
You need to set the PointWidth property of the chart series to 1 if you want no space between, you can adjust this value to adjust the amount of space, the higher the number, the less space between, default is 0.8.
To get to this, click on one of the columns in the chart and then hit F4 to display properties (assuming Visual Studio here, I don't use report builder).
Under Custom Attributes, you will find PointWidth, change this value to 1 or maybe .095 to get a very narrow gap.

SSRS Chart Calculated Series alongside a Regular Series

I've noticed that in SSRS the ability to add a calculated series disappears if you already have a field filled in for the "Series Groups" part of the graph. Screenshot to demonstrate:
However I need to be able to add some calculated trend lines for the data and obviously removing the Series group renders the chart useless. How do I go about getting a Series and a calculated series on a chart?

LineChart using 2 Dataset in SSRS

I want to create a line chart using 2 set of values.First value (i.e line) will show open report and second value(i.e line) with show closed report. The x axis will show months and y axis will show number(i.e sum of report). I tried using the following expression in the values
box of chart data but i am getting a straight line.
=Sum(Fields!Count.Value, "DataSet1") for line 1
=Sum(Fields!Count.Value, "DataSet2") for line 2
I am using cube to create my Dataset.
You cannot combine two datasets in the same chart. You need to combine the data into a single dataset or use the Lookup function if you have a common field between Dataset1 and Dataset2:
http://msdn.microsoft.com/en-us/library/ee210575(SQL.105).aspx

Resources