Hi everyone - I have a problem that's a bit beyond me :
I have the following result set that I am putting into a SSRS 2012 Matrix:
RowNumRowLabel Val Title
1.00 Advance 10000.0000 TestTitle1
4.00 List Price 18.0000 TestTitle1
5.00 Units Shipped 20000 TestTitle1
6.00 Return Units -8125 TestTitle1
7.00 Net Sales Units 11875 TestTitle18.00Return % 45.0%/10.0% TestTitle1
*Note: The data in Val for 'Return %' is a text field - informational only and necessary.
When setting it up such that the Columns are Title, and the Rows areRowLabel, I get the folowing:
| TestTitle1 |
Advance | 10000.0000 |
List Price | 18.0000 |
Units Shipped | 20000 |
Return Units | -8125 |
Net Sales Units | 11875 |
Return % | 45.0%/10.0% |
What I would like to do is, basically, format the cell based upon its RowNum. RowNums 1 through 7 get a specific format for each, and I want RowNum = 8 left alone and simply display its Text contents.
| TestTitle1 |
Advance | $10,000 |
List Price | $18.00 |
Units Shipped | 20,000 |
Return Units | (8,125) |
Net Sales Units | 11,875 |
Return % | 45.0%/10.0% |
When I try to set up conditional formatting on the cell, 'Val', I get a #error for the 'Return %' row:
"Warning1[rsRuntimeErrorInExpression] The Value expression for the textrun ‘textbox2.Paragraphs[0].TextRuns[0]’ contains an error: Input string was not in a correct format."
I tried using Cstr and CDec in different combinations in the 'Expression' setting for the cell, to no avail - This is my latest attempt:
= Iif( Fields!SortOrder.Value *1 = 5
or Fields!SortOrder.Value *1 = 6
or Fields!SortOrder.Value *1 = 7
,"#,0;(#,0)"
,(Iif (Fields!SortOrder.Value *1 = 4
,"'$'0.00;('$'0.00)"
,(Iif (Fields!SortOrder.Value *1 = 8
,"Text"
,"'$'#,0;('$'#,0)")
) )
)
)
ANY help would be GREATLY appreciated!
Thanks!
--Jim