Groups | Blog | Home
all groups > sql server reporting services > june 2007 >

sql server reporting services : Format Currency


peashoe
6/13/2007 10:19:45 AM
Does anyone know how to change the currency as follows:
from: $2,332,765 to: $2.3

I've tried several combinations of ($#.#;$#.#;$0.0) and nothing seems
to work

Thanks in advance
Lisa
peashoe
6/13/2007 11:36:39 AM
Enrique,
This was EXACTLY what I needed!

Thanks,
Lisa
EMartinez
6/13/2007 5:51:58 PM
[quoted text, click to view]


You could try: $#.0 however, you might need to use an expression/etc
to divide the values by 1 million. (ie., =Fields!Currency.Value/
1000000) assuming that some values will not evaluate to zero. Also,
you might need to accommodate different currency ranges (ie.,
=iif(Fields!Currency.Value >= 100000, Fields!Currency.Value/1000000,
Fields!Currency.Value/100000). In this example case, if values will
fall below 0.0, then divide by a smaller value/denomination. Of
course, it would need to be based on your particular needs. Hope this
helps.

Regards,

Enrique Martinez
Sr. Software Consultant
EMartinez
6/14/2007 12:26:17 AM
[quoted text, click to view]


You're welcome. Let me know if I can be of further assistance.

Regards,

Enrique Martinez
Sr. Software Consultant
AddThis Social Bookmark Button