A weird CASE

Hello

I have a report that had a single column and a single currency.

As well; -


CODE AMOUNT

A 200
B 250
C 400

WHERE CURRENCY_CODE = GBP


The desired end-user view STATS in a separate in the same report thus column; -


CODE AMOUNT AMOUNT STAT

A 200 2.0
B 250 2.5
C 400 4.0

WHERE CURRENCY_CODE in ("GBP", "STAT")


Note - 200 / 2.0 and other amounts are SUMS - not simple values - this behavior being placed in the repository.


I tried to reach the above by changing the conditions and using instructions box as well. -


For the column quantity. -

-case when currency_code = "GBP" then AMOUNT ELSE 0 END


AND for the AMOUNT of STAT

-case when currency_code = 'STAT' then ELSE AMOUNT 0 END


Easy, you would think, but my numbers are not going out as planned, I get lots of zeros in the STATS, which I certainly should have no idea of the values - what Miss me?


Thank you

Robert.

Hi Robert,.

That's what I want to explain. You must include a Currency_code in your report, then only you will get the expected results. OBIEE will generate query differently in both cases. Then include the code of the currency in your report and hide or put in the exclude option in PivotTable.

Thank you
Sandeep

Tags: Business Intelligence

Similar Questions

  • Suddely judgement! Win 7, weird case

    Hello

    I need help, my his laptop suddenly stop working when I played the game/music/video

    As a first step, it works very well, but then, about 1-3 minutes. more later the sound disappeared.

    When I close the game/music/video/plug-in and out headphones, the sound starts working again!

    The Service is not disabled, I've already updated my driver, but this keep happening

    pls help, I'm newbie to this, also sorry for my bad English

    My laptop: Toshiba Satellite L740D

    Audio driver: Conexant SmartAudio HD

    Note: Moved from music, pictures and video

    Hi Muhammad,

    Thanks for the reply with the status of the issue.

    I would like to know if you have tried the steps in the Microsoft Help article that we have provided as reference in my previous answer. If not then please try the procedure described in the Microsoft Help article and check if that helps.

    If the problem still persists then contact Toshiba and report the same behavior and check if someone has already reported the same problem.

    Support from Toshiba: http://support.toshiba.com/

    Just reply to the State of the question so that we can help solve you the problem.

  • Will not work HP TouchSmart 15-j078ca n ENVY: fingerprint - no lights reader...

    Hello

    Since the replacement of hard disk and reinstall all my fingerprint reader used to light up.

    HP TouchSmart PC ENVY 15-j078ca laptop

    Update driver,

    simplepass update software

    BIOS shows biometric not like option, thinking about this issue perhaps?

    Cannot use HP to check and update because it seems to not be able to rip off my laptop once its identified it!

    Thank you

    @BCBuddy

    The "Scan my PC" program may not work for you, no, I do not know exactly why; Suffice it to say if the program does not scan your PC to find your drivers / support page, you can perform the operation manually, that is, access your computer Support pages.

    Computer:

    HP TouchSmart PC ENVY 15-j078ca laptop

    A few ideas

    There is not a Windows 10 associates BIOS update for your laptop.  I doubt, there is nothing to change (in BIOS), except if you need get the BIOS to default because it has been changed at some point.

    In some weird cases, BIOMETRICS must be enabled in Windows 10; It is primarily a problem unless something hinky, AND you run Windows 10 Pro.  The document below covers a little of this - ignore the idea for now.

    There is not a Windows Validity Sensor 10 / fingerprints Synaptics driver.  The listed pilot is evaluated for Windows 8.1 and should suffice or Windows 10.

    File name: sp63418.exe

  • Get the data of while loop!

    Ladies and gentlemen,

    I am new to Labview, and I have many doubts!

    But now I need a help of a simple question!

    I need to get a Boolean status within a while loop and together a status outputs digital DAQ, but as I read in this forum, is impossible to use a tunnel to do that!

    I tried to use a LOCAL VARIABLE, but I think that I don't know how to use it!

    Please, check the photo and help me if possible... How can I get the status in real time of the Boolean (saida)?

    Thank you!

    Use a single loop that continues to turn and place all the code, including the output of data acquisition on the inside (why use separate loops if all run at the same rate?).

    To better help, fix the real VI instead of an image. What are the typical values for MP1... MP3? What is the significance of the division by one?

    You could also write simple lines after each loop, remove the dependecy of table built, data which cannot be done once all loops have ceased.

    (I also would not use one of these weird case of departure strutures.) Is there a while looping around it or you use "continuous operation"?)

  • Traffic is failed on plain IPSec tunnel between two 892 s

    Have a weird case and you are looking for some suggestions/thougs where to dig because I have exhausted the options.

    Note: I replaced the Networkid real to a mentined below.

    Topology: a classic IPSec VPN tunnel between two 892 s of Cisco, with pre-shared key and no GRE. A 892 (branch_892) has access to the Internet using PPPoE and has three network / VLAN behind it. A VLAN is coordinated to the PPPoE internet access. Access to the other two VLAN - VL92 (100.100.200.0/24) and VL93 (100.100.100.0/24) is performed via the VPN tunnel.

    Second 892 (892_DC) has just one interface - WAN on Gigabit enabled/connected and a static route to the default GW. It doesn't have any defined interal network. If the router is strictly used to send traffic to VL92/VL93 to the domestic 892 via IPSec tunnel.

    Here's the problem: access to VL93 (100.100.100.0/24) works, however for VL92 (100.100.100.0/24) - does not work.

    Devices in VL92 I ping IP address of 892_DC through the VPN tunnel. The 892_DC router I can ping devices in VL92. However, I can't VL92 ping any device beyond the 892_DC and at the same time the packets arriving on 892_DC for VL92 are not sent through the VPN tunnel.

    I took the package trace on 892_DC using capture point/buffer to nathalie caron to VL92 packages and saw that the traffic coming to the 892_DC. I run the nathalie caron even on Branch_892, and there was not a single package.

    So... What's the problem? More interesting, I modified the way left on VL92 access list and still - no packets are sent through the tunnel.

    Any idea? Two routers config are below

    -------

    892_DC #show ru

    !

    crypto ISAKMP policy 10

    BA aes 256

    hash sha256

    preshared authentication

    Group 2

    isakmp encryption key * address 1.2.3.4

    ISAKMP crypto keepalive 10 periodicals

    !

    address of 1.2.3.4 crypto isakmp peers

    Description of-COIL-892

    !

    !

    Crypto ipsec transform-set IT-IPSec-Transform-Set esp - aes 256 sha256-esp-hmac

    Crypto ipsec df - bit clear

    !

    map IT ipsec - IPSec crypto - Crypto - map 10-isakmp

    defined peer 1.2.3.4

    disable the kilobytes of life together - the security association

    86400 seconds, life of security association set

    the transform-set IT-IPSec-Transform-Set value

    match a lists 101

    market arriere-route

    QoS before filing

    !

    interface GigabitEthernet0

    IP 10,20,30,40 255.255.255.240

    IP 1400 MTU

    IP tcp adjust-mss 1360

    automatic duplex

    automatic speed

    card crypto IT-IPSec-Crypto-map

    !

    IP route 0.0.0.0 0.0.0.0 10.20.30.41

    !

    access list 101 ip allow any 100.100.100.0 0.0.0.255 connect

    access list 101 ip allow any 100.100.200.0 0.0.0.255 connect

    -------------------------------------------------------------------------------------

    Branch_892 #sh run

    !

    crypto ISAKMP policy 10

    BA aes 256

    hash sha256

    preshared authentication

    Group 2

    isakmp encryption key * address 10,20,30,40

    ISAKMP crypto keepalive 10 periodicals

    !

    address peer isakmp crypto 10,20,30,40

    !

    !

    Crypto ipsec transform-set IT-IPSec-Transform-Set esp - aes 256 sha256-esp-hmac

    Crypto ipsec df - bit clear

    !

    map IT ipsec - IPSec crypto - Crypto - map 10-isakmp

    defined peer 10,20,30,40

    disable the kilobytes of life together - the security association

    86400 seconds, life of security association set

    the transform-set IT-IPSec-Transform-Set value

    match address 101

    market arriere-route

    QoS before filing

    !

    FastEthernet6 interface

    Description VL92

    switchport access vlan 92

    !

    interface FastEthernet7

    Description VL93

    switchport access vlan 93

    !

    interface GigabitEthernet0

    Description # to WAN #.

    no ip address

    automatic duplex

    automatic speed

    PPPoE-client dial-pool-number 1

    !

    interface Vlan1

    Description # local to #.

    IP 192.168.1.254 255.255.255.0

    IP nat inside

    IP virtual-reassembly in

    !

    interface Vlan92

    Description fa6-nexus e100/0/40

    IP 100.100.200.1 255.255.255.0

    !

    interface Vlan93

    Description fa7-nexus e100/0/38

    IP 100.100.100.1 255.255.255.0

    !

    interface Dialer0

    no ip address

    No cdp enable

    !

    interface Dialer1

    IP 1.2.3.4 255.255.255.248

    IP mtu 1454

    NAT outside IP

    IP virtual-reassembly in max-pumping 256

    encapsulation ppp

    IP tcp adjust-mss 1414

    Dialer pool 1

    Dialer-Group 1

    Authentication callin PPP chap Protocol

    PPP chap hostname ~ ~ ~

    PPP chap password =.

    No cdp enable

    card crypto IT-IPSec-Crypto-map

    !

    Dialer-list 1 ip protocol allow

    !

    access-list 101 permit ip 100.100.100.0 0.0.0.255 any

    access-list 101 permit ip 100.100.200.0 0.0.0.255 any

    !

    IP route 0.0.0.0 0.0.0.0 Dialer1

    Yes correct sounds - so another possible problem is the routing is routing 100% correct on both sides? Can you put the two sides config for review?

  • Problem in dealing with date

    Hello

    I use oracle 11g R2 xe.
    I have a weird case. I have about 30 folders created on 08/01/2012

    When I type this:
    "Select * from TABLE where calling_date = January 8, 2012"
    I have only 9 entries.
    But,
    If I type:
    "Select * from TABLE where calling_date > 7 January 2012"
    I get 30 reviews who created 08/01/2012

    What could be the problem...?

    I use this trigger to insert the value from the date of the call

    CREATE OR REPLACE TRIGGER "BI_Create_CRM".
    BEFORE INSERT OR UPDATE ON CRM
    FOR EACH LINE
    Start
    If (insert) and then
    Start
    : new.calling_date: = sysdate;
    end;
    end if;
    end;

    Kind regards
    Fateh

    Fateh says:
    Hello

    I use oracle 11g R2 xe.
    I have a weird case. I have about 30 folders created on 08/01/2012

    When I type this:
    "Select * from TABLE where calling_date = January 8, 2012"
    I have only 9 entries.
    But,
    If I type:
    "Select * from TABLE where calling_date > 7 January 2012"
    I get 30 reviews who created 08/01/2012

    What could be the problem...?

    I use this trigger to insert the value from the date of the call

    CREATE OR REPLACE TRIGGER "BI_Create_CRM".
    BEFORE INSERT OR UPDATE ON CRM
    FOR EACH LINE
    Start
    If (insert) and then
    Start
    : new.calling_date: = sysdate;
    end;
    end if;
    end;

    Kind regards
    Fateh

    It's just that you totally ignored the part time. A date data type has the time associated with it. You can see that.

    SQL> alter session set nls_date_format = 'DD-MON-YYYY HH24:MI:SS'
      2  /
    
    Session altered.
    
    SQL> select sysdate from dual
      2  /
    
    SYSDATE
    --------------------
    10-JAN-2012 08:39:45
    

    "Select * from TABLE where calling_date > 7 January 2012"

    This very incorrect way of writing a query. Here you have treated the date as a string. So, this will cause conversion implisit.

    How it should be wirttern is.

    select * from table where trunc(calling_date) = to_date('01-07-2012','dd-mm-yyyy')
    

    Yet this will not consider the index (if any) in the calling_date column. So what can we do?

    You can do instead.

    select * from table where calling_date between to_date('01-07-2012','dd-mm-yyyy') and to_date('01-08-2012','dd-mm-yyyy') - interval '1' second
    
  • Firefox tabs display weird characters

    Recently, doing weird characters on my tabs.

    PS how to add pictures here to show my problem?

    Hello xSanaNanax, other concerned users related to the question of the extension of Advisor to mcafee site - please try to disable or remove that in case you have now.

    Disable or remove modules

  • my phone has weird colors

    Hello I have an iPhone 6s more edition rose gold just for a month never dropped it or nothing, but my phone has weird colors that took it back too my phone carrier and they said id have to buy a new phone, but I just got this phone and has nothing to him. I took it to a phone place repair simply too ask questions and they said it could be possible WATER DAMAGE! But my point is that I did nothing to him as I never gave up and I have a case of proof of life and although he has never been in or near the water. Please help I really need my phone do you think if I bring it into apple they might help?

    flyinhwyn808 wrote:

    Think that if I bring it to you in apple they could help?

    I think so.  They can watch and advise that you based on what they find.

  • Amazon looks weird, safe mode doesn't help-drop-down menu is no help

    Amazon page looks weird, straddles the stuff that some photos are not displayed. works fine with IE.
    Tried using the menu drop down and safe mode and options there do not correspond to the troubleshooting.

    You can try the following steps in case of problems with web pages:

    You can reload webpages and ignore the cache to refresh potentially stale or corrupt.

    • Hold down the SHIFT key and click the Reload button
    • Press 'Ctrl + F5' or 'Ctrl + Shift + R' (Windows, Linux)
    • Press 'Command + shift + R' (Mac)

    Clear the cache and cookies only from Web sites that are causing problems.

    "Clear the Cache":

    • > Options/Preferences > advanced > network > content caching Web: 'clear now '.

    'Delete Cookies' sites causing problems:

    • > Options/Preferences > privacy > "Use the custom settings for history" > Cookies: "show the Cookies".

  • Weird noises near the processor on Satellite M40

    I have a laptop Satellite M40-243, I sent it to the service under warranty for a graphic display problem.
    He came back yesterday, now it works well, but the processor emits weird noises.

    Warranty service is unwilling to fix this because "there isn't any disfonctionnementsa!?

    Listen to these sounds: http://yang69.evoconcept.net/sounds/bruitsproc.mp3

    Is this normal?
    I think that no.

    (Sorry for my bad English :)

    This is definitely not normal and you should contact service again as soon as possible. I put t know what it may be exactly, but this is the case for the service.

  • NB100 - 12 M - Touchpad weird behavior

    My touchpad started acting weird. On tap, that is as a right button click, when clicking on the left button is click right button and right button does not respond. In the configuration of the synaptics driver has everything than the default (left button is left button by default, right button is set as the right button, etc.).

    Is there a driver version that should work for you? I tried the driver from Toshiba support page suggested, and also a version where Windows XP update driver acknowledged. I also tried driver by default PS2 that did not work at all...

    The netbook has only a few days... what in the hell happened?

    Thanks for any help :-(

    Hello

    Have you tried an external mouse on the laptop?
    And you can determine if it s a problem with the touchpad or software or drivers. Check it, it only takes a few minutes!

    If the external mouse works, you should try to update the BIOS. On the Toshiba site, you can download all the updates driver for your laptop.
    Before update you the BIOS you close all running programs, disable your antivirus and firewall.

    In the worst case, it s a malfunction of the touchpad and it must be replaced. :(

  • My 6 s iPhone more gets some weird patterns on her body

    My iPhone 6 s + is to get these weird models and it becomes more serious. I'm sure nothing would not like falling on the way I use it because I use really thick box plastic for him since I bought it. I want to know whence this symptom originates and how can I solve this problem! I use water to clean, but it seems to be oxidized, so I can't really clean! In addition, appearance of the mute box is very horrible because I feel that is not clean and smooth, its border is destroyed! I'm so nervous about it!

    This symptom is covered with the guarantee of Apple? Please help me!

    This looks like the case damage rubs against the edges of the phone.

    I doubt that this sort of damage would be covered, but you can always take it to an Apple store if you have one near you and find out.

  • Satellite L300-1BV case in bulk and seems like loose hard drive

    Hi, not a huge problem but just thought I'd get extracted. Case seems to be its loose where I left my arm on the black band near the mouse and power buttons, like when I rest my arm when you type it clicks and squeaks on the right side and getting on my nerves. (Don't ask).

    Another thing, the hard drive seems to loose, since that is also clicking on. I tried to tighten all the screws available as I can see, but nothing has changed or helped... everyone knows a similar problem? Don't want to send it so that can be helped because it will take a while to come back and I need to use the laptop every day for work.

    Thanks in advance.

    Hello.

    It seems you have weird problems with your laptop. I think you did some updates to the laptop and now you have these problems. The Panel of the black band, if you see a space between the mouse control panel and the microphone at the entrance, you have left a black thing (square shaped) somewhere before you put everything together. This black thing is used to cover the wireless switch. Also, if it could not solve the problem, it is normal if the gap occurs after a bad upgrade.

    Yoru driver drive HARD, there are several reasons for this. * I propose to restore the laptop to the service to check * I hope you didn't break the security bulletin or they will charge you a bit.

    Kind regards.

  • Equium A200-1VO does not start and makes weird noises

    My Toshiba Equium A200-1VO don't load on Windows entirely, which means I can't use it. When you turn everything goes well until the Welcome screen in Windows Vista. From there, it starts to get weird creaking and it beeps from time to time. It won't start here and these sounds do not stop.

    Help please

    Hello

    Is it possible to know where the noise comes from?
    As suggested by above user, it could be a HARD disk, but in this case, it would mean that HARD drive failures and he could die in the next time

    You said it s begin properly until appears the window Vista would be
    So maybe it s only a problem of software but I m still don t know what part of the software would create such sound however, I think that if would not be bad to reinstall the operating system in order to check the notebook with factory settings.

    If this strange question would persist or if you would not be able to reinstall the operating system using the recovery disc then a hardware problem could cause this strange things and I think it means that you will need to contact the ASP in your country for a material test

  • Satellite A210-127: display colors began to be weird

    Hi friends

    Well I installed win xp pro sp2 on my laptop. I managed to find all the drivers for xp.
    A week ago I noticed that while my laptop worked for about 2 hours or more, the display colors began to be weird.
    A shade of blue covers parts of the screen and in some cases, I see a few icons or a part of the pictures (like desktop) to tremble.

    As I have some experience of it I tried to close the cover (screen) and then to open it to know if the sceer has a problem, but no, the problem was still there.
    I restarted the laptop and everything is ok. AFEW more hours of work and the problem again apeard. I tried a bios update and reinstalled the display drivers.

    The problem was not resolved. So I disconnected all usb devices and battery and rebooted.
    After a few hours, the same problem has happened so I looked in the case where the viewer and that there was no error. I am convinced that I have to blame the display drivers, but I'd like to hear opinions.
    My graphics card is ati mobility radeon 2600

    Thank you

    Hello

    I don t think it is a software problem and therefore in my opinion the update of the graphics driver is simply not necessary.
    For me, it looks like a hardware problem. Probably the fault of operation of the FL-ups!

    I recommend to connect the external monitor to the laptop while the shade of blue is displayed on the internal screen for laptop!
    If you see the same thing on the external monitor that maybe the GPU causing this strange issue.
    But if the problem isn't on the outside monitor then either display laptops or the FL inverter causes this problem.

    In both cases it s advisable to contact the service provider allowed in your country, because the part which malfunctions must be replaced.
    I think that the guarantee is valid and this is why everything should be done for free!

    Good luck

Maybe you are looking for

  • computer problem level pnp

    Internet DEVICE level pnpRappelez - you - this is a public forum so never post private information such as email or phone numbers! Ideas: Problems with the programs Error messages Recent changes to your computer What you have already tried to solve t

  • BlackBerry smartphones download failure.

    I tried to download the new version of Twitter, but my BB 9800 COB do not download. It is the third day. There is a constant massage on the screen saying, 'Please wait' this massage even blocked access to the BB world. Every time that you open the BB

  • $ORACLE_HOME, echo $ORACLE_SID returns null / nothing shows

    HelloI am new to oracle and want to install oracle database 11 g 2 on linux oracle 7.Now, I try to define oracle environment variables that I found on youtube, that looks at these:==============================================================[oracle@

  • How to remove a file that is saved in Adobe Acrobat Reader ms

    How to remove a file that is saved in Adobe Acrobat Reader ms

  • Script to replace random symbols

    Hello!I'm looking for a script that will allow you to select certain objects or symbols in your file I and then select some of your symbols in the symbol library in your file and replace them at random objects/symbols of origin with the selected symb