OBI 10g merge 2 time dimensions on the same table/graph in analysis

Hi,
My problem is: I have 2 different analyses (working fine) (using OBI 10g), they both use a different time dimension:
time_dim_1 | fact1
time_dim_2 | fact2
I want to merge them to have something like the following:
time_dim | fact1 | fact2
What I managed to get so far is something like this:
time_dim1 | time_dim2 | fact1 | fact2 (with, if we suppose there are 12 rows in time_dim1 and time_dim2, 12*12 = 144 rows instead of just 12)
Here is some more explanations about how I set my repository:
My fact table "issues" is made of the following columns:
issue_id, issue_type, issue_create_date, issue_end_date
I also have a table "calendar" with year, quarter, month and full_gregorian_date.
In the physical layer I created 2 aliases for the "calendar" table to join with the fact table using "issue_create_date" and "issue_end_date".
In the business model I created the 2 related time dimensions.
Everything is working fine so far, I was able to get 2 different analyses :
- time dimension (joined with "issue_CREATE_date") | count of issues (with aggregation rule "count" on issue_id)
to see how many new issues are CREATED through time (are there more issues created or less)
- time dimension (joined with "issue_END_date") | count of issues (with aggregation rule "count" on issue_id)
to see how many new issues are ENDED through time (when are more issues ended)
What I want is a third analysis like this:
- time dimension | count of created issues | count for ended issues
Thanks for your help.
Florence

did you set the content level as well?

