Showing different boolean columns in one plot in spotfire - bar-chart

I have the following data structure to be displayed in spotfire
i'd like to have a visualization like this:
Any ideas?
Thanks!

You can achieve this by adding an unpivot of your table:
Click File > Add Data Tables. In the Add drop down box, choose the table that you want to unpivot. On the transformations section, choose Unpivot in the drop down box, and then press Add... Highlight all columns "Operations added Flag", "Operations Removed", etc and add them to the Columns to transform box. Note that you should only add the columns that you want to appear as bars. Hit OK. Next, add a bar chart. Right click and choose Horizontal Bars, and then again to choose 100% stacked. For the x-axis use Count([Value]) and select Category for the y-axis. In the Bar Chart properties, change it so that it colors by Value.

Related

Display a Tablix on click of Image in ssrs.

We have one requirement in SSRS where we need to display the tablix on click of the Image. By default tablix will be hidden, when user clicks on the Image then we need to show the hidden tablix. Kindly suggest some solution if any. Thanks.
You can toggle the visibility of an object. Initially have the visibility property set to hidden, then use the toggleitem property to accomplish what you are looking for. Instructions are below
To hide static rows in a table, matrix, or list:
In report design view, click the table, matrix, or list to display
the row and column handles.
Right-click the row handle, and then click Row Visibility. The Row Visibility dialog box opens.
To set the visibility, follow steps 3 and 4 in the first procedure.
To hide static columns in a table, matrix, or list
In Design view, select the table, matrix, or list to display the row and column handles.
Right-click the column handle, and then click Column Visibility.
In the Column Visibility dialog box, follow steps 3 and 4 in the first procedure.
Then use the ToggleItem property of the table. Select the table, locate the property in the Properties window and specify the name of the textbox. If you now render the report you'll notice a little + icon in front of the testingBox content.
To find out what your textbox is called first select that and look at the bold part in top of the Properties window. To change it you can use the Name property. It's advisable to give it a clear name so you can easily locate it.

Target reference for each bar in Spotfire

In Spotfire:
Is it possible to show target value reference line for each bar in a bar chart.
A way around that i am doing now is using combination chart. Refer screenshot.
The problem here is that now i can not define a color by property to color bars using rules.
I don't believe you can do it automatically without scripting but here is an example of how to do it by hand.
Right click on your bar chart and go to the Lines & Curves section:
Here you can see I've added 4 lines based on percentage of the data.
You can do this or add lines of set values using the Add button in the top right and selecting Horizontal Line.
Notice I've added the line name as the description of the percentage it is, hovering over will show an actual value so it may better to do this if it isn't clear what the value represents.
This is what it produces:
To make it better match your question I've added 2 more employees and coloured by employee instead, I've also set fixed targets for each person rather than percentages and renamed them to make sure it is clear which line applies to which person in case the colour isn't enough.
Using the Settings -> Appearance section back in the first picture change the colour of the lines to match the fields they represent.
Like I said at the start you should be able to create a script to do this for you but that is another question.

SSRS stacked bar chart label position

I am using SQL Server 2012. SSRS
I have a stacked bar charts that includes interest and dividends. I would like to add the sum of these values to the area just above the stacked bar chart. I have tried adjusting various properties for the labels but I can't get the label position to be anywhere but the middle of the stacked bar chart. Any ideas how to get these labels to be just above the stacked bar charts?
I tried the solutions mentioned here and found them cumbersome compared to this gem: http://peltiertech.com/label-totals-on-stacked-charts/
Add a "total" to your dataset (in my case, a percentage)
Add the total series to your stacked bar chart
Change the total series chart type to a line
Hide the line and line markers by setting their fill color to none
Set the Total series to not show in the legend
Set the data point position for your total series to "Top"
Here is my result:
There is not a way to do this with settings.
Here are a couple of links that give you step by step instructions:
http://beyondrelational.com/modules/2/blogs/65/posts/11575/display-total-on-top-of-stacked-chart.aspx
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/654f30c2-ad3a-4b4e-a34f-adf4db6b78d2/stacked-column-chart-total?forum=sqlreportingservices
Basically, the workaround is to create another series or category in your chart that is the totals (which requires updating your dataset to include the totals), make it transparent, and turn data labels on. The MSDN answer says to make it a line chart while the Beyond Relational article leaves it as part of the stacked bar. Either way will work.

Is it possible to add items to legend that are not on the chart?

I have a column chart in SSRS with a single series group. The chart is perfect but I need to add a couple of items to the legend even though they are not part of the chart (don't ask). If I add them to the data source with 0 values, the width of my columns still change to reflect the new number of items in my series group.
I ended up using Word to create an image of the proper legend and using this image as my legend. Works great but feels like duct tape.

Move a column in Report Builder 2.0

How can I simply move a table column left or right in Report Builder using the UI (or text editor if necessary)?
I've tried to drag and drop, looked at menus, etc, and I can't find that option. Is it in there? So far I've had to delete and recreate a column every time I wanted to change its position.
In Report Builder 3.0 you can move columns like this:
Insert a new empty column
Copy (or cut) the text of the header and the text of the value in the new empty cells
Delete the old column
Or the easiest way is just to not move the columns but change their content by hovering over the column you want to change and select a new data type. After this you still need to update the column name and you're done.
I tried this too, but it only moves the values in the DataSet, not in the report:
Right click DataSet1 in the left menu and select Dataset Properties
Select Fields on the left and click on any field to move it with the blue arrows on top
You can cut and paste - click the column you want to move and cut with Control-X. Then select a different column and paste with Control-V. That will place the old column to the left of the selected column.