Categories
- All Categories
- 15 Oracle Analytics Sharing Center
- 17 Oracle Analytics Lounge
- 218 Oracle Analytics News
- 44 Oracle Analytics Videos
- 15.7K Oracle Analytics Forums
- 6.1K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 81 Oracle Analytics Trainings
- 15 Oracle Analytics Data Visualizations Challenge
- Find Partners
- For Partners
Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture
Formatting Column

User_ZZQJ0
Rank 4 - Community Specialist
OBIEE 12c
I have a column with the following formula:
case "Facts"."Salary Amount"
WHEN 0 THEN 'N/A'
ELSE cast("Facts"."Salary Amount" as CHAR) END
When the "Facts"."Salary Amount" does appear in the column I would like to remove the 2 decimal places. I no longer see that option in column properties > Data Format since I am casting it to CHAR to accomodate for the case 'NA'
What I am getting now > $102000.00
Desired format example > $102000
0
Answers
-
Using SUBSTRING ?
0 -
You can use ROUND(expr, integer) function like shown below
CAST(ROUND("Facts"."Salary Amount", 0) AS CHAR)
0 -
Thanks Sudipta. This solution worked for me.
0