Similar Messages

  • Type 1 and Type 2 dimension in the same table

    Assuming a table with both Type 1 and Type 2 dimensions how do you engineer an ETL load?
    Please correct my options below if I am wrong
    Option 1: Inside a Slowly changing dimension set all 3, fixed attributes, Historical attributes and changing attributes. Since historical attributes is Type 2 and changing attributes is Type 1. We get what we want, Correct?
    Option 2: writing a merge statement, but not sure how exactly i would be code that.
    Please suggest a way if you think both the options are wrong. Thanks in advance.
    svk

    Hi, Please refer to the
    msdn blog.
    Hope this helps..............
    Ione

  • MDX : How to use filter on a dimension without showing it OR merge 2 attributes of the same dimension?

    Hello everyone,
    I'm kind of newbie with MDX language, I'm trying to get filtered measures from a cube with a specific layout.
    Here is my exemple :
    I want to get all the "order numbers" where the "invoice" cost is more than 300.  Each invoice is linked with an ID, one order number can have several invoices.
    So what I do is a select request with 2 dimensions : "order num" and "id_invoice"
    Here is the result : I get all the cost sorted by "order num" and I can easealy identify those who are above 300
    order num
    Id_invoice
    cost
    Total
    Total2
    15450307
    10032013094498
    1671
    1737
    ok
    15450307
    10032013099835
    66
    1737
    KO
    15450596
    10032013094078
    8524
    8524
    ok
    15451214
    10032013094119
    228
    4348
    KO
    15451214
    10032013097069
    978
    4348
    ok
    15451214
    10032013097071
    3142
    4348
    ok
    15542434
    10032013101736
    142
    142
    KO
    15550064
    10032013097016
    1261
    1261
    ok
    15550346
    10032013097586
    2252
    2252
    ok
    15550353
    10032013098446
    2617
    2617
    ok
    What i need : In "cost", I need to have the sum of each cost which are above 300 in one line (without showing the invoice id)
    order num
    cost
    Total
    Total2
    15450307
    1671
    1737
    ok
    15450596
    8524
    8524
    ok
    15451214
    4120
    4348
    ok
    15550064
    1261
    1261
    ok
    15550346
    2252
    2252
    ok
    15550353
    2617
    2617
    ok
    How is it possible to use a filter on a dimension without showing it or merge 2 attributes of the same dimension ?
    The problem is that if I show "id" column, the filter doesn't work properly : it compares 300 with the total cost of the whole order and does not compare with each invoice (which could be under 300 ! - see "KO" in Total2 column)
    Here is the request I use to generate this result :
    with
    member [Measures].[Total]
    as (
    [TP].[ID INVOICE].[All],
    [TP].[ORDER NUM].currentmember,
    [Measures].[COST]
    member [Measures].[Total2]
    as (
    IIF([Measures].[COST] >
    300, "ok",
    "KO")
    select
    {[Measures].[COST],[Measures].[Total],[Measures].[Total2]}
    on
    columns,           
    Filter
                 [TP].[ORDER NUM].[ORDER
    NUM].members *
                 [TP].[ID INVOICE].[ID
    INVOICE].members
                 ,[Measures].[COST]
    > 0
    on
    rows
    FROM [MYCUBE]
    Thank you  for your help !
    Kind regards,
    Olivier.

    Hi Olivier,
    hereunder a similar query against the AW. For all order numbers, we sum all lines above 30 without diplaying the line numbers:
    WITH
    MEMBER [Measures].[lines above 30] AS
    IIF(
    [Measures].[Internet Sales Amount] > 30,
    [Measures].[Internet Sales Amount],
    null
    MEMBER [Measures].[aggr lines above 30] AS
    SUM(
    exists(
    [Internet Sales Order Details].[Sales Order Line].[Sales Order Line],
    [Internet Sales Order Details].[Sales Order Number].currentmember
    [Measures].[lines above 30]
    SELECT
    [Measures].[Internet Sales Amount],
    [Measures].[aggr lines above 30]
    } ON 0,
    [Internet Sales Order Details].[Sales Order Number].[Sales Order Number] ON 1
    FROM ( SELECT
    [Product].[Category].[All Products] ON 0,
    [Internet Sales Order Details].[Sales Order Number].&[SO51177]:
    [Internet Sales Order Details].[Sales Order Number].&[SO51178]
    } ON 1
    FROM [Adventure Works] )
    I reduced the cube with a subselect.
    Philip,

  • Two Cube dimensions with the same name.

    Hi
    If I have a cube dimension that has the same name as another cube dimension, will this be an issue when quering the cube through 1) Excel 2) SSRS or Cognos Reports?
    For instance: The Database dimension DimOrganization exists in cube A as well as
    DimOrganization_Dep. Both dimension has the same attribute names and the same hierarchy names.
    Their database names are different. (object_ID and Object_name differs) 
    In the cube I change the name of DimOrganization_Dep to DimOrganization.
    This seem to work when I query the cube in Excel, the mdx looks like this;
    SELECT NON EMPTY { [Measures].[AntalNotNull] } ON COLUMNS, NON EMPTY { ([Dim Organization].[Yes- No].[ Yes- No].ALLMEMBERS * [Dim Organization].[Yes- No].[Yes- No].ALLMEMBERS ) } DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME
    ON ROWS FROM [TEST] CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING, FONT_NAME, FONT_SIZE, FONT_FLAGS
    Anyone knows if this kind of setup will result in problems when quering from SSRS reports or Cognos?
    And/or if even though I get it right in the cube (quering from Excel) it might as well give me the wrong result the next time?
    Cheers
    /Martin

    Hi
    Thanks for the reply.
    I have tried and yes I can change then cube dimension namn to that of another cube dimension.
    For instance if i have Cube Dimension "DimA" and "DimB" to begin with , then  I change the name of the cube dimension "DimB" to "DimA". So now I have two Cube dimensions with the same name.
    It works to deploy and process and Excel somehow understands which one is which.
    Both is present in the same cube as you can see from the MDX above.
    The tricky part is how does the mdx return the correct result when the mdx looks like this (and it dpoes return the correct result).?
    Cheers
    /Martin

  • Can't merge "duplicate" libraries on the same computer

    MAC PRO
    OSX 10.6.8, Aperture 3.2.4
    I'm trying to merge two libraries on the same mac (different drives). The libraries were duplicates at one time but have since changed - I've added photos to both of these libraries (unintentionally) to the point where both are different sizes and not true duplicates any longer. Trying to merge the two libraries back into one isn't allowed as Aperture says it's a duplicate "of the library currently running."
    I have been able to export an individual project as its own library then merge it into the same project in the other library but not everything all at once.
    Any suggestions would be appreciated.

    I discovered the fix for this issue. Supposedly the problem occurs when an Aperture library is moved or copied via Finder rather than using the Import/Export function with the Aperture itself. Since that is accurate for my situation, I'm assuming it's true.
    In order to merge libraries that were once the same, first create a new library for each existing library. To do this go to File/Switch to Library/Other/New. Choose "Create New" in the dialog box, select a volume to place the new library, give it a name unique for that library, and hit "Create." In the new library, go to File/Import/Library/Project and select a library that you want to eventually want to merge. Import this library. You'll need to do this for every library you want to merge. Once all of the libraries have been imported into new libraries (think of this as just a laborious way of simply renaming the files), then you should be able to merge the libraries together. Be aware you that must create new libraries for all libraries you want to merge. Just creating one new library and attempting to merge the contents with another won't work. In my case, Aperture went through the "process" of merging, very quickly, but none of the files of the second library actually merged into the first - and no error message will appear.

  • Oracle 11gR2 use the time dimension wizard---the cube didn't show any information!

    I created a Time Dimension with the Time dimension wizard  , a category dimension, and a rel_expense cube in OWB 。what I do is following the oracle 11g r1's turtoial
      The rel_expense cube has two forigen keys, one is refrence the category dimension's dimension_key(primary key in the category dimension), and the other one  refrence the time dimension's start_day_date(bussniess key in the time dimension).  
    The result I get is  the rel_expense_tab had datas, but the rel_expense cube had nothing.
    .I delete the category dimension , it is the same result(cube rel_expense had nothing).
    But if I  only delete the  time dimension,    it is ok(both of them had datas)!!!
    So I think is the time dimension's problem ,because the 11g r2's time dimension wizard didnt' generate the dimension_key for time. Is the forigen key(time dimension) i refrenced in the cube is error,so if it is, what should I do?
    SEEK FOR YOU HELP!!!!!
    ps:my mother language isn't English ,so it has many erros in the passage

    can anybody help me? the measures in my cube were round to integer, i doubt it came from time dimension. did anyone encounts such a senario

  • I tried to install yosemite yesterday and my computer goes through the whole installation process and then to a blank white screen.  I've rebooted, I've reinstalled several times and get the same result.  Two days wasted!

    I tried to install yosemite yesterday and my computer goes through the whole installation process and then to a blank white screen.  I've rebooted, I've reinstalled several times and get the same result.  Two days wasted and I can't use my computer!!

    I don't know if you've already resolved your problem, but I had the same thing, it took me 6 hours to fix it. I had the exact same as you, installed the update and then it went to a white screen. After trying start up holding down cmmd r or holding down the alt key to try to install it again, nothing worked, same result every time. Then an angel came to me here somewhere but I can't find it now to thank him. Start in safe mode, press shift once you hear the start up chime and hold it down until you hear it again. Installation completion box came up and it was working. turn off computer and start up again normally and all is well. Except my final cut pro x doesn't work with it, have to update that now too. same as when I updated to mavericks.
    Hope this helps.

  • Upgraded to 5.4 when opening lightroom get a message "encountered an error when reading from its preview cache and need to quite" tried this several time but get the same eror message

    Upgraded to 5.4 when opening lightroom get a message "encountered an error when reading from its preview cache and need to quite" tried this several time but get the same error message.  Says Lightroom will attempt to fix the problem the next time it launches but that is not happening.  How do it fix this?

    Delete the preview cache using your operating system. It is a folder whose name ends with Previews.LRDATA. Do not delete the Lightroom catalog, which ends with .LRCAT

  • How do I merge multiple subscriptions to the same podcast?

    In iTunes I have multiple subscriptions to the same identical podcast (same podcast name and same url) ... some of the subscriptions have duplicated entries and some have unique entries ... (how this happened I have no idea, but that is beside the point) ... my question is how do I merge these multiple subscriptions into a single podcast subscription? I have tried cut & paste in the hope that I could then delete (unsubscribe) to all of the redundant/repeated subscriptions, but that does not work ... in explorer I have found that ALL my podcast files from ALL my podcast subscriptions are found in a single folder .. so all the entries from my multiple subscriptions are there as well ... this smoked my hope that each podcast subscription would have it's own folder or sub-folder ... so I'm stuck ... does anyone know how I can merge multiple subscriptions to the same podcast into a single podcast subscription (without my losing the uniques scattered throuhout the mutiple subscriptions) ... ???

    I would love to be able to do exactly what you are suggesting .. the problem is, if I delete the duplicate subscriptions, I lose the unique files unique to the duplicate subscription I delete ... the problem is that I can't find a way to save/move the uniques (in advance of deleting the duplicate subscription) into a single subscription ... is there a way to do this ??? Does anyone know how to do this ??? Please help !!!

  • Can I use 2 Time Capsules on the same network

    Can I use 2 Time Capsules on the same network
    Posted: Jul 23, 2009 1:49 PM Reply Email
    Here is what I want to do. I currently have a time capsule used for one end of the house. Currently my 2 kids rooms are in an addition that I have run a cable from the time capsule to each of their rooms. If I want to give them wireless for that part of the house could I add another TC, for wireless and they can both backup their macbooks to that time capsule.
    So Can I add a 2nd time capsule to extend by "N" network, or should I just go with an AP express or extreme and let them each have their own HD backup for each macbook?
    Brett

    Have bought many reconditioned (Refurb) product from Apple site and have always been happy with them. To date none have failed me and we have been Apple customers since 2006. With that said when you buy Refurbs make sure you know what model you are getting. The current TCs on the Apple site are last generation. The way to tell is to check the model number against the current one. Easy way to do this is to put both in the shopping cart and compare the model numbers. The Refurb model number is FB277LL/A and the new TC model is MB765LL/A. The first digits identify whether a Refurb or new, the rest should be the same if they are the same model number.
    Before you buy, now which model number you want and then check other sites to compare prices. I recently purchased a new TC on Amazon for a better price then the Apple Store Site. For larger Refurb purchases like MBPs, we choose to buy directly from Apple; but for peripherals we often buy from OWC, Amazon, and other sites. Hope this helps.

  • I need to have two time zones on the same iCal appointment

    I work accross four time zones, two of which do not observe Daylight Saving Time (DST). This means that when I'm booking my flights on iCal, it would be usefull to have two time zones in the same iCal appointment (Outlook, for instance, allows this). What I currently do is to choose one of the time zones as the iCal appointment and then I "translate" the other time to the one I'm using on iCal.
    This is quite a challenge, though:
    if I'm taking a flight from Luanda (WAT = GMT+1, no DST) to London (GMT with DST) I would like to book it on iCal exactly like it shows on the ticket , 21:00 (WAT) to 06:00 (GMT).
    Using the "translated approach", from May to October, this means 21:00 (GMT) to 06:00 (GMT).
    Using the same approach, from November to April it means from 20:00 (GMT) to 06:00 (GMT).
    If I include Jo'burg (CAT = GMT+2, no DST) and Frankfurt (GMT+1 with DST), booking flights in your calendar becomes quite a challenge!
    Does anyone know if this feature is planned for any future versions of iCal?

    Hi,
    This is not possible in iCal. The nearest thing would be to create two events, one for take off and one for landing.
    Also, this is a user to user forum. By posting here you are not guaranteed someone from Apple will read it. If you'd like Apple to know about your suggestion I reccommend you send them feedback.
    Best wishes
    John M

  • I have just upgraded to Mavericks and have been using Time Machine on an external disk with Snow Leopard.  Can I continue to backup with Time Machine on the same external disk or do I need a new disk since the operating system has changed?

    I have just upgraded to Mavericks and have been using Time Machine on an external disk with Snow Leopard.  Can I continue to backup with Time Machine on the same external disk or do I need a new disk since the operating system has changed?

    Hi there,
    I found that Time Machine in Mavericks will sort it all out for you. You shouldn't need to buy another backup drive, unless you have insufficient space left and can't afford to delete whats on there. It should just work fine.

  • How can I do to acquire and save date in the same time and in the same file when I run continual my VI without interrupti​on.

    I've attached a VI that I am using to acquire amplitude from Spectrum analyzerse. I tried to connect amplitude ouput to the VI Write Characters To File.vi and Write to Spreadsheet File.vi. Unfortunately when I run continual this VI without interruption, labview ask me many time to enter a new file name to save a new value.
    So, How can I do to aquire and save date in the same time and in the same file when I run continual my VI for example during 10 min.
    Thank you in advance.
    Regards,
    Attachments:
    HP8563E_Query_Amplitude.vi ‏37 KB

    Hi,
    Your VI does work perfectly. Unfortunately this not what I want to do. I've made error in my last comment. I am so sorry for this.
    So I explain to you again what I want to do exactly. I want to acquire amplitude along road by my vehicle. I want to use wheel signal coming from vehicle to measure distance along road. Then I acquire 1 amplitude each 60 inches from spectrum analyzer.
    I acquire from PC parallel port a coded wheel signal coming from vehicle (each period of the signal corresponds to 12 Inches). Figure attached shows the numeric signal coming from vehicle, and the corresponding values “120” and “88” that I can read from In Port vi.
    So I want to acquire 1 time amplitude from spectrum analyser each 5
    period of the signal that I am acquiring from parallel port.
    So fist I have to find how can I count the number of period from reading the values “120” and “88” that I am acquiring from In Port (I don’t know the way to count a number of period from reading values “120” and “88”).
    Here is a new algorithm.
    1) i=0 (counter: number of period)
    2) I read value from In Port
    3) If I acquire a period
    i= i+1 (another period)
    4) If i is multiple of 5 (If I read 5 period)
    acquire 1 time amplitude and write to the same
    file this amplitude and the corresponding distance
    Distance = 12*i). Remember each period of signal
    Corresponds to 12 Inches).i has to take these
    values: 5,10,15,20,25,35,40,45,50,55,60............
    5) Back to 2 if not stop.
    Thank you very much for helping me.
    Regards,
    Attachments:
    Acquire_Amplitude_00.vi ‏59 KB
    Figure_Algorithm.doc ‏26 KB

  • I am having sporadic issues after new hard drive install and recovery using Time Machine. The same sluggish response, start up screen pixelating...If I reinstall Lion will it wipe out other applications? My HD was formatted and partitioned correctly, I ha

    I am having sporadic issues after new hard drive install and recovery using Time Machine. The same sluggish response, start up screen pixelating...If I reinstall Lion will it wipe out other applications? My HD was formatted and partitioned correctly, I have a late 2009 iMac.

    Use the trackpad to scroll, thats what it was designed for. The scroll bars automatically disappear when not being used and will appear if you scroll up or down using the trackpad.
    This is a user-to-user forum and most people will post on here if they have problems. You very rarely get people posting to say there update went smooth. The fact is the vast majority of Mountain Lion users will not be experiencing any major problems with the OS, or maybe with apps which are not compatible, but thats hardly Apple's fault if developers don't update their apps.

  • The ipad won't sync some photos, saying the file can't be read by the ipad, however it will sync some photos taken at the same time which are the same size and file type.  Why does it reject some and accept others?

    The ipad won't sync some photos, saying the file can't be read by the ipad, however it will sync some photos taken at the same time which are the same size and file type.  Why does it reject some and accept others?

    Hi there. I'm having the same problem: my iPad won't import some photos from a folder, saying that they can't be read. They are all JPEGS and some photos taken at the same time have synched fine, but out of a folder with 200 photos, it only lets me synch 37. I'm synching albums created via Photoshop Elements 6, which has worked fine until now.
    I've tried deleting all photos and re-synching, and have also deleted the iPod Photo Cache, but it hasn't made a difference.
    The iPad auto-updated to the latest version of iTunes, so maybe that's what's causing it?
    Any advice gratefully received!

