I have a requirement to show numeric values in a client side report with decimal places only if those decimal places are used. The source data is a Decimal data type populated from an SQL money column.
For example:
- 28.0000 is to be shown as “28”
- 2.5000 is to be shown as “2.5”
- 2.5500 is to be shown as “2.55”
I cannot find a formatting option to do this. The nearest I have gotten in “#,###.####”, but this still shows the decimal point even when there is nothing after it.
Suggestions please.
Let’s say that your data field is UnitPrice, then you can apply an expression on the format of the text box ( right click ===> text box properties => Number => Custom => press on fx) showing the value for the field like this one.
Hope this help.