Categories
- All Categories
- 15 Oracle Analytics Sharing Center
- 15 Oracle Analytics Lounge
- 208 Oracle Analytics News
- 41 Oracle Analytics Videos
- 15.7K Oracle Analytics Forums
- 6.1K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 76 Oracle Analytics Trainings
- 14 Oracle Analytics Data Visualizations Challenge
- Find Partners
- For Partners
Formatting Column

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
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