Categories
- All Categories
- 75 Oracle Analytics News
- 7 Oracle Analytics Videos
- 14K Oracle Analytics Forums
- 5.2K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 40 Oracle Analytics Trainings
- 59 Oracle Analytics Data Visualizations
- 2 Oracle Analytics Data Visualizations Challenge
- 3 Oracle Analytics Career
- 4 Oracle Analytics Industry
- Find Partners
- For Partners
Year and Month Number format
Hi team,
We have date format column (6/21/2018 7:01:00 AM) we need extract year and month number ( 2018 06) from the date field in obiee RPD level can someone assist.
OBI Version using: Oracle Business Intelligence 12.2.1.4.0
Regards,
Answers
-
If you look at the available functions in OBIEE there is a whole set about dates, including extracting components from a date. Just look in the UI and you will see the list of functions available.
0 -
Thanks for the reply.
We used below year and month functions but format we are getting is 20186, we are looking for 201806 can you suggest on this.
CAST(YEAR("table.Date") AS CHAR)||CAST(MONTH("table.Date") AS CHAR)
is there any other function which we can achieve in 201806 format
0 -
It's simple logic, if you don't store the right format in your database, you just have to build it by yourself.
So with some basic logic you could multiply YEAR(date) by 100 and you sum it with MONTH(date) and you can finally turn the resulting number into a char if that's the format you are after.
0 -
Try using column data formats or else use string functions as Mr. Gianni suggested.
0