hi,
in my reporting services report i have a textbox wich shows the sum of unit prices (=Sum(Fields!Sales_Line__Unit_Price_.Value).
my problem is, i would like to fomat the textbox that it shows me the value without decimal places.
i tried many format codes in the fomat propertie like '########'. This code works but with that i dont have the point of the tousand value.
with that code the output is: 100000 but i would like to have 100.000,-. I also tryed ####.#### but it doesnt work.
have somebody an idea how to fomat it?
thanks, rené
0
Comments
The field is called UnitPrice and Unit price has another value in the data set that is UnitPriceFormat that when printed on the report it displays as "#,##0.00" I'm wondering why the format isn't working. Any more info just ask! Sorry if i'm being unclear!
http://mibuso.com/forum/viewtopic.php?f=5&t=45808
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
I tried to put a "n" in the format property text box and nothing changed
Sales_Line__Unit_PriceFormat
in your dataset?
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
yup I do.. and when I insert that field into my table above Sales_Line__Unit_Price it does nothing..
I didnt get where you have inserted?
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
I put the PriceFormat field in the body section - same table - in the cell above Unit_Price... so its in the same area.. I even tried putt priceformat field in the header everyone in the body and nothing. Can anyone tell me where it's "suppose" to go?
you need to add priceformat in the Sales_Line__Unit_Price field format property...
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
This evens it all out and looks nice..as you can see in my 2nd attachment
but the "Net Price" format looks all messed up . I added this field "=Fields!Sales_Line___Unit_Price_Format.Value" into the Format property of the cell but it did nothing ...i'm all out of ideas!
any suggestions will be tried! I promise!
If you've problems about value Sum(Fields!Sales_Line___Unit_Price_.Value), you've two ways:
1. round the unit price correctly in nav (and if all the unit prices have 2 decimals, their Sum aggregate will have 2 decimals, obviously)
2. use the round function of visual web developer on your sum function (in the expression menu in visual web dev, view common functions -> math to see its syntax)
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
Hey Belias,
As always you come to the rescue! LOL thanks and yes that is a lot closer than I was before using the round function
=Round(Fields!DM_GetNetUnitPrice.Value)
The only thing is that it rounds to the nearest WHOLE int. so a number like 46.335 rounds to 46 ... and I tried the following
Round(Fields!DM_GetNetUnitPrice.Value,#.##0.00) and other combination's of that and I get an error.. I've looked up on
http://msdn.microsoft.com/en-us/library/dd338738.aspx
to try to figure it out but it really doesn't help me much.. have any suggestions on how to specify to Round to nearest hundredth decimal?
=Round(Fields!DM_GetNetUnitPrice.Value,2)
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
As we like to say here in America Belias .... YOU ARE THE MAN!!! \:D/ =D> :thumbsup: