Two different dates on a same fact table.

I use OBIEE and I got some difficulties with the times dimensions and the function AGO because I used two differents dates for my measure.
My fact table:
Ordered     Delivered Amount
1/1/2009     2/1/2009     20000
1/1/2009     3/1/2009     10000
*2/1/2009* 2/1/2009     50000
*2/1/2009* 3/1/2009     50000
1/1/2010     2/1/2010     25000
1/1/2010     3/1/2010     20000
1/1/2010     2/1/2010     20000
1/1/2010     3/1/2010     15000
I have two Times Dimensions (Ordered Times AND Delivered Times) and one fact table.
I want to compare the delivered situation (Amount Qty) for the same ordered day last year
I created a prompt with a date (ex.: Ordered date <=1/1/2010 AND Delivered date >=1/1/2010) and I want to compare one year ago with 1/1/2009 (Ordered Date situation…)
I wish the results below:
Delivered Month/Amount/Previous Amount Year Ago
2/     45000/          20000
3/     35000/          10000
I got some problem cause I had the 100 000 in my previous year (Ago) and I don’t want it because it was ordered after 1/1/2009 (Previous year). I know that the ago function concerns the Sum of Amount by Delivered Date, Year -1 ...
Does somebody has a solution for this ? Thank you
Edited by: user8898885 on Feb 8, 2010 1:01 PM
Edited by: user8898885 on Feb 8, 2010 1:05 PM
Edited by: user8898885 on Feb 8, 2010 1:05 PM

Ok, i created two facts table.
But now, what's the way to know this distribution (Delivered date) for the period (Ordered date).
Because, i got the sum of the amount by the deliverd date, and the sum for the ordered date AND i can't obtain the comparaison for the same period of ordered date.
Example:
Date Ordered || Date Delivered || Amount
janv 1, 2010 || feb. 25 2010 || 40 000
janv 5, 2011 || mar 23 2011 || 60 000
I want to compare for the ordered date, the delivered distribution
Promp = Janv. 2011
Delivered || This year || Previous year
Feb || 0 || 40 000
March || 60 000 || 0
That's my situation.
i hope than the explication is correct. I think than 1 fact table with 2 time dimension (Alias) is the way to do. But you have parhaps a best practice.

