Two separate calculated columns - results show up only in one of them

Hey,
I've recently run into some peculiar behaviour in OBIEE (Oracle Business Intelligence 11.1.1.7.0). I'm using three attribute colums (deliv. on time, ordered, backlog) to calculate a monthly service level. In addition I'm using a customer ID number to separate our customers into export and national customers. I've three calculated columns - Service Level Export, Service Level Total and Service Level National. I'm using a simple case-statement to distinguish between international and national customers (When custID between xxx and yyy then...). The total service level column doesn't have a case-if calculation, only a couple of simple mathematical operations and it works fine.
Now the problem is that the results show up only in one of those calculated columns containing case-if calculations - not both at the same time. Using a prompt in a pivot table I can verify that both columns get proper values but when I remove the prompt half of the values randomly disappear from these columns so that only one of the columns has a value for a specific month. The calculations in all three columns are identical - the only difference is that Serv. L. Exp. exludes a spesific CustID whereas the Serv. L. Nat. only includes that one CustID.
Example - both Serv. L. Exp and Serv. L. Nat should have values for every month, now only one of them gets values
Month          Serv. L. Exp.               Serv. L. Nat.               Total Serv. L.
01                         15 %                                                       15 %
02                         17 %                                                       17 %
03                         13 %                                                       13 %
04                                                          20 %                      20 %
05                                                          22 %                      22 %
I've a few months of OBIEE experience under my belt so I'm not that experienced but usually I've been able to figure out what's wrong on my own. This time, however, this leaves me dumbfounded. Any help or advice would be much appreciated.
Regards,
Silver

Hi,
Serv.L.Nat is calculated 100 * INVOICED / (ORDERED + DELAYED). For National Service Level the case statement (including the calculations) is as follows (the inner CASE limits the Serv.L.Nat per cust to a range of 0 - 100 %):
CASE WHEN "fact"."CustID" = 100001 THEN (
     CASE WHEN Serv.L.Nat > 100 THEN 100
     WHEN Serv.L.Nat < 0 THEN 0
     WHEN Serv.L.Nat IS NULL THEN 0
     ELSE Serv.L.Nat
     END)
END
For Export the sql is exactly like the one above, barring the reversed condition.
Regards,
Silver
PS. The above is a burst of pseudoSQL so don't mind the typos, the actual code is tested to work as intended... barring the fact that something's wrong with getting the values to appear.