Maybe you are looking for

  • Can't get past payment screen for Apple ID?

    Hello All, I'm a new iPhone user. In my company, we're transitioning from Blackberry to iPhone which I'm responsible for setting up. During the activation process, I have run into an issue with multiple devices where I cannot get past the Apple ID ac

  • Media Core Importer Process / ImporterProcessServer.exe crash

    The project that I'm working on is standard def but it is an hour and half long.  Its a training DVD with 12 modules totalling 100 minutes.  I have had a problem that has been getting continually worse.  Today I hit the brick wall and can't seem reco

  • Value attribute not visible in runtime collection

    Hi, I have created some 2-3 value attributes (display only) in a standard model node for BTDOCFLOW (which also contains some display only fields). Put in the logic in their Getter methods and fields are getting displayed in UI with the values. Now, m

  • Finder search doesn't work

    Hi there, on my system (Mac Pro, Tiger, 10.4.11) the search function in the finder doesn't work anymore. I tried almost everything: Onyx, all the mdutil stuff for re-indexing, everything worked fine but it doesn't solve the problem. Spotlight itsself

  • RMAN: Using older backupset but all archivelogs

    I was reading on asktom.com about his method of backing up a database: Take full hot backups via RMAN Mon-Wed-Friday, but backup the archive logs nightly. One of the benefits was that if pre-Wed backup a block becomes corrupt and backed up, and you d