Similar Messages

  • Mix source data with different granularity into the same fact table?

    I have two transaction tables "Incident (157 columns)" and "Unit (70 Colums)". For every "Incident" that happens there could be one or more records in the "Unit" table.
    As part of my data mart design, I have merged both the tables into a single Fact "Incident Fact (227 Columns)" and inserted the records from both the tables with a join condition between them [incident.IN_NUM = Unit.IN_NUM].
    Is this correct, is my question? or am I mixing source data with different granularity in the same fact table. Appreciate your help.
    Best Regards
    Bees

    Bees,
    Are the measures from 'Incident' , repeated for a given incident where it has more than one record in the Unit table ? If so, then the sum(indicent.measure) will give an incorrect result, no ?
    What requirement is there to physically merge the tables together outside of OBIEE? With OBIEE you could have one logical 'fact' table to present to report users, which sourced from seperate Incidents and Units tables and would stop the incorrect aggregations occuring. A common modelling piece in the same way would be Order Headers and Order Lines, quite common in OBIEE to have a logical 'Orders' fact which contained both Order header measures and Order line measures, this translates to your Incidents -> Units relationship.
    To do what I've mentioned, is relatively straight forward, you need a 'Dim - Incident' with two levels, Incident and Unit, mapp the unique identifiers in as the level keys and then use these levels to set the content levels correctly in your 2 logical tables sources for logical 'Fact' , ie Incidents LTS at incident level, Units LTS as units level.
    Hope this helps, let us know if you get stuck.
    Cheers
    Alastair

  • Calling two different data sources within same transaction

    Hi,
    I have a method (in an Entity Bean), which I need to use two data sources.
    But the system give this error when I try to do it.
    An illegal attempt to use multiple resources that have only one-phase capability has occurred within a global transaction.
    Please help me to solve this problem.
    Best Regards,
    Chamal.

    I hope you need to use XA Drivers (while create the connection pool it self you need to choose the XA Drivers) for this. else you need to use the userTranscations instead of containers.
    Because other database drivers won't support this feature.
    Please try any of this. Using XA drivers is costly interms of performace.

  • Problem to update two different data targets from same DSO using DTP

    Hi All,
    I am trying to upload data from standard DSO 0FIA_DS11 to DSOs 0FIA_DS12 and 0FIA_DS13 using DTP.
    I run DTP 0FIA_DS11 -> 0FIA_DS12 and all data is updated on target, but when I run DTP 0FIA_DS11 -> 0FIA_DS13 job stops at data source extraction, endless.
    Is there something I missing with new 7.0 approach?
    Could someone help me with this problem?!
    Any help is welcome!
    Thanks in advance,
    Alex

    I'm loading cumulative/planned transactions from 0FI_AA_11 to 0FIA_DS11 just filtering by depreciation area on data package. Data is being successfully load and activated into this data provider.
    From 0FIA_DS11 to 0FIA_DS12 I am loading data without filtering and load is finishing successfully.
    From 0FIA_DS11 to 0FIA_DS13 I am not using any filter on DTP. I'm removing data with transaction type 'PLN' into start routine, but load is not even achieving this point. It stops during data source extraction.
    Any more ideas?
    Thanks for your previous reply!!

  • Collecting data from advantech-usb4704 with two different apps at the same time

    I wonder if I can access to Advantech-4704 with two different applications at the same time?
    I use this block in my vis.
    I have enough ports, but inputs are needed in completely different applications. Do I have to close one of them or can they run simultaneously?
    Thankyou!

    Dear gtu,
    as nathand said, usually it is not supported to access the same physical resource simultaneously from multiple programs. In case of DAQmx for instance, you will get an error message which says that the resource is already reserved. I suppose the same would happen with your driver, however it might be worth a try.
    One workaround could be however if you revise your applications and merge the codes if it is possible so that no concurent resource allocation takes place.
    Best Regards,
    Adam Cseh
    Applications/Systems Engineer
    National Instruments

  • How can I interact between two different frames in the same indesign template as well as from one template to another.

    I am looking for the best way (or any way) to interact between two different frames in the same indesign template as well as from one template to another. It's for a DPS app which needs to carry some button initiated data from one page to another and then present it in a table.

    There is no simple way to do it, as itunes wont let you use it on another computer without wiping the contents first.
    However if you really want to transfer songs to another computer then you could try this;
    * make sure that your ipod is accessible as a disk drive (ipod options)
    * when you plug your ipod into the computer you want to transfer to make sure you select "no" or "cancel" when it asks to wipe the contents. Leave the ipod connected and quit from itunes.
    * go to "my computer" and access the ipod directly. You probably have to select "view hidden files" from windows. You will see a lot of folders with odd names like ZX838aff with similar named files inside.
    * copy these files to a folder on your computers hardrive. Now remove the ipod and start itunes.
    * import the files from the folder you made in the last step.
    * Now your music is on itunes, but with unrecogisable names.
    This is the only way I have found to do it, but there may be another way, say with an application to do the hard work for you.
    Generic homebuild PC Windows XP
    Generic homebuild PC   Windows XP  

  • I am trying to store music for two different iPods on the same computer, against two different Apple IDs. When I try and download content from the Cloud I get an error message?

    I am trying to store music for two different iPods on the same Windows 8 computer, and when I try and download content from the Cloud I get an error message. Is it possible to have two different Apple IDs on the same computer?

    Unfortunately you've discovered too late how important it is to maintain an up-to-date backup of your iTunes library (and all other data of value).  You could, before wiping the drive, have considered making use of a commercial data recovery service that could (albeit at considerable cost) have extracted your library from the hard disk, even if virus infected.
    In the absence of that option, you will need to restore the content of your library from its original sources:
    Depending on your location, you may be able to re-download any iTunes Store purchases that are still available on the Store
    Likewise, most digital purchases from Amazon (including auto-rip copies of purchased CDs) should be available from the Amazon Cloud and via the Amazon Music application - the same may be true of other commercial sources for digital downloads
    Content imported from your CDs will have to imported again
    The specific situation that you describe regarding the music imported from your friend's external HDD suggests that either the source is badly organized and/or originates from a source other than iTunes (other media players may use alternative tags for information like artist, title, album, etc. that are not wholly consistent with how iTunes handle these).  Without details of the issues you're seeing it is difficult to suggest a remedy other than going through the media album-by-album, track-by-track, and correcting the inconsistencies.
    In the absence of a backup or access to the original library data there is no option other than painstakingly recreating your library as described above.  As you do so, you'll now realize how important creating and maintaining backups are - in my case I have at all times three separate duplicates of my library, in two different locations, where none is ever more than a week old compared to the content of my master library.

  • How to process reports with two different date fields

    Morning all,
    This question is somewhat similar to what I asked few days back. I created two different reports for two different departments (Credit Control and Free of Charge Control).
    These two reports pull data from two different date fields and has different status check ups.
    Few days back my director requested me if he can have both reports in one report. That is when I asked question from all of you regarding two reports.
    Anyhow, that was created by implementing two sub reports however, the director asked me to combine the two different reports into one in such a way that the output records should be added up with each other hence one single report with all combined data of Credit Control and Free of Charges (not two sub reports in one report).
    The problem here which I am getting is that, both reports uses two different date fields. I can live with two different statuses as that can be easily done within formula/RT however how to create a report with Report Selection Formula condition which looks in both date fields and produces results accordingly?
    I have tried this by not putting any condition in report selection formula and ran the report, it produced total results from past 6 years.
    Any ideas how to produce combined report which has two different date fields?
    Many thanks in advance
    Regards
    Jehanzeb
    What I

    Charliy,
    No the both dates are from two different databases, tables and fields. The Credit date field is from KLAB database under max table where as the FOC date field is from SAE database under maxmast table. Klab date is under credit2 table where as foc date is under order header table.
    So its more like this:
    Klab->Max-Credit2--->Credit_date
    Sae->Maxmast->Order_header---Date entered.
    two dates totally different tables, dbs
    however, I will try your idea too and see if that works.
    Regards
    Jehanzeb

  • I would like to import two different cf cards from two different cameras into the same project/folder and have them be in order of the times they were taken, is there a trick?

    I would like to import two different cf cards from two different cameras into the same project/folder and have them be in the order of the times they were taken, any ideas on how to do this?

    Just import them normally and sort the project by date. They will fall into place. If you tried this and it isn;t happening then make sure the data and times on the two cameras are identical and make sure you are sorting by date and time and nothing else.

  • Need suggestion for ISE distributed deployment model in two different data centers along with public certificate for HTTPS

    Hi Experts,
    I am bit confused about ISE distributed deployment model .
    I have two data centers one is DC & other one is as a DR I have  requirement of guest access service implementation using CWA and get public certificate for HTTPS to avoid certificate error on client devices :
    how do i deploy ISE persona for HA in this two data centers
    After reading cisco doc , understood that we can have two PAN ( Primary in DC  & Secondary in DR ) like wise for MnT (Monitoring will be as same as PAN ) however I can have 5 PSN running in secondary i.e. in DR ISE however I have confusion about HA for PSN .. since we have all PSN in secondary , it would not work for HA if it fails
    Can anybody suggest me the best deployment solution for this scenario ?
    Another doubt about public certificate :
     Public Certificate: The ISE domain must be a registered or part of a registered domain name on the Internet. for that I need Domain name being used from customer .
    Please do correct me if I am wrong about certificate understanding :
    since Guest will be the outside users , we can not use certificate from internal CA , we need to get the certificate from service provider and install the same in both the ISE servers
    Can anybody explain the procedure to opt the public certificate for HTTPS from service provider ? And how do i install it in both the ISE servers ?

    Hi there. Let me try answering your questions:
    PSN HA: The PSNs are not configured as "primary" or "secondary" inside your ISE deployment. They are just PSN nodes as far as ISE is concerned. Instead, inside your NADs (In your case WLCs) you can specify which PSN is primary, which one is secondary, etc. You can accomplish this by:
    1. Defining all PSN nodes as AAA radius servers inside the WLC
    2. Then under the SSID > AAA Servers Tab, you can list the AAA servers in the order that you prefer. As a result, the WLC will always use the first server listed until that server fails/gets reloaded, etc. 
    3. As a result, you can have one WLC or SSID prefer PSN server A (located in primary DC) while a second WLC or SSID prefer PSN server B (located in backup DC)
    Last but not the least, you could also place PSNs behind a load balancer and that way the traffic would be equally distributed between multiple PSNs. However, the PSN nodes must be Layer 2 adjacent, which is probably not the case if they are located in two different Data Centers
    Certificates: Yes, you would want to get a public certificate to service the guest portal. Getting a public/well known certificate would ensure that most devices out there would trust the CA that signed your ISE certificate. For instance, VeriSign, GoDaddy, Entrust are some of the ones out there that would work just fine. On the other hand, if you use a certificate that was signed by your internal CA, then things would be fine for your internal endpoints that trust your internal CA but for any outsiders (Guests, contractors, etc) that do not trust and do not know who your internal CA is would get a certificate error when being redirected to the ISE guest portal. This in general is only a "cosmetic" issue and if the users click "continue" and add your CA as a trusted authority, the guest page would load and the session would work. However, most users out there would not feel safe to proceed and you will most likely get a lot of calls to your helpdesk :)
    I hope this helps!
    Thank you for rating helpful posts!

  •  Ps installation on two different boot volumes of same machine?   Ps 11.0.2 Mac PPC  and then...

    Hello, I'm new to this forum.
    My goal here is to have two different Photoshop 11.0.2 installations on two different boot volumes of one and the same Power Mac (PPC) G5 Quad, one being a Tiger 10.4.11 system and the other one a Leopard 10.5.8 system, for the purpose of installing two different modalities of the same Epson Photo Stylus 2200 printer, one with the printer set to use the photo black ink cartridge for luster and glossy papers, and the other one using the matte blank ink.
    This is because I prefer to simply change the startup disk when switching inks rather than having to delete and re-add the necessary printers.  (This particular printer does not support ink cartridge switching under any version of Mac OS X.)
    Photoshop is currently only used on this one machine.  Obviously this intended scheme fits well within the EULA conditions.
    My three questions are:
    (a) whether there is any technical issue I have failed to consider,
    (b) whether each copy of Photoshop on the same machine will have to be activated separately (in other words, is the activation tied to the CPU or to the boot volume drive?), and
    (c) if the answer to the latter question is yes, whether this will count as one or two activations for purposes of later installing a single instance of the Photoshop 13.x ("CS6") upgrade on an Intel- MacBook, since obviously C6 will not run on my PPC Mac.  Again in sum, will I be able to continue to run Photoshop 11.0.2 on two different volumes of the same PPC machine and the Photoshop 13.x upgrade on the laptop?
    As further explanation, I would use Photoshop 13.x on the Mac-Intel laptop only in order to run ACR 7.x, but would keep my PPC G5 Quad as my photo editing and printing machine running Photoshop 11.0.2, since an upgrade of my desktop machine to a comparably powerful Mac Pro is simply not an option for both financial and technical reasons (the Classic environment is essential).
    Any and all input and guidance will be appreciated.
    Message was edited by: station_one

    Thank you for the lightning-fast response—and on a Sunday morning too!
    MichaelKazlow wrote:
    …Is it technically a violation, that is something I'd leave Adobe to answer.
    From my previous visits to other forums as a lurker, I was under the firm impression you were in fact an Adobe employee, Mr. Kazlow.  I hope that is still the case and you are only referencing your participation in these user-to-user forums as a volunteer, not as an official representative of the corporation. 
    Much obliged.

  • Control two different parameters at the same time

    Two motors were connected each other rigidly. One motor controlled torque and the other motor controlled speed. I generated some torque and speed data which represented one cycle of motion from a motor simulation. I like to send these two different data sets (torque and speed) to two different motors at the same time. Torque data sends to one motor and speed data sends to the other motor to see the response of the load profile. In order to do this, I thought about using multithread, but I am not sure it will work for this application. Usually multithreading delay the CPU time so the overall control process might be delayed, right? If you have better idea, please let me know.

    If you are using one motion controller to control both motors, you will probably run into problems if you try to use multithreading on the PC. However, you can execute up to 10 programs (threads) at a time, in addition to host communication, using on-board programming. For more information on on-board programming please refer to the following tutorial: Developer Zone Tutorial: On-board Programming in FlexMotion
    Best wishes!
    Dawna P.
    Applications Engineer
    National Instruments

  • How do I calculate days from two different dates?

    Hi all,
    How do I calculate days from two different dates?
    my requirement is to pass the number of days to target field from two dates.
    Current date :  14/04/2010
    Standard date: 01/01/1957 is the standard = day 0
    Is it possible in graphical mapping with out  udf?
    Plz help me on this I have donu2019t have much knowledge on JAVA.
    Thanks

    Hi Yadav,
    Probably this is not the correct forum for XI / PI .
    You can post the same to...
    Process Integration (PI) & SOA Middleware
    Hope this helps.
    Regards
    Raj

  • How do I calculate days from two different dates in XI/PI?

    Hi all,
    How do I calculate days from two different dates in XI/PI?
    my requirement is to pass the number of days to target field from two dates.
    Current date : 14/04/2010
    Standard date: 01/01/1957 is the standard = day 0
    Is it possible in graphical mapping with out udf?
    Plz help me on this I have donu2019t have much knowledge on JAVA.
    Thanks

    Hi Yadav,
    Probably this is not the correct forum for XI / PI .
    You can post the same to...
    Process Integration (PI) & SOA Middleware
    Hope this helps.
    Regards
    Raj

  • Can we access two different Siebel BO in Same OPA Rule Base

    Hi all,
    can we access two different BO's from same rule base.
    what i means is,can we pass siebel data to OPA Rule Base from two different BO's .
    Thank you for your help in advance.

    There are two approaches to do this and they both involve making some small changes on the Siebel side.
    You can create an Integration Object which contains all the business components that you want to send to OPA if you are using an Integration Object mapping.
    If you would prefer to use a Business Object mapping then you will have to create a new Business Object which combines the BCs of all the Business Objects that you want to send to OPA.
    As you can see, although one approach involves Integration Objects and one involves Business Objects they both work by creating a single object which is an amalgamation of the information that you want to send to OPA.
    Cheers
    Frank

Maybe you are looking for

  • Complete failure of PC app

    This is the story of why I would not recommend the PC app to others and would instead encourage them to use steam, gamestop, or finally actually just going to the store.  It started when I installed the app and a few games.  I realized I was running

  • Link to file on Shared Drive

    In one of my report output, I need to include a link(url) to file on Shared Drive. The path is stored in database and it will be retrieved in query. The file can be either PDF/WORD/Excel for now. For ex. e:\\abc\share\test.xls should appear as url in

  • Advis to newbie for Oracle version and tutorial

    Hello All, I would like to learn Oracle and had never had the opportunity to use it. I am now deciding to download oracle for educational purpose and train myself. I read that the recent release was oracle 11g and noticed more support online for 10g.

  • Occasional slow boot times...

    Since I've had my iMac, periodically (about every 1-2 months, if not more), when it's started up or reset, the "BONG" start-up chime takes quite a while to occur. Basically, you turn the computer on and it turns things on, but no start-up chime for a

  • Loss of master files

    I have recently upgraded to Aperture 3. I am not sure if that has anything to do with this problem but one of my libraries now has no masters. The versions must be there as they show up on screen when I select the grey panel and then full screen. I c