views:

538

answers:

2

Writing a Reporting Service (2005) report

My DataSet returns something like this:

DESCRIPTION       COUNT
Total Properties  12345
Demolished         1243
Non-Demolished    11102
  :
  :

I have this displayed as a table and this is fine.

Now I also want to display the data like this:

                     [ 12345 ] Total Properties
                       /   \
                     /       \
 Non-Demolished [ 11102 ]   [ 1243 ] Demolished

I can add the text-boxes and lines but what expression do I need to fill in the values? Need somethig that returns the count based on a match to the description in the row.

A: 

Maybe you could do something like this:

=Iif(Fields!Description.Value = "Demolished", Fields!Count.Value, "Value not found")

Jon
But the text-boxes do not point to the DataSet so I can't reference any fields directly...
Sam Mackrill
I am not entirely sure what you mean. If your table can access the DataSet, your Textboxes should also be able to.
Jon
The text-boxes are not in a table. Perhaps they need to be?
Sam Mackrill
I use textboxes all the time, and they work with the dataset specified in the RDL file.
Jon
+1  A: 

Here is the way to do it.

First(Fields!FieldName.Value,"DataSetName")

Frank Pearson