SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SSRS Text Box Properties: 2008


SSRS Text Box Properties: 2008

Author
Message
niha.736
niha.736
SSC Veteran
SSC Veteran (202 reputation)SSC Veteran (202 reputation)SSC Veteran (202 reputation)SSC Veteran (202 reputation)SSC Veteran (202 reputation)SSC Veteran (202 reputation)SSC Veteran (202 reputation)SSC Veteran (202 reputation)

Group: General Forum Members
Points: 202 Visits: 233
Hi , currently in my reports, i have 3 types of columns.
1. sales 989999
2.sales % 98
3.count 400000

here i need to get the values as
if the value is <999999 then it should be like 9999.99, if it is >999999 it should be same.
so what could be the expression for this?

TR
Niharika
Rob Taylor
Rob Taylor
Hall of Fame
Hall of Fame (3.7K reputation)Hall of Fame (3.7K reputation)Hall of Fame (3.7K reputation)Hall of Fame (3.7K reputation)Hall of Fame (3.7K reputation)Hall of Fame (3.7K reputation)Hall of Fame (3.7K reputation)Hall of Fame (3.7K reputation)

Group: General Forum Members
Points: 3704 Visits: 1616
Try something like:

=IIF(Fields!YourField.Value < 99999, FormatPercent(Fields!YourField.Value), CInt(Fields!YourField.Value))


I haven't tried this, so you may need to play around with this. But it should give you a start.

HTH,
Rob
niha.736
niha.736
SSC Veteran
SSC Veteran (202 reputation)SSC Veteran (202 reputation)SSC Veteran (202 reputation)SSC Veteran (202 reputation)SSC Veteran (202 reputation)SSC Veteran (202 reputation)SSC Veteran (202 reputation)SSC Veteran (202 reputation)

Group: General Forum Members
Points: 202 Visits: 233
Thanks for the reply ,

problem has moved a bit forward , But strucked over a little change
=iif(Cint(ReportItems!Sales38.Value)>99999,ReportItems!Sales38.Value,FormatNumber(CDbl(ReportItems!Sales38.Value),"N2"))


this is the expression i have written. with help of this am getting values with decimal values
like 76585.23 for some rows 89096.2

Problem is: i need to get 2 decimal points after " . "
can anybody suggest something.


Thanks in advance,
Niharika
Rob Taylor
Rob Taylor
Hall of Fame
Hall of Fame (3.7K reputation)Hall of Fame (3.7K reputation)Hall of Fame (3.7K reputation)Hall of Fame (3.7K reputation)Hall of Fame (3.7K reputation)Hall of Fame (3.7K reputation)Hall of Fame (3.7K reputation)Hall of Fame (3.7K reputation)

Group: General Forum Members
Points: 3704 Visits: 1616
niha.736 (10/29/2012)

problem has moved a bit forward , But strucked over a little change
=IIF(CInt(ReportItems!Sales38.Value) > 99999, ReportItems!Sales38.Value, FormatNumber(CDbl(ReportItems!Sales38.Value),"N2"))


this is the expression i have written. with help of this am getting values with decimal values
like 76585.23 for some rows 89096.2

Problem is: i need to get 2 decimal points after " . "
can anybody suggest something.

Would FormatCurrency() work better for you than FormatNumber()?

Or something like:

=Format(Fields!Sales38.Value, "#,##0.00") 



Good luck,
Rob
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search