eseinc
asked on
SSRS 2005 Format colum based on name
In SQL 2005, I have a report with a matrix. The report displays information grouped by a column called constituents. By defual the value data is displayed in a number format with 2 decimals, which is fine for every column except for 1. I want that column to be displayed with no decimals.
I've tried going into the matrix box properties for that field and on the format tab under the format code I put the following two expressions in:
=IIF(Fields!ConstituentNam e.Value="S #","g","F" )
=IIF(Fields!ConstituentNam e.Value="S #","d0","F ")
When I run the report, the S# column is still showing with 2 decimals, how can I get that column to display without decimals and keep every other column at 2 decimals?
I've tried going into the matrix box properties for that field and on the format tab under the format code I put the following two expressions in:
=IIF(Fields!ConstituentNam
=IIF(Fields!ConstituentNam
When I run the report, the S# column is still showing with 2 decimals, how can I get that column to display without decimals and keep every other column at 2 decimals?
ASKER
I tried that and I'm getting an error
Too many arguments to 'Public Function Format (Expression As Object, [Style As String = ""] ) As string.
Too many arguments to 'Public Function Format (Expression As Object, [Style As String = ""] ) As string.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Following format code worked:
=IIF(Fields!ConstituentNam e.Value="n 0","g","F" )
=IIF(Fields!ConstituentNam
=IIF(Fields!ConstituentNam