Good Morning All. I am using custom code to get data from one of the textboxes (textbox182) in one of my tables. The code calculates closing balance by adding numbers I ask to and all works fine. I then use the value of this textbox to determine the value of an indicator i have next to it by referring to the textbox value ReportItems!textbox182.value.I need to format the value of this textbox in $M. The formatting for some strange reason is not holding. I wrote an expression for the formatting [code="plain"]=SWITCH(SUM(Fields!OPEX_VAL.Value) >=1000000 , "'$' #,0,,.00"+"M",SUM(Fields!OPEX_VAL.Value) >=1000, "'$' #,0,.00"+"K", SUM(Fields!OPEX_VAL.Value)>=0,"'$' 0.00")[/code]associated with this textbox and it does not work. If i were to format the expression of the textbox itself [code="plain"]=SWITCH(ISNOTHING(SUM(Fields!OPEX_VAL.Value)), "N/A", TRUE,format(code.GetQuarterTotal(), "'$' #,0,,.00"+"M") & code.resetQuarterTotal())[/code]This would work fine however the indicator will not be able to use it because its not a real number (output shows as $50.02M as an example).Can anyone tell me how to get around this issue of formatting a textbox value determined by custom code without formatting the code value itself
↧