Categories
- All Categories
- Oracle Analytics and AI Learning Hub
- 44 Oracle Analytics and AI Sharing Center
- 20 Oracle Analytics and AI Lounge
- 278 Oracle Analytics and AI News
- 56 Oracle Analytics and AI Videos
- 16.2K Oracle Analytics and AI Forums
- 6.4K Oracle Analytics and AI Labs
- Oracle Analytics and AI User Groups
- 103 Oracle Analytics and AI Trainings
- 20 Oracle Analytics and AI Challenge
- Find Partners
- For Partners
How to apply Sum on dollar values
How to apply Sum on dollar values
i have data as
c1 c2
jan $10
feb $20
Both c1 and c2 are varchar datatypes, how can apply sum on c2 which is varchar
since c2 is have $ sysmbol, im not able to cast this to integer
Anyone help
Answers
-
using Evalauate function, i have removed $ sysmbol. But i have having commas ',' in data ,so that unable to sum valaue. When tried to cast to integer got error.
Can someone help
0 -
Why EVALUATE? OBI Gives you a whole catalog of predefind functions which can easily do exactly what you're looking for:
cast(REPLACE('$1000', '$', '') as DOUBLE)
Or in your case:
cast(REPLACE("MyPresentationTable"."MyPresentationColumnWhereIWantThe$SignGone", '$', '') as DOUBLE)
0 -
Manu, did you let this drop or what's the status of your problem?
0 -
worked thanks
0 -
Good to hear. So can you please close this thread by marking the appropriate answers as "Correct" or "Helpful"? This will flag the thread as "Closed" and making it visible to other users that it contains a valid answer to the problem which helps when searching for a resolution in this forum.
0