Categories
- All Categories
- Oracle Analytics Learning Hub
- 30 Oracle Analytics Sharing Center
- 19 Oracle Analytics Lounge
- 238 Oracle Analytics News
- 45 Oracle Analytics Videos
- 16K Oracle Analytics Forums
- 6.2K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 88 Oracle Analytics Trainings
- 15 Oracle Analytics & AI 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