Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Format specific values in the column. Post Reply Post New Topic
Author Message
mh9876
Newbie
Newbie


Joined: 24 Dec 2017
Location: United States
Online Status: Offline
Posts: 6
Quote mh9876 Replybullet Topic: Format specific values in the column.
    Posted: 09 Feb 2018 at 9:55am
I'm trying to format specific values in the same column of crystal report.
The column should show all the other numbers as decimals, except for 100. 100 should be shown as a whole number.

This is what I did.
In format field, Number tab, customize, For Decimal I entered following formula;
If {@Numeric2} = 100 Then 1 Else 1.0

The problem is that it is not rounding 100 as a whole, instead, showing 100 as a decimal as well like 100.0
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 12 Feb 2018 at 2:43am
right click on the field
select format field
select number tab
select customize button
select the formula (x+2) for Decimals
use
if currentfieldvalue = 100 then 0 else 1
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.008 seconds.