GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Data Warehousing  >  Business Objects
Go To First  |  Previous Question  |  Next Question 
 Business Objects  |  Question 24 of 253    Print  
How to break a Date field into Year, month, week,day?(For example: I have a field INVOICE_DATE. Now i want to break it as Year, month..... i.e. in time dimension.) DO i need to have some changes in Universe?

  
Total Answers and Comments: 5 Last Update: March 04, 2009     Asked by: sameerbhave 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: prashantpurohit2000
 
No need to change the universe, create some report level variables like:
Year =Year([Date]), Month =Month([Date]), DayNumber([Date]) etc, but if you want to only show them differently just change the dateformat of the cell.

Above answer was rated as good by the following members:
abhipali
April 19, 2006 05:00:21   #1  
sithu Member Since: March 2006   Contribution: 46    

RE: How to break a Date field into Year, month, week,d...

using date functions seprate the date day week year qutr decade holiday and more then you can get your answers

Cheers

Sithu sithusithu@hotmail.com


 
Is this answer useful? Yes | No
April 24, 2006 05:35:16   #2  
pat.mclean Member Since: April 2006   Contribution: 52    

RE: How to break a Date field into Year, month, week,d...

Create objects in your universe with date functions.

Let's say your DB is Oracle. In your Select statement of new object called year try

to_char(INVOICE_DATE 'YYYY') similarly for month create object called month & repeat process simply replace'YYYY' with 'MM' of 'MMM' in the select statement. & so on.


Cheers

Pat.


 
Is this answer useful? Yes | No
September 26, 2006 10:35:21   #3  
Lanka Madhav        

RE: How to break a Date field into Year, month, week,d...

Hi

There is another way if you need only year Qtr and Month.

Right click the Date Object go to Properties tab There is a button Automatic Time Hierarchy. Click that and automatically you will get 3 objects below the object selected.

Note: i am not sure of higher versions since i am still working on 5.1.6

Thanks

Lanka


 
Is this answer useful? Yes | No
July 01, 2008 09:25:54   #4  
sreenivas27 Member Since: November 2007   Contribution: 15    

RE: How to break a Date field into Year, month, week,day?(For example: I have a field INVOICE_DATE. Now i want to break it as Year, month..... i.e. in time dimension.) DO i need to have some changes in Universe?
Hi

Just you have create Variables like year month week and day base your objects so that you can use these variable and you can do what your.


Regards

Sreenivas.

 
Is this answer useful? Yes | No
March 04, 2009 01:39:39   #5  
prashantpurohit2000 Member Since: November 2007   Contribution: 26    

RE: How to break a Date field into Year, month, week,day?(For example: I have a field INVOICE_DATE. Now i want to break it as Year, month..... i.e. in time dimension.) DO i need to have some changes in Universe?
No need to change the universe create some report level variables like:
Year Year([Date]) Month Month([Date]) DayNumber([Date]) etc but if you want to only show them differently just change the dateformat of the cell.

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape