Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 10045

How do I Format Decimal Places to 0 or 2 Decimal Places

$
0
0

Hi All;

Below are the exp in SSRS 2008
I need to
To covert negative values into brackets use the below code code




and to convert decimal value to decimal and non decimal value to integer use the below custom code
for e.g 1.5 is displayed as 1.5
2 is diaplyed as 2 and not 2.0

Any help much appreciated

Thanks

=IIf( Fields!new_outputs.Value = "Jobs Created" or
Fields!new_outputs.Value = "Jobs Safeguarded",
(Lookup(Fields!new_mainprogrammeid.Value & "," &

Fields!new_outputs.Value & "," &
 Fields!new_claimmonthid.Value,
 Fields!new_mainprogrammeid.Value & "," &

 Fields!new_outputs.Value & "," &
 Fields!new_claimmonthid.Value,
 Fields!new_fte.Value,  "JobOutcome"))
,
(Sum(LookupSet(Fields!new_mainprogrammeid.Value & "," &
Fields!new_subprogrammeid.Value & "," &
 Fields!new_outputs.Value & "," &
 Fields!new_claimmonthid.Value,
 Fields!new_mainprogrammeid.Value & "," &
 Fields!new_subprogrammeid.Value & "," &
 Fields!new_outputs.Value & "," &
 Fields!new_claimmonthid.Value,
 Fields!new_programmeoutputid.Value, "ProgrammeOutput").length()))
 )-

Sum(Fields!new_profilenumberValue.Value)


Pradnya07


Viewing all articles
Browse latest Browse all 10045

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>