Creating Hierarchy Year-Month-Week-Dayof Week.

Hi,
We have a requirement to create new HR report - Labour Efficiency.
We require 'Date of work' in BI report.
It takes value from CATSDB table, WORKDATE field in R/3. Its Data Type- DATS , Integer length 16, output length 10.
But in BI report they want hierarchy Year-Month-Week-Dayof Week  for this 'Date of work' field.
How this can be achieved?
Edited by: Amruta_Kedar on Sep 6, 2011 8:18 AM

Hi Dilek,
I have checked out the link and procedure given.
I have never used this option neither any of the time hierachie is active in our system. Could you please elaborate how we used these hierarchies in BEx?
I am confused which hierachy is to be selcted here. I didnt find any hierarchy Year-Month-Week-Dayof Week.
Also, where do we activete these hierarchies (R/3 or BI side) ?
Another question : 'Date of work' infoobject should be a characteristic of type DATS or a key figure of type DATE??
which option will be better to do this kind of analyis on date?

Similar Messages

  • How to relate current day to date hierarchy [year - month - day] for SSRS report paramenter

    Hi there: 
      I've created a SSRS report based on OLAP cube. In this report, there is a date parameter which is used to filter out data. 
    Now , I want this report to be run and always retrieve data from previous day. I need to supply the date parameter with something
    like SQL syntax: DATEADD(dd,-1,GETDATE())  . The question is how can I do that in the MDX world? 
     thanks
     Hui
    --Currently using Reporting Service 2000; Visual Studio .NET 2003; Visual Source Safe SSIS 2008 SSAS 2008, SVN --

    Hi Hui,
    According to your description, you need to retrieve data from previous day, so you are looking for an expression in MDX which can achieve the requirement like SQL syntax: DATEADD(dd,-1,GETDATE()), right?
    As per my understanding, it easy to achieve this requirement in report level ranther than in MDX query level. You can create another hidden parameter "Date2" using the expression below.
    =DateAdd("d",-1,Parameters!Date.Value)
    Then use Date2 parameter to filter in the query.
    If don't want to create another parameter, you can use it like below.
    Year     =DatePart("yyyy",DateAdd("d",-1,Parameters!Date.Value))
    Quarter  =DatePart("qq",DateAdd("d",-1,Parameters!Date.Value))
    Month    =DatePart("mm",DateAdd("d",-1,Parameters!Date.Value))
    Week     =DatePart("ww",DateAdd("d",-1,Parameters!Date.Value))
    Besides, DateAdd function is supported in MDX, please refer to the link below.
    http://msdn.microsoft.com/en-us/library/hh510163.aspx
    If I have anything miunderstand, please point it out.
    Regards,
    Charlie Liao
    If you have any feedback on our support, please click
    here.
    Charlie Liao
    TechNet Community Support

  • Cal.Year/ Month - Applet - MM.YYYY and  HTML- MMM.YYYY

    Hi All.
    I have created Webi Report on top of Bex Query. 
    While running the webi report Cal.Year/ Month Prompts list of vales showing format as MM.YYYY (01.2014) in Applet version.
    and running the same report with HTML version, Cal.Year/ Month Prompts list of vales showing different format as MMM.YYYY (Jan.2014).
    I have checked at bex Q level Cal.Year/ Month variable have List of values MM.YYYY (01.2014) format.
    Cal.Year/ Month - @
    Bex Q : MM YYYY
    Applet - MM.YYYY  
    HTML- MMM.YYYY
    Need to understand same report Cal.Year/ Month Prompts list of vales showing  different format (Applet - MM.YYYY. HTML- MMM.YYYY).
    is there any way to fix the issue display same format in the both version.

    Hi Sateesh,
    Thanks for reply.
    Are you using Unv /BICS ?  BICS
    Did you checked both applet and HTML version with the same user ? Yes, Same user
    HTML and Applet version report pointed to same BO and BW system ? Yes, Both BO and BW systems are same. (development systems)
    In BEx , variable values shows both text and key and when value selected it only show key in the entry field box .- Yes, bex variable and characteristic defined display as KEY.
    I have created Cal.Year/ Month Prompts at webi level….while refresh the report. Cal.Year/ Month Prompts  list of vales showing  different format (Applet -MM.YYYY (01.2014). HTML- MMM.YYYY (Jan.2014)).

  • Year-month-week selection screen format?

    Hi experts,
    I will create sd report but I need selection screen that includes year-month-week,
    example;
    Year   :   2012
    Month :  March    ( Listbox for all months )
    Week :  1.week   
    I wıll execute report like that.
    This report program is going to be comparison of weeks in specific years.
    How can I achieve this selection screen ?
    any help will be appreciate
    best regards

    Hello Kutay,
    This is an example of listbox.
    PARAMETERS:  listbox(1) AS LISTBOX VISIBLE LENGTH 10 DEFAULT 'N'.
    AT SELECTION-SCREEN OUTPUT.
    DATA:
    name TYPE vrm_id,
    list TYPE vrm_values,
    value TYPE vrm_value.
    name = 'LISTBOX'. " Name should be in UPPER CASE
    value-key = '1'.
    value-text = 'January'.
    APPEND value TO list.
    value-key = '2'.
    value-text = 'February'.
    APPEND value TO list.
    CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING
    id = name
    values = list
    EXCEPTIONS
    id_illegal_name = 0
    OTHERS = 0.
    Idem for week field.
    I hope you help.

  • InfoObject that stores "Yearly/Monthly/Weekly/Daily"

    Hi,
    I'm looking for a standard object that stores values Yearly/Monthly/Weekly/Daily etc.
    It could also be Year / Month / Week etc...
    Do you know of such an Standard Content InfoObject?
    Thanks in Advance
    Rudolph

    Calendar Year                    0CALYEAR
    Calendar Year/Month          0CALMONTH
    Calendar Year/Week           0CALWEEK 
    Calendar day                      0CALDAY
    Calendar month                  0CALMONTH2
    Calendar year/quarter          0CALQUARTER
    Fiscal year                         0FISCYEAR
    Fiscal year / period             0FISCPER 
    Fiscal year variant               0FISCVARNT
    Halfyear                              0HALFYEAR1 
    Posting period                    0FISCPER3
    Quarter                             0CALQUART1
    Weekday                          0WEEKDAY1
    Hope this helps......

  • Find date if year, month, week and day is given

    Hi,
    How to find the date, if year, month, week and day is given?
    For example:
    Given, year - 2010, month - 03, Day - Wednesday, Week - 3,
    Then how can we get the date as 17-Mar-2010.
    Thanks,
    Chris

    with dt_tbl as (
                    select  2010 year,
                            3 month,
                            3 week,
                            'Wednesday' day
                      from  dual
    select  trunc(to_date(year || '-' || month || '-01','yyyy-mm-dd'),'iw') + (week - 1) * 7 +
              case day
                when 'Monday' then 0
                when 'Tuesday' then 1
                when 'Wednesday' then 2
                when 'Thursady' then 3
                when 'Friday' then 4
                when 'Saturday' then 5
                when 'Sunday' then 6
              end dt
      from  dt_tbl
    DT
    17-MAR-10
    SQL> SY.

  • Want to create Monthly chart with weekly data.

    Hi all.  I'd like to create a chart that graphs data over the course of a month similar to this:
    but where the data for the chart is only gathered once a week.  I know from reading in the forums (and trying myself) that if you have missing data fields in your table, you end up with individual points that aren't connected to each other.  So I assume that the solution has something to do with how the chart is labeled?
    Can someone clue me in on how to build a chart that shows each day (as above), but connects weekly data fields (as below):
    Thanks.
    Andy

    Hi Barry.
    It looks like what you're describing is what I've already managed to figure out.  The problem I'm having is that I want the bottom row of numbers (currently 3, 10, 17, 24) to be the days of an entire month (ie: March 1-31).  Then have the values in the chart correspond to the proper day (3, 10, 17, 24).
    Here's what happens if I create a table with all the days of the month, but only weekly fields filled in:
    I realize that Numbers doesn't automatically connect the dots when there are empty fields in a table.  But I can't seem to get to a point where I can have the graph show the entire month, but with a line connecting each of the weekly values.
    I thought that I could do it by creating a custom label for the X axis.  Here's what I tried:
    But of course that didn't work, because the chart still only shows 4 labels (due to the table only having 4 categories).  It just renamed the first four labels.

  • How can I create a Filter for a four week period?

    Post Author: Sarahg
    CA Forum: Formula
    I am trying to create a filter so that on a sales report I can have a Year to Date figure and then the last 4 weeks shown. So far I have tried to creat a filter that shows current week number - 4 but this does not show the correct weeks.
    Any Ideas?

    Post Author: jsanzone
    CA Forum: Formula
    sarahg,
    You don't mention if there is a Universe involved or not, but if there were then you could create some objects that calculate measures based on a timeframe.  For instance, if you have a date field (date_fld) and a measure (x) in your database then you could create a measure such as:
    case when <date_fld> between getdate()-28 and getdate() then sum(x) else 0 end
    (the SQL code I'm using is in MS SQL server, so you may need to adapt if you're using a different DBMS).
    The key to dealing with the date field is in substracing 28 (i.e. 28 days), so any time that this report would run and include the above coding it would be a 28-day lookback.

  • How to determine the month from the week number?

    Hi all,
    in a routine i have the week number in a year and i need to find the month but i don't know the correct FM to use for this.
    Is there anyone that had to face a similar problem?
    I'm considering that to determine the month it will be used the first day of the week since there are weeks belonging to 2 different months...
    Thank you
    Stefano

    Hi
    If you have a Fiscal Year Variant determined for the week you can use function module PERIOD_DAY_DETERMINE by passing week,fiscal year and fiscal year variant for the week which will return fist and last date.So based on last data you can determine the month.
    Regards
    Srilaxmi

  • Help needed - OBIEE - Level Based Hierarchy - Expanding Month for one year affects all previous years

    I am creating a level based hierarchy for the Date Dimension
    year --> quarter --> month --> date (one path)
    year .--> month --> date (the second path).
    I create the pivot table using these dim hierarchies. But the problem is,
    when I click on, say "Month" under year 2012, it expands everything above 2012 (such as 2010, 2011 etc).
    I don't want to expand all the years, but only the one I clicked. Anyone knows what is the solution for that.
    I am sorry that I cannot attach any screen shots to explain better.
    I would really appreciate your help on this.
    Thanks
    JD

    I am using OBIEE 11.1.1.7.0.
    ok, I tried one hierarchy per dim table but didn't work too. When I created a logical column as Month + Year (e.g Jan 2014) and added to the hierarchy, its working fine. But that creates other issues on the
    client side.
    I guess, since the month is common to all the years its expanding when clicked. I also added month and year as "chronological key", but that didn't work either.
    Please advice any solution if you know it.

  • Firefox will not access the internet. I have used Firefox for years and the past week I have not been able to get on the internet??? What is the problem. My interent works as I get email and can iuse Internet Explorer to access.

    Firefox will not access the internet. I have used Firefox for years and the past week I have not been able to get on the internet??? What is the problem. My interent works as I get email and can iuse Internet Explorer to access

    Which version of Firefox are you using?
    See
    * https://support.mozilla.com/en-US/kb/Firefox%20cannot%20load%20websites%20but%20other%20programs%20can

  • How to create offset for calendar year/month in BEx Reporting

    HI ALL,
        i have a requirement of creating offset for calendar year/month.Basically i have a characteristic in Rows and volume key figure in Column and i have to put that volume under the calender year /month which is shown below ..
                             Previous Volume           Present Volume
                                     01.2010                             01.2011
    material                    10000                               20000
    how can i create a report for this . by using volume key figure i am creating previous volume and present volume,. how can i put them in key figure do i have to create any structure, selections  for that.... and "" how can i get the present year volume and previous year volume. If i use cal year/month how can i create offset for that.....
    please do let me know in brief...
    Thank you.

    Hi ,
    I think you need data year wise .
    Instead of creating a variable for calmonth and using it in the RKF , you can just drag calyear in columns and keep the Volume keyfigure below it . Keep only one keyfigure Volume and do not restrict it with calmonth or any other variable .
    In this case calyear should not be present in rows or free characteristics .
    You would be able to see the data year wise ..
    Try this and check whether it is according to your requirement
    If You need to show the data as Volume (01.2011)  and Volume(01.2010)
    It means you are only showing data for Jan 2011 and Jan 2010 in the report
    In this case you can retrict Volume keyfigure with a variable and create a customer exit variable
    for 0calmonth as an offset of -1 will bring the data of 12.2010 for Previous Volume(01.2010) key figure which is incorrect .
    For your output you can create 2 customer exit variables :
    One will restrict 0calmonth to current year and another to previous year .
    Check whether this works .
    Also , if you want to show current calendar months data , you can either use a mandatory variable on 0calmonth
    and restrict the same in volume keyfigure or there are std customer exit variable provided by SAP to give current cal month .
    You can restrict the char 0calmonth with this std exit variable if you do not want 0calmonth variable to be mandatory.

  • I have created a form which needs to be completed once a week for 6 weeks. On completing week 1, weeks 2 - 6 are completed at the same time with week 1 information. please help?

    I have created a form which needs to be completed once a week for 6 weeks. On completing week 1, weeks 2 - 6 are completed at the same time with week 1 information. please help?

    Hello, thanks for replying.
    Yes they just copy to the next page, the fields are the same. The document is an observation to school lessons so it needs to be consistent but with different data on.

  • I didn't used my iPad 2 for many months. Last week when I tried to use it, it wasn't charged. Then I put it on charging and again didn't used it for a week. Yesterday, When I tried to use it again it's saying that it is disabled for 22 million mins. HELP!

    I didn't used my iPad 2 for many months. Last week when I tried to use it, it wasn't charged. Then I put it on charging and again didn't used it for a week. Yesterday, When I tried to use it again it's saying that it is disabled for 22 million mins. I treid to restore it by connecting to iTunes but it's not restoring. Kindly Help.

    Thanks for that. Much more constructive than the last comment. It's only the restriction code I can't recall, not the access passcode. So I can currently access the device, just not age restricted content. Does that's make a difference? I also wondered if anyone knew how many attempts you get to try to get it right. Now tried 21 times and so far nothing bad has happened but I am concerned I'll eventually be completely locked out of the device. That doesn't seem in the spirit of things though. Surely it's foreseeable that a child could repeatedly try to guess the code so I can't see that it would be right to lock the device down completely in that circumstance, particularly if the access code is being typed in correctly every time.
    Thanks

  • I wish to set a repeat for an event but I do not get a customise option on my iphone 4s so cannot set the third monday of the month - only day, weekly 2 weekly monthly or annually - how do I resolve the problem ?

    I wish to set a repeat for an event but I do not get a customise option on my iphone 4s so cannot set the third monday of the month - only day, weekly 2 weekly monthly or annually - how do I resolve the problem ?

    Week Cal uses the calender database already on your phone. It's just a different front end.

Maybe you are looking for

  • Need to convert the Varchar2 to decimal

    Hi, I need to convert source sybase varchar2 record in to decimal record in Target DB2 table by using the function in Oracle data integrator. In my source table, column is defined as varchar2 (4) and in target table same column has defined as Decimal

  • How to tell if you have correct USB 2.0 driver?

    Hi, I seem to be having a problem with my front panel usb wich are plug in JUSB3.  When i connect a external case in these front panel i get message that a have a high speed device plug in a low speed hub.  My D-bracket is install in JUSB2.  If i plu

  • Incorrect Grade Scales and Scale Rates

    Hi Gurus Could you please give me your input on the following issue: My client is a South African government department and are using Pay Scales, Scale Rate (Point values), and Grade Rates (Grade Steps and Points) for Pay progression etc. They went l

  • What data binding framework to use for EJB(JPA) - Swing desktop application

    Hi! I am developing EJB server application which mostly uses the same entities and session EJB's both for web and for desktop user interface. While JSF is working nicely, I am stuck with necessity to make decision with data binding framework to use f

  • If u want 25 dukes enter here, & if u know normalisation!!!

    Hello all u programming gurus. I have a problem but unfortunately it is not directly involved with java. I have a short scenario and a relation in 0NF and need it normalised into 1st, then 2nd, then 3rd and finally Boyce Codd Normal Form(see below).