How to get the day of 52 weeks ago data

hi all:
i recently encounter the difficulty that using the current data to get the 52 weeks ago data in essbase.the fct table is like this:
current_dt the_day_of_week sales
20110203 5dw05 100
20100207 5dw05 30
note: "5dw05" means the fifth day of five week in the selected year
the question is which essbase formula to choise or how to use them in essbase outline structure can meet the bussines role that when the biz men chlic on the member "20110203" of time dimension, the extension mesure "bf_sales" value is 30.
the outline i am about to design under the bellow:
dim_time
201002
20110201(alias 4dw05)
20110202(alias 5dw05)
20110203(alias 6dw05)
201102
20110206(alias 4dw05)
20110207(alias 5dw05)
dim_measure
sales
bf_sales(will use the essbase formula,but do not know which function to choise or how to use it)
i am lovely hope one of you may give me suggestion on this issue. thanks a lot for all of you!

If you put the Apple calendar app on the first screen, it shows the day and date (no month/year). E.g Sunday 20.

Similar Messages

  • How to find the Day on a Week for any given Date

    Hi..... I need your help to find out the Day on a Week for any given Date .
    Say if the Date is 31/12/2009 , what would be the Day on a Week for this Date.
    Are there any fucntions available to determine the same?
    Please let me know....Thanks in Advance
    Regards
    Smita

    Hi ,
    You can using the following peice of code to get the Day of a Week for the given date :
    Calendar now = Calendar.getInstance();   
    System.out.println("Current date : " + (now.get(Calendar.MONTH) + 1)  
         + "-" + now.get(Calendar.DATE) + "-" + now.get(Calendar.YEAR));
    //create an array of days  
    //Day_OF_WEEK starts from 1 while array index starts from 0        
    String[] strDays = new String[]{"Sunday",  "Monday", "Tuesday", "Wednesday",  "Thusday",   "Friday",  "Saturday" };   
    String day_of_week = strDays[now.get(Calendar.DAY_OF_WEEK) - 1];     
    System.out.println("Current day is : " + strDays[now.get(Calendar.DAY_OF_WEEK) - 1]  );
    Edited by: Ritushree Saha on Jun 4, 2009 1:09 PM

  • How to get the most current file based on date and time stamp using SSIS?

    Hello,
    Let us assume that files get copied in a specific directory. We need to pick up a file and load data. Can you guys let me know how to get the most current file based on date and time stamp using SSIS?
    Thanks
    thx regards dinesh vv

    hi simon
    i excuted this script it is giving error..
       Microsoft SQL Server Integration Services Script Task
       Write scripts using Microsoft Visual C# 2008.
       The ScriptMain is the entry point class of the script.
    using System;
    using System.Data;
    using Microsoft.SqlServer.Dts.Runtime;
    using System.Windows.Forms;
    namespace ST_9a6d985a04b249c2addd766b58fee890.csproj
        [System.AddIn.AddIn("ScriptMain", Version = "1.0", Publisher = "", Description = "")]
        public partial class ScriptMain : Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase
            #region VSTA generated code
            enum ScriptResults
                Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success,
                Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure
            #endregion
            The execution engine calls this method when the task executes.
            To access the object model, use the Dts property. Connections, variables, events,
            and logging features are available as members of the Dts property as shown in the following examples.
            To reference a variable, call Dts.Variables["MyCaseSensitiveVariableName"].Value;
            To post a log entry, call Dts.Log("This is my log text", 999, null);
            To fire an event, call Dts.Events.FireInformation(99, "test", "hit the help message", "", 0, true);
            To use the connections collection use something like the following:
            ConnectionManager cm = Dts.Connections.Add("OLEDB");
            cm.ConnectionString = "Data Source=localhost;Initial Catalog=AdventureWorks;Provider=SQLNCLI10;Integrated Security=SSPI;Auto Translate=False;";
            Before returning from this method, set the value of Dts.TaskResult to indicate success or failure.
            To open Help, press F1.
            public void Main()
                string file = Dts.Variables["User::FolderName"].Value.ToString();
                string[] files = System.IO.Directory.GetFiles(Dts.Variables["User::FolderName"].Value.ToString());
                System.IO.FileInfo finf;
                DateTime currentDate = new DateTime();
                string lastFile = string.Empty;
                foreach (string f in files)
                    finf = new System.IO.FileInfo(f);
                    if (finf.CreationTime >= currentDate)
                        currentDate = finf.CreationTime;
                        lastFile = f;
                Dts.Variables["User::LastFile"].Value = lastFile;
                Dts.TaskResult = (int)ScriptResults.Success;
    thx regards dinesh vv

  • How to get the day as numeric value without formatting the date?

    Hello,
    to reduce the costs of a sql-statement I need to get the day of a date-value as number (to compare it to a numeric value) without any formatting. Every formatting results in a full table scan of the table with the date field. Is there any function to solve this problem?
    Oracle version is 11g.
    Thanks Carsten

    CarstenDD wrote:
    select T1.SYSID from T2,T1
    where T2.SysT1 = T1.SYSID
    and T2.Date1 < '01.03.2011' --German date format
    and to_number(to_char(T2.Date2,'DD')) = 1
    and T2.Inactive = 0
    The explain plan shows a full table scan on T2. With EXTRACT(DAY FROM T2.Date2) there is no difference.It probably would and should in any case.
    Look at your predicates, which of them would reduce the resultset to a fair size compared to the total number of records in the table?.
    - You may have a huge number of records when you say date less than
    - Of these perhaps one seventh have day = 1
    - My guess is that most have Inactive = 0
    Besides, you should not rely on implictit char to date conversion, always use TO_DATE
    How many records are in the table? - How many will that query return?
    Regards
    Peter

  • How to get the day value from the current time?

    Hi,
    I like to write a program that prints out the current time in the formate as "Thu May 3 07:57:02 PDT 2002". Then I want to get the day, time, year and month value out and do some manipulation.
    I know to format the current time, I can use
    SimpleDateFormat formatter
    = new SimpleDateFormat ("EEE MM.dd hh:mm:ss z yyyy");
    Date currentTime_1 = new Date();
    Now how do I get the day, time, year and month value? All the getday(), gettime()..,method have been deprecated. Can anyone provide the answer?
    Thanks.

    Try using Calendar.get(int) and take a look at the constants used to specify the field you are trying to access.

  • How to get the right format if I copy data off another source....

    IWorks '08
    I have a data source that I want to copy to Numbers and it posts it all in the first row, when I paste it. (Excel will automatically format it correctly). I've tried a number of different things and can't figure out how to get the data to post across the page. Can Numbers even do this?

    Welcome to Apple Discussions
    Could you possibly have the insertion cursor blinking in the cell rather than just having a cell selected?
    If the cursor is blinking in the cell, Numbers "thinks" you want to paste all of the content in that one cell. By just selecting the cell, the data will be separated if Numbers "sees" the separations. This used to be a problem, particularly with data copied from a web page in Safari, but is mostly fixed in Numbers '09.

  • How to get first day of calendar week ?

    hi,
    i'm storing some calendar weeks in my database. for example 30/2013.
    How can i get the first day of this week (monday)? in this case it is 22.07.2013
    thx
    Anja

    As far as I know we don't have a function that converts week of a year into date. So you can try something like this.
    SQL> with t
      2  as
      3  (
      4  select '30/2013' week_year
      5    from dual
      6  )
      7  select min(dt) week_start_day
      8    from (
      9           select (level - 1) + to_date('01-01-' || substr(week_year, -4), 'dd-mm-yyyy') dt
    10                ,  week_year
    11             from t
    12          connect
    13               by level <=  to_date('31-12-' || substr(week_year, -4), 'dd-mm-yyyy') -
    14                            to_date('01-01-' || substr(week_year, -4), 'dd-mm-yyyy') +1
    15         )
    16   where to_number(to_char(dt, 'iw')) = to_number(substr(week_year, 1, instr(week_year, '/')-1));
    WEEK_STAR
    22-JUL-13

  • How to get the Day of the Month and Date on Home Screen

    The home screen has the signal strength on the upper left, the time in the middle and the battery status on the right. What is missing from my old phone (really, really old phone) is the day - like Sunday, and the date - like the 20th. I have to go to a calendar program to get what should be available at a glance, just like the time.
    Can this be done?
    aehaas

    If you put the Apple calendar app on the first screen, it shows the day and date (no month/year). E.g Sunday 20.

  • How to get the opening balances for lessthan selected date in cubes.

    Hi All,
    my task is to get the opening balances for the selected date.
    Ex: If I select date say 31-1-2013, I should get the sum of values which are less than the selected date.
    in sql:
    select sum(balance) from banktrans where banktrans.transdate < 31-1-2013;
    BankTable                            BankTrans
    BankId                               BankId
                                            balance
                                            transdate
    BankTable (records):
    SCB
    BankTrans(records):
    a) SCB, 15000, 10-02-2013
    b) SCB, 20000, 31-01-2014
    c) SCB, 50000, 21-09-2012
    If I select date as 31-01-2014, I should get the value as 65000 
    If I select date as 10-02-2013, I should get the value as 50000
    Date will be dynamic selection from years months days hirearchy ( time dimension)
    How can i achieve this?  
    any help is much appreciated.
    Thanks,
    Rakesh

    Dear David,
    I've tried the below with static date but i'm not getting the values which are sum of less than the given date.
    I've given 1st jan 2013 as static date and I need to get the sum of values which are less than the 1st jan date.
    CREATE
    MEMBER
    CURRENTCUBE.[Measures].[OPENBALANCE]
    AS
    Sum({Null:[Time].[Years
    Quarters Months Weeks Days].[Days].&[2013-01-01T00:00:00]},[Measures].[AmountCur]]),
    FORMAT_STRING
    = "Standard",
    VISIBLE
    = 1
    can you plz check the above once and guide me.
    Thankyou,
    Rakesh

  • How to get the duplicate rows in dynamically generate data table [list items collection] and send emails in sharepoint2010

    Hi,
    i have share point list like  below
    ID   name AdminEmail Useremail   URl   DueDate   UploadSatus
    1    ppp     [email protected]  [email protected]    url  some date    uploaded
    2    yyy       [email protected]   [email protected]   url somedate    empty
    3  xxx         [email protected]   [email protected]    url   somedate   empty
    4  jjj           [email protected]    [email protected]  url     somedate   emp
    AdminEmail and UserEmail  are lookup column
    i using query the list using caml query
    inside of foreach i am checking  two condition like below
    one is upload status in not empty
    i need to send to mail to admin user  this part i have done my adding all list items which have datatable apply group by working fine
    in send condition i am checking difference between DueDate And current date value
    if the value is =1 or -1
    if the value is i
    thank
    i am getting the
    table like below
    ID   name AdminEmail Useremail   URl   DueDate   Upload
    2    yyy       [email protected]   [email protected]   url   somedate    empty
    3  xxx         [email protected]   [email protected]    url   somedate   empty
    4  jjj           [email protected]    [email protected]  url     somedate   empty
    my issue is here  how can i get the dynamic table rows which are same values of AdminEmail and user email  one set and distintict rows are another set
     sets which are same emails are same
    3  xxx         [email protected]   [email protected]    url   somedate   empty
    4  jjj           [email protected]    [email protected]  url     somedate   empty
    set 2
    2    yyy       [email protected]   [email protected]   url   somedate    empty
     how can i get this separate this can any one tell i need to send mail only one time to user [adim and user] .planing to aviod duplicate mail
    Srinivas

    your case better to use the two data tables to store the data
    DataTable dt = list.Items.GetDataTable();
    foreach (DataRow row in dt.Rows)

  • How to get the purchase order's delivery completed date in the dictionary

    Hi consutant :
    In me23n transaction code ,I set the delivery completed indicator mannul . I can see the state of
    delivery completeed by click environment->item changes menu . But I don't find the date that I  set
    the state of delivery completed  in the abap dictionary .
    How to find that table store the date of delivery completed about purchase order ?
    thanks .

    hi
    you will get delivery date from
    eket table .
    and field name is eindt.
    how to go there. ?
    ans===>
    SELECT ebeln  ebelp  eindt          " For Delivery Date EKET
         FROM eket
         INTO TABLE it_eket
         FOR ALL ENTRIES IN it_ekpo
         WHERE    ebeln = it_ekpo-ebeln
          AND     ebelp = it_ekpo-ebelp.
    reward point if its usefull.

  • How to get the insert scripts from a table data

    hi all,
    i want insert scripts for 100 records from a table.
    suppose i have a table xyz
    xyz:
    id name
    1 abc
    2 def
    i should get insert script for 100 rows like
    insert into xyz(id,name) values (1,'abc');
    insert into xyz(id,name) values (2,'def');
    i want 100 records data from all the tables from my database.
    thanks in advance to all.

    SQL> create table xyz (id number, name varchar2(10));
    Table created.
    SQL> insert into xyz values(1,'abc');
    1 row created.
    SQL> insert into xyz values(2,'def');
    1 row created.
    SQL> select 'insert into xyz values(id,name) values('||id||','''||name||''');' from xyz;
    'INSERTINTOXYZVALUES(ID,NAM
    insert into xyz values(id,name) values(1,'abc');
    insert into xyz values(id,name) values(2,'def');
    SQL>- - - - - - - - - - - - - - - - - - - - -
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com
    [Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/]

  • How to get the row count of a Table DATA?

    Hi,
      In my Adobe form layout, I have a Table node which is bound to an internal table. Now at runtime, I want to determine the number of rows that the internal table has, i.e the row count of the DATA node of the Table. How will I be able to determine the no. of rows of the internal table at runtime using Javascript? I am not being able to find any suitable answer in this forum. Please suggest. Thanks in advance.

    Hi,
    If you bind the interactive form table to the internal table and specify some properties, the table will vary its row size according to the number of data available in the internal table.
    You have to wrap the table in a sub form,  check 'allow page break with contents' and property 'flowed'.
    the table will automatically increase its row size...
    Is this the reason for which you wanted for the row count..?
    If so, this will help you..
    Regards.
    Surya

  • How to get the BW 7.0 Business content data sources

    Hi,
    We have got following sever components
    SAP EHP 1 for SAP NetWeaver 7.0
    SAP_BW - 701 - SAPKW70106
    BI_CONT 705
    When we try to install the business content in T.Code: RSOR, we are getting 3.x data sources even though latest servers are in place.
    Do we need to any settings in order to get 7.0 data sources and its flow(transformation and DTPs).
    Please let me know.
    Thanks,
    Bala

    SAP will not touch any of existing 3.x BW Content and change everything to 7.X content in the new BW Content version.
    Most of the BW Content that was created earlier will still be in 3.x version only. You will see a small .(dot) before that object showing that it is in 3.x version.
    SAP Provides only mechanism to migrate them into 7.X concepts as shown in below link
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/43/f00e2696d24c5fe10000000a155369/frameset.htm
    You can still use 3.x objects with out any problem.
    In most implementations, the approach they use is, as long as you do not need to enhance or add any standard content, you can retain it the way it is. The enhancements include, adding a field, changing the structure of source or target, or you want to use better functionality in 7.x objects, then you can always migrate them as discussed in the above link
    When you convert them, if you select "With exports" you can go back to older version later. If you select "Without exports" then the object is permanently transformed.
    I you have to touch a standard object for any enhancement or reason, better convert it to 7.x version

  • How to get 1 day less than user entered date

    Hi
    There is a user entry for date. If the user enters 20060427 then the report should run for 20060426. I tried giving 'LT' in the CMOD code. But it gives an error. Can anyone pls help. Is there a function module for this?
    Thanks
    Suja

    Hi Suja,
    You can use Less Than and Greater than for a user entry variable as follows: When you right click > restrict the char, then in the pop up box there is a drop down for Selection. Choose Value Hange here. Then in the drop down to the right you will have values ike Between, Less Than, Greater than...you can select as required.
    Hope this helps...

Maybe you are looking for

  • File uploaded to wrong location

    I have some code to upload a file.However when I check the server the file is not in the userFiles/csv/ folder, but rather in side the userFiles/ folder. Any ideas what wrong with my code?

  • How do make the mouse wheel scroll in my Flex app/component instead of the browser?

    Let's say I have a DataGrid or Tree or List component which has hundreds of rows. When I place my mouse over the component and scroll the mouse wheel, I notice that [most of the time] it scrolls the component a little, then starts scrolling the brows

  • ITunes 7.5 and Nike+

    When upgrading to iTunes 7.5 certain pieces of key functionality for Nike+ users have been removed. The section at the bottom of the Nike+ iPod tab used to have a "Create Account" button for users who have not set up a nikeplus.com account and a "cha

  • ITunes locks my iMac every so often?

    Every so often, but pretty regularly, iTunes seems to cause my mouse or iMac to lock up? It's been doint this ever since I migrated my old iMac computer files to my ne iMac. Any ideas?

  • Problem with RSS Feed & iTunes U

    Hello: The following RSS feed passes feedvalidator with two minor errors, and other feeds have these similar two minor errors but work with iTunes U. But, the following feed doesn't work with iTunes U. http://www.kued.org/productions/utahnow/?action=