Similar Messages

  • HT203167 i have two accounts on itunes.  I can only sync one of them on my new ipad.  the Apple Store technician did a full backup to Icloud but I dont know how to retrieve it

    help!

    No I have checked and it is not in any junk folder.  When I joined apple I must have given them another  email address which is no longer functional. Now caught in endless loop....I think I need to speak to apple rep to find out how to get out if this mess with old i.d.with a password that is impossible to find or change. I have quite a few apps on my ipad so I think I will need to try and find some way of keeping that I.d. and being able to access that account.
    Any help would be appreciated.

  • Anyone else notice poor WiFi performance on iPhone 4 after IOS5 update? I have two iPhone 4 at home, slow slow downloads. One of them I've tested WiFi at work, Same issue. e.g. Apps take forever to download over WiFi compared to a AT

    I have two iPhone 4 at home, slow slow downloads. One of them I've tested WiFi at work, Same issue. e.g. Apps take forever to download over WiFi compared to a AT&T-3G connection.

    I have only just got an iphone 4 which I immediately updated to ios7 so have nothing to compare it with. But it doesn't even see networks that come up clear on the macbook. Same thing for a colleague in the same spot. previously I had an android phone which picked up just fine.

  • HT204053 I have two Apple ID's. How do I delete one of them? Please help. Thank you. Dru

    I have two Apple ID's. How do I delete one of them? Please help. Thank you. Dru

    To add to the above...
    From Here   http://support.apple.com/kb/HE37
    I have multiple Apple IDs. Is there a way for me to merge them into a single Apple ID?
    Apple IDs cannot be merged. You should use your preferred Apple ID from now on, but you can still access your purchased items such as music, movies, or software using your other Apple IDs.

  • Can I use my new 4gs on a line different then the one it was upgraded on. I have many phones on my account. I am not eligible for upgrade but I had to buy two new phones for others. Can I give one of them my old iPhone 4 and take the 4gs.?

    I have many phones on my account. I am not eligible for upgrade but I had to buy two new phones for others. Can I give one of them my old iPhone 4 and take the 4gs? Thinking maybe switch sim cards? Thanks in advance for any help

    Yes.
    Just call your provider and tell them what you want and they will help you get it done properly.

  • I bought two HD movies and I can not get either one of them to play...help please?

    I bought two HD movies and I can not get either one of them to play...help please?

    What have you tried?
    What happened?
    Error message?
    Any info?

  • When forwarding mail with 2 attachments it only attaches one of them.

    Trying to forward email with more than one attachment but it only attaches one of them. Please help

    That's the problem with getting yourself popular on the internet - its not so easy to disappear!
    I would have thought it would be better to publish the new files with the same folder name as the old one....
    TrethowansDairyShop
    ... and keep the same page name for your landing page....
    TRETHOWANS_DAIRY.html
    That way the new files would simply overwrite the old on your iDisk and you won't have to start from square one with SEO. Also your original site name and home page name are a lot better for SEO than the generic "Site" and "Home". If you want to be found by search engines, avoid these page names such as "About", "Contact" etc, like the plague.

  • We have 2 mac books but i tv only recognizes one of them even after doing a reset

    we have 2 mac books but i tv only recognizes one of them even after doing a reset

    Welcome to the Apple Community.
    Are you using the same homesharing ID for both computers, are they on the same network.

  • HT4314 We have one appleid user account and have created two game center logins,  but can now only access one...any idea how to be able to access the other

    We have one appleid and have created two game center login names under that one apple id.  now we can only access one of the logins.  does anyone know how to get to the other account

    This is to avoid piracy. What could happen is, people could buy music, and give it away for free online. Usually it is then you buy a complete album off iTunes that it will only be available on one device. It is tied to that account, and the device must be registered to that account to listen to it.

  • Two emails get sent when I am only sending one

    Hi, I'm new to this, and not good at brief.
    Incoming mail tells me there are 4 but I only receive 3, where is the fourth?
    Outgoing mail - I'm sending 2 emails but the mail activity tells me I am sending 3, where did the third one come from?
    USB stick, I load a word doc to put in another computer and on that computer it tells me I have 4 items on the stick but I know I only put one on and the stick was empty before I used it. I delete the unwanted items and lo and behold it does it again.
    Where are all these extra files coming from? I have been told not to use firewall as I don't need it and it is dodgy incase you forget the password and then you cannot get into your computer.
    Help!

    MarianneG wrote:
    Hi, I'm new to this, and not good at brief.
    I have been told not to use firewall as I don't need it and it is dodgy incase you forget the password and then you cannot get into your computer.
    Welcome to Apple Discussions:
    I think you are confusing the firewall with FileVault. Firewall is good and needed. FileVault can be problematic and unless you require extreme security, it's not necessary.
    Whoever told you that is misinformed and I would be careful about any information you get from him regarding Mac OSs.
    That being said, one should never never forget a password. Any password.
    Additionally, FileVault also requires setting a master password in case you forget the admin password, so you really would have to forget two passwords in order to lose the files in the FileVault. This is extremely improbable.

  • Three monitor setup, Only use one of them?

    Hi!
    Before i buy a third monitor I want to make sure everything work as expected. I need to be able to switch between the monitors so sometimes I want all of them to be active, sometimes only two or one of them. How do i switch between those modes?
    I have two now and its easy in Windows + P where i can choose "PC Screen only" and "Second Screen Only" or extend. How does it looks with three monitors? What i want to switch between First & Second and Second & Third ?
    Thanks for the help!

    I shall suggest you to go through the following article:
    Nice Multi-Monitor Enhancements in Windows 8.1
    You may try DisplayLink
    S.Sengupta, Windows Entertainment and Connected Home MVP

  • Doc library - 3 columns of type Hyperlink or Picture - one of them suddenly doesn't work

    Hi
    I have a doc. library with various columns (metadata) - 3 of them is of the type "Hyperlink or Picture".
    Suddenly, I'm not able to insert a link in one of them. When clicking 'OK' - I return to doc.library, and the link is not there. No errors. Nothing. I'm able to test the link - and also able to insert the same link in one of the other "Hyperlink or
    Picture" columns.
    Can anyone help?
    Best regards,
    Hasse

    Hi,
    Columns of type Hyperlink or Picture are used to store a hyperlink to a Web page or to display a graphic on the intranet or Internet.
    Does your Columns with the same Format URL? Hyperlink or Picture?
    If your column is with Picture Format URL, you can't directly add picture into "Hyperlink or Picture" column because this column takes URL value and image is binary etc. You can first upload that picture into picture library (create new picture
    or document library) then add that image link into that column.
    Besides, I suggest you create a new document library with the same 3 columns of type Hyperlink or Picture and compare the results. if the issue doesn't exists in other library, you can delete the issue column and create a same column in the document library.
    Best regards,
    Lisa Chen
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Can I install CC on three computers - I only use one of them at a time?

    I'd like to use CC on three computers in three cities where I travel - I only use one computer at a time - is this possible with a single license? If so, how?

    As long as you sign out of at least one of them you can.  Sign out before you depart from a given city and you should be set to sign in at another.

  • How can you get get two master pages to repeat in a document with one of them having numbering.

    How can you get two master pages in Indesign to repeat when one of them has a numbering section and the back side is a common back. For example, Master A has numbering 001-500 and Master B is the common back for all 500 pages.

    My guess is you either want to use a numbered list for the numbering, rather than a page number marker, or you want to make two files and print a single page file with the static text 500 times, then flip the stack and print the 500 page file.
    What are you trying to do?

  • Two NICS presented to OS, possible to only present one ?

    B200-M1 blades and Menlo CNA.
    The SPs are using a dynamic vNIC templates with fabric A or B selected and F/O enabled.
    What we're witnessing is the OS will always be presented with two NIC's.  Depending on which Fabric A/B the SP is set to determins which NIC is active. eg : In Linux eth0 & eth1 are detected.  If the SP points to A eth0 is active, and B then eth1 is active.
    My question is : Using the Menlo card is it possible to present only one NIC to the OS and still retain f/o ?
    We use a number of auto config tools and really want consistency on which NIC is active but also still want to use both A & B fabrics.  Rather than assigning all SP' to A.
    Paul

    Paul
    These are 2 static PCI devices (with device numbering) which the OS will show.
    Default behavior with Menlo (linux terminology):
    Lets say you don't create any vNICs in a SP and give it to a Menlo adapter based blade.
    Your ifconfig should show eth0/eth1 while the link on both will be down (i.e unusable as the FI side config isn't done).
    If you create 1 vNIC (side A), your eth0 will have link up with correct VLANs, eth1 down.
    If you create 1 vNIC (side B), your eth1 will have link up with the correct VLAN, eth0 down.
    It is for the way OS enumerates the devices. The first ethernet device is wired to side A.
    You could potentially try changing the HWADDR/MACADDR in the /etc/sysconfig/network-scripts/ifcfg-eth[0-1] files to see if it works for you i.e assign an ip based on it.
    With M81KR as I mentioned before you don't have this issue. You can call out the PCI order, number of devices and which vNIC goes to which side.
    So 2 vNICs created in the M81KR could both be going to side A for example. This vNIC config will fail on a Menlo.
    Is the use case that for a singly attached server, you are trying to do half the blades use Side A while the other Side B while maintaining uniformity in your imaging tools?
    --Manish

Maybe you are looking for

  • Employee Information with same date

    Dear All, Can any one tell me how to retrieve employees who hires on same date? Thanks in advance.

  • How do i get around having to put my credit card details into itunes?

    When trying to set up an itunes account it requests credit card details. This is an issue as we have 50 ipads at a our work place. Does anyone know a work around or am I missing simple tick box? Tanks

  • Using Sound Blaster Digital Music (ext. snd ca

    Hi, Does anyone know if it is possible to configure my computer to use the above mentioned sound card solely as a input device, i.e. use my internal sound card for playback, but plug my mic in or line in devices via the Digital Music external sound c

  • Just a little concerned...

    I have a brief story to precede my question. Bear with me. I just bought a MacBook less than a month ago, and until this past Saturday, everything worked fine. Last week, I traveled to Atlanta for a conference, and stayed in a hotel that offered free

  • Configure Network Level Authentication for Remote Desktop client

    We publish Remote Desktop in our Windows 2008 R2 terminal server. However, in Windows 2008R2 , the remote desktop client will a lillte bit slow I found out that if I modify the setting in default.rdp authentication level:i:0 enablecredsspsupport:i:0