Formula of writing on the Dimension of the attribute with the data type Date

Hi all

I have a Dimension of the employee who has Joining_Date as a Dimension attribute. I loaded the data in the format "yyyy-mm-dd".
I have a scenario to calculate not joins in a month. For this I created a member like joinies and I tried to get the Date in the beam using @ATTRIBUTEVAL (Joining_Date) to perform the calculation on it. But when I see the essbase/planning addin data get different value.

Ex: For an employee ' 05/10/2006' is the attribute value, but he excel make me '1147219200 '.


Please, help us address this scenario.


Thank you and best regards,
Combot

Published by: 923621 on April 3, 2013 03:57

It is not a different value. That's how Essbase stores date. This is the number of milliseconds after January 1, 1970

Use datepart with attributeval for the year, month, day of the week

Concerning

Celvin

http://www.orahyplabs.com

Please check the answers as useful/correct as appropriate

Tags: Business Intelligence

Similar Questions

  • Combine the size and attributes with application Dates

    Hello, I'm trying to combine data from two tables (DIMENSION and ATTRIBUTES) below and load the data corresponding to the OUTPUT.

    Can anyone share idea on how I can combine the two? (attribute table has no ID and has only COUNTRY & TYPE to join DIMENSION)

    Version Oracle 11g: (11.2.0.2)


    DATA_SAMPLE.PNG

    CREATE TABLE DIM (ID VARCHAR2 (10), NAME VARCHAR2 (20), TYPE VARCHAR2 (20), COUNTRY VARCHAR2 (2), EFF_DT DATE, DATE END_DT);

    CREATE THE TABLE ATTRIBUTES (TYPE VARCHAR2 (20), COUNTRY VARCHAR2 (2), CHAR (1) OF THE CLASS, EFF_DT DATE, DATE END_DT);

    INSERT INTO VALUES('1','ABC','A','US',TO_DATE('30-SEP-2013','DD-MON-YYYY'),TO_DATE('31-DEC-2099','DD-MON-YYYY')) DIM;

    INSERT INTO VALUES('1','ABC','A','CA',TO_DATE('30-SEP-2013','DD-MON-YYYY'),TO_DATE('31-DEC-2099','DD-MON-YYYY')) DIM;

    INSERT IN DIM values('2','XYZ','B','US',TO_DATE('3-FEB-2014','DD-MON-YYYY'),TO_DATE('31-DEC-2099','DD-MON-YYYY'));

    INSERT IN the values('A','US','C',TO_DATE('1-JAN-2014','DD-MON-YYYY'),TO_DATE('28-SEP-2014','DD-MON-YYYY ATTRIBUTES '));

    INSERT IN the values('A','US','C',TO_DATE('29-SEP-2014','DD-MON-YYYY'),TO_DATE('31-DEC-2099','DD-MON-YYYY ATTRIBUTES '));

    INSERT IN the values('A','CA','E',TO_DATE('1-JAN-2014','DD-MON-YYYY'),TO_DATE('28-OCT-2014','DD-MON-YYYY ATTRIBUTES '));

    INSERT IN the values('A','CA','E',TO_DATE('29-OCT-2014','DD-MON-YYYY'),TO_DATE('31-DEC-2099','DD-MON-YYYY ATTRIBUTES '));

    Thank you.

    Maybe let separate everything first delete duplicates

    with

    Sun did

    (select id '1', the name of 'ABC', 'A' type, 'US' country, to_date('30-SEP-2013','DD-MON-YYYY') eff_dt, to_date('31-DEC-2099','DD-MON-YYYY') end_dt Union double all the)

    Select '1','ABC','A','CA',to_date('30-SEP-2013','DD-MON-YYYY'),to_date('31-DEC-2099','DD-MON-YYYY') of all the double union

    Select '2','XYZ','B','US',to_date('3-FEB-2014','DD-MON-YYYY'),to_date('31-DEC-2099','DD-MON-YYYY') of the double

    ),

    attributes such as

    (select 'A' type, countries 'US', 'C' class, to_date('1-JAN-2014','DD-MON-YYYY') eff_dt, to_date('28-SEP-2014','DD-MON-YYYY') end_dt Union double all the)

    Select 'A','US','C',to_date('29-SEP-2014','DD-MON-YYYY'),to_date('31-DEC-2099','DD-MON-YYYY') of all the double union

    Select 'A','CA','E',to_date('1-JAN-2014','DD-MON-YYYY'),to_date('28-OCT-2014','DD-MON-YYYY') of all the double union

    Select 'A','CA','E',to_date('29-OCT-2014','DD-MON-YYYY'),to_date('31-DEC-2099','DD-MON-YYYY') of the double

    )

    SELECT id, name, type, country, class, eff_dt, end_dt

    NVL (lead (eff_dt) over (partition BY id, type, order of eff_dt countries) - 1, end_dt) end_dt_new

    from (select distinct id, name, coalesce(type_d,type_a) type, country, case when x = 'a' then class end class, eff_dt,)

    -case when end_dt = date ' 2099-12-31' then add_months (trunc (eff_dt, 'yyyy'), 12)-1 else end_dt end end_dt

    from (select d.id, d.name, d.typ subscription_type, a.typ type_a, d.country, a.class,)

    d.eff_dt d_eff_dt, d.end_dt d_end_dt, a.eff_dt a_eff_dt, a.end_dt a_end_dt

    Dim d

    full outer join

    attributes one

    We d.country = a.country

    and d.typ = a.typ

    )

    UNPIVOT ((eff_dt,end_dt) for x in ((d_eff_dt,d_end_dt) as ' of,(a_eff_dt,a_end_dt) like 'a'))

    )

    order by 1,2,3,4,6

    ID NAME TYP COUNTRY CLASS EFF_DT END_DT END_DT_NEW
    1 ABC A CA - 30/09/2013 31/12/2013 31/12/2013
    1 ABC A CA E 01/01/2014 28/10/2014 28/10/2014
    1 ABC A CA E 29/10/2014 31/12/2014 31/12/2014
    1 ABC A WE - 30/09/2013 31/12/2013 31/12/2013
    1 ABC A WE C 01/01/2014 28/09/2014 28/09/2014
    1 ABC A WE C 29/09/2014 31/12/2014 31/12/2014
    2 XYZ B WE - 03/02/2014 31/12/2014 31/12/2014

    Concerning

    Etbin

  • EagerZeroedThink! Why read i/o on the data store while inflation

    Hi all

    I got a call from a customer of 2 weeks ago asking why there reading activities on its data store when it swells a vmdk. I didn't either, and did in my Infrastructure to justify.

    Whenever I created a vmdk for EagerZeroedThick, with the Virtual Machine Wizzard (functions of Clustering Support etc.) create or inflate the context. Prezeroeing starts at 1/3 of the activity is read from the data store and the other 2/3 is in writing. I expect 100% writing to the data store since I thought that prezero a full vmdk involves only write operations (write zeros). The data store does not support vAAI and tried since with EMC and Netapp subsystems, Fibre Channel and iSCSI. Its always the same. With EMC its even more read than write operations.

    Anyone have an explanation for the behavior of ths. I looked around and didn't find anything.

    Thank you

    Harry Mitschele

    VCI and senior Consultant

    The way I understand it, the process of resetting (no matter if it has run for a newly created or an existing vmdk) zeros only blocks that are not already reset to zero. That's why he should read each block before eventually writing on it.

    Take a look at KB http://kb.vmware.com/kb/1011170 (section "vmkfstools-t0") which deals with the topic of zero setting.

    André

  • Formula Member Essbase ASO (the order of resolution)

    Hello everyone,

    I was hoping to get some opinions on how they would handle a calc question I have.  I built a cube ASO (my first) for the loan on the housing data. A few fields I'm loading are a "Eff Int rate" and "Rate Eff Trans" (below) which are then used to calculate the 'interests Inc. or Exp' and 'transfer Inc. or Exp.

    Interest Inc or Exp =.

    CASE

    When IS ([account]. CurrentMember, [loan account]) THEN 0

    ON THE OTHER

    (([Avg Bal Mth] * ([taux d'Int Eff] / 100)) / [days per year]) * [days]

    END

    Transfer Inc. or Exp =.

    CASE

    When IS ([account]. CurrentMember, [loan account]) THEN 0

    ON THE OTHER

    (([Avg Bal Mth] * ([taux de Trans Eff] / 100)) / [days per year]) * [days]

    END

    Capture.JPG

    The challenge I'll have and don't know how to manage in essbase is in what regards running sums.  I have a dimension labeled "Loan account" with about 15,000 members of individual accounts. For all the accounts of members, it works fine however when it gets to the cumulative of the 'loan account' it calculates incorrectly because of the aggregation.  To test, I tried isolating the different ways to make this work with my current solution (as seen in the above Calc) is to reset just the update rollup for now.  However, the ultimate goal would be to have this dimension of 'Loan account' always aggregate the information accurately.  Here's an example to help explain in more detail:

    Capture.JPG

    For example, if I were to use the size of the attribute "Loan officer" and then drill at the low level of the 'loan account' it would recover 4 accounts and then those subtotal as stated above.

    I hope someone is able to give me some ideas or outline.  If this isn't the case, I can just try to accomplish in SQL before load my data.

    Thank you in advance,

    Bret

    Bret, I think what you see is a fundamental limitation of ASO.  Stored hierarchies are ALWAYS grouped together in front of a member formulas.  The only real workaround in Essbase is to use a procedural calc of the ASO - this would actually save results to the cube as input data that can then be wound the stored size.

  • the advantage of using the date dimension.

    Hi gurus,
    I have a table of facts with 5 different dates as the shipping date, the order date.
    My question is
    Case 1. in fact, table I store date_keys (substitution integers) and create several date dimensions (alas) for each type of date as a date_dimension alias for the shipping date, an alias for the date of the order etc (in the model of declaration).

    Case 2: I just avoid using the date and just store date dimension (no integers) in fact table.
    In this way I will save 5 joints in 5 dimensions of different date.
    Note: I have need of these 5 participates in the declaration of model that will be used to create reports, not in the model ETL in dimension model ETL that one date will be there, but we must create on alias the dimension date for each type of report date.

    So, I was wondering what is the advantage of using the date dimension?

    It is more a question of design/statement of a question of ETL/ODI;).

    The advantage of the dimension is that you can select or aggregate data by year, weekends, quarter, month, day of the week...
    If you only keep the date, you had all these complexes of the formula in logic or calculated items columns (assuming you are using OBIEE). Performances will be affected and the code will be duplicated in many places.

    Hope that it answers the question.

    Jerome

  • dimension of the hierarchical attribute with Essbase Studio

    Hello world

    I need to load the product dimension that is organized in a parent-child relational table like this:
    (parent_code, member_code, member_alias, mark, consolidation, formula)

    Each product has a mark and I need to load brand as a dimension of the attribute. The thing is the brand isn't flat, but it has its own hierarchy. For the brand, I have another relational table, where the data are organized parent-child like this:
    (brand_parent, brand_child, brand_alias).

    I do this load with Essbase Studio but I know is not how to create the Product hierarchy in the cube schema in order to load the parent-child hierarchical attributes. Documentation and tutorials only show examples of dishes attributes. I thought of these two ways, but do not know if will work:

    hierarchy of case 1) product like this:

    Parent_code
    Member_code
    Brand_parent
    Brand_child
    Member_code

    hierarchy of case 2) product like this:

    Parent_code
    Member_code
    Brand_parent
    Brand
    Member_code

    Someone had to do this? How did you do?
    Any help will be much appreciated.

    Thank you
    Daniela

    Hello Daniela,
    Please see the following post. One of my colleagues ran into the same issue, and his post was answered in the post below.
    ESBase Studio question - how to set up the dim attribute?

    Thank you
    Daniel
    http://dvepm.com

  • Writing for the Adjs Contribution rules

    I am trying to write rules to ensure that the data entered in the dimension of value of Contribution Adjs. Can someone tell me if we can actually get data loaded into [Contribution Adjs] as below?

    HS. Exp ' has #Sales.V #[Adjs Contribution].» I have #[ICP no]. # C1 [no]. C2 #[no]. C3 #[no]. C4 #[no] = '& 100 '.

    I've tried writing this Sub calculation and the program is interrupted. So, I was wondering if there is another way to load data into [Contribution Adjs] using rules?

    Kostas is correct in syntax, but before the rules can run even in [Adjs Contribution] you need to have AllowAdjFromChildren enabled, otherwise HFM will ignore those nodes. In addition, if there is no minutes on this, no rule will there work by default. If you then determine to ForceCalculate on this member, then only your rule void calculate will run. If instead, you do not have to validate the leaves here, I suggest that reconsider you your approach. If you want some calculations to appear as of the consolidation adjustments, you can do it [percentage] or [removal] by writing HS. Con amounts to custom dimension members that might have the same effect as the rule. Make use of the parameter of the nature of the harmonized system. Against function and you will see these amounts appear to be reviews [percentage] or [removal].

    -Chris

  • Fill in the data in an Excel template (with pre-defined formulas) Oracle

    Hello

    Anyone know how I can fill (with PL/SQL) Oracle data in an Excel template (with pre-defined formulas)? I mean that the user provides the Excel model so I just transfer the data from Oracle in particular cells in the worksheet. The model can be large and can become 50 pages long.

    Thank you.
    Andy

    So, you want an Oracle process or a process of APEX to take an existing Excel file and simply plug data into it? What I would say is instead, you export your data out and into your writing Excel VBA code file to take you input file and treat it accordingly.

    Thank you

    Tony Miller
    Webster, TX

    You can get more with a kind word and a legacy, you can with just a kind word

  • How can I make a cell formula will apply for the entire column? For example D2 appears B2 - C2. How can I copy this formula for each cell in the column?

    How can I make a cell formula will apply for the entire column? For example D2 appears B2 - C2. How can I copy this formula for each cell in the column?

    If you want the formula is the same (B2 - C2) in the cell of each column you must change it as ($B$ - 2$ C$ 2). Then copy it, select the whole column and paste.

  • Re: Satellite A300-15 has recovery question: couldn't get a writing of the language of the ini

    I am of the Greece.

    I'm going to start the recovery cd, and it returns the following error:
    + Not able to get a writing of the language of the ini file.
    http://free4U.gr/pics/view-152_DSC01468.jpg

    What to do. ?

    Hello

    Have you tried to repeat the recovery procedure?
    Have you used the recovery disk Toshiba or did you start from HARD drive recovery?

    Check the two procedures;
    First try the recovery of HARD drive; Press F8, and then choose fix my computer and in the new window, follow with HARD drive recovery.

  • How can I get a formula refer to the text in the cell rather than the data?

    I've formatted some cells to show 0 if the calculation is a negative number, but how do I get another formula using the value 0 (rather than the negative number that is in the data) when calculating?

    This one is stumping me!

    HI WS8,.

    Formulas will use the value in the cell. A 'format' only controls what is displayed and does not change the actual value contained in the cell.

    If you want a formula for use 0 in which case the actual value in the cell is negative, you will need to do one of the following:

    1. Revising the formula to create the value in the source cell to return a zero if the calculated value is less than zero:
      = MAX (0,formula)

      OR

    2. Revise the formula that returns the value in this cell (B2 in the example below) to convert values less than zero to zero.
      Current formula: = B2 * 1 k
      Revised formula: = (MAX (0, B2) * k)

    Kind regards

    Barry

  • Incorrect writing to the file timestamps

    Hi all

    I wanted to familiarize yourself with writing data and associated timestamps in a file to verify the rate at which samples are played back in my system. As a little test I wrote a simple VI that travels 5 times and creates 5 sine sampling points. Each point has its timestamp captured and converted to seconds and fractions of a second. After the for finishes in loop iteration it writes the data of sample (line by line) for every 5 samples with their associated timestamps.

    I imposed a 1ms delay for each iteration and hoped to see the consistency between the timestamps of the consecutive samples but sometimes they are very or even identical to the previous timestamp which doesn't make any sense for me. I tried with wait times and it seems to be more precise between samples, but this result is intriguing.

    Example:

    31.209159       0

    31.209159 84

    31.209159 91

    31.224784 14

    31.224784 -76

    I chose not to use custom file VI writing because I had the same problems and thought that it could have better results.

    Hoping someone can clarify it or show me where I'm wrong. I have attached the VI below.

    Thank you.

    If you are using a hardware device timed, as NO hardware DAQ, you then get accurate timestamps. Everything else is a limitation of the Windows operating system. You can always switch to LabVIEW RT if you need more specific expectations.

  • How can I control the writing-data-to - spreadsheet.vi to save the data?

    Hi all

    I tried to draw a wave and save the data to excel. Now, I want to control the writing-data-to - spreadsheet.vi to save data when I want which means that the vi records nothing until I have send a command to it. How can I make this happen or do I need any other screws?

    Nicky

    Hello

    Maybe this wat you are trying to do... Let me know if it helps...

    Kind regards

    amine31

    (Kudos are always welcome)

  • Change the decimal point by point in the writing of the measurement file

    Hello

    I use writing to the extent of the vi file to save data. I can't read the text file in Matlab, I guess that is because the decimal separator is a comma.

    Y at - it than a simple means of LabVIEW to set the decimal separator to be the point instead of the comma? (in writing to measure file vi)

    now, the data is like this 56 897 but I like it in the format 56.897

    Thank you

    Hi simo,.

    Uncheck "use localized comma" in Options-front help?

  • Writing in the spreadsheet in a loop file?

    Hello

    I'm writing a series of images in a spreadsheet file. It's basically a video which has about 540 frames each frame is 1780 X 500 pixels. I run a loop that takes acquires a frame stack of images and writes a .txt file. This operation for the given file size takes about 2 minutes for the writing process. I need the RAW files, so I can't save images in another format. I thought that 2 minutes is plenty of time to save a video of 9 sec.

    I have attached the code. Is there something in the code that it slows down or if you're running at the speed limit. I'm new to labview and I don't know how I can speed up. The header of the entry is a custom VI that creates just a 6 row to write at the beginning of each file header. Any help is greatly appreciated

    Thank you

    I guess that all the images are the same size and of the same type of data. You could just their discharge in a binary file, because, given the size that you can directly calculate the location of the pixel image file. There is no need to stop to formatted or special character. No, this isn't a "text" file, because no matter what byte of 0... 255 is equally without doubt, not just the small subset of printable characters.

    (You should really take some LabVIEW tutorials. Everything you do appear to be a translation directly into a bad Word program. Why none of your terminals are connected to the code? Why is killed using local variables just to enforce the order of execution with structures gigantic sequence. Why don't you use the notifier to synchronize two sets of sequence correct dataflow would enforce the order automatically. Properly written, this entire code could fit on the back of a postcard.

    Wouldn't not enough to choose the notifier once and then use the wire at various locations?)

Maybe you are looking for

  • iCloud and Itunes

    How do we continue to request to open a session on these accounts when ever an open my devices? Then say the incorrect ID is used, or the password is incorrect.

  • HP ENVY PHOENIX CTO 810-135QE - 600 watts power supply Question

    In the near future, I would like to upgrade the video card in my desktop HP ENVY PHOENIX CTO 135QE-810 GT 640 default to something a little more powerful and I was wondering if there is any details about the default 600 watts power that will help me

  • Satellite L650-1JT - speakers low noise

    Hello. I bought this computer a few days ago. I wanted to watch a movie and realized that the speakers do not have a normal sound. I used to have a CV (with about 10 years), and the volume was much better. I already checked the sound level and tried

  • Qosmio X 305 crashes when you play

    I have a problem, whenever I play a game, my laptop goes down, it only lasts 10 minutes of game (like COD 4, GOW, Crysis) and need me a black screen where I need to do a hard reboot. I tried, change drivers, control my temperature, even a reinstall o

  • Help! Armageddon! -My Xbox 360 does not turn on

    Was working fine earlier today. No power outage. Checked breaker box - ok. Is there something I can do? It is not heated. Totally cool. Ahhhh! Help! I must have my Xbox! Thanks for your help! Peace!