County formula does not work

Hi all

I want to do the following expression in OBIEE:

SELECT COUNT (COL1) FROM TABLE1 WHERE COL2 = 'ABC' / SELECT COUNT (COL1) FROM TABLE1

Is - it possible to analysis where I need to get a value of division of two different County expression; a filter and one without filter.

I use OBIEE 11.1.1.7

Help, please. Its urgency.

Thank you

Clercq Mukherjee

Do not raise any question about possible or impossible! do it, that's all.

using analysis

Pull col1 and then use below exp.

(sum (case when COL2 = 'ABC' then end)) count (col1) other 0 1

~ http://cool-bi.com

Tags: Business Intelligence

Similar Questions

  • Formulas does not work in drive

    I have a simple formula I created in Acrobat that adds an entry for user 3 cells and displays the result in even a 4th cell. The formula does not work once I open the PDF in Reader. I used "extend features in Adobe Reader ' but this does not seem to make this function of formulas in Reader. Any suggestions?

    Is JavaScript and/or automatic calculations enabled for the drive? If Yes, can you put the documents online somewhere (for example, Acrobat.com) so we can check? If this isn't the case, I would be interested to look at if you are free to send an email. My address is in my profile.

  • formula does not work because some time divide by 0

    Hello;
    I create a form and in the text field, I put this forumla
    (: BLK1.) A +: BLK1. (B) /(:BLK1.) Z * 100);

    but the topic of Z is empty or no i get the error message because it is predefined by zero.

    can you help me

    Hello

    You can try,

    (1) change the formula for

    (NVL(:BLK1.A, 0) + NVL(:BLK1.B, 0)) / (NVL(:BLK1.Z, 1) * 100);
    

    (2) create a function in the form and call this function in the property palette and in writing form of function.

    IF NVL(:BLK1.Z, 0) = 0 THEN
           RETURN 0;
      ELSE
           RETURN (NVL(:BLK1.A, 0) + NVL(:BLK1.B, 0)) / (NVL(:BLK1.Z, 0) * 100);
      END IF;
    

    I hope this helps.

    Kind regards

    Manu.

  • Formula 10g to Upload data in an oracle table flat file does not work.

    My files data flat txt looks like this_

    _ "recgis.txt" _


    4300,69, A22110043, TC, 1/17/2009,801100107010100,90,210,2211,0,0,0,0,0,0,0,0,1/17/2009 13:13:46, 131346, 20082009, 1, 1, 0
    4300,69, A22110044, TC, 1/17/2009,801100107010100,60,140,2211,0,0,0,0,0,0,0,0,1/17/2009 13:15:22, 20082009 131522, 0, 1, 0
    4300,69, A22110045, TC, 1/17/2009,801100107010100,210,490,2211,0,0,0,0,0,0,0,0,1/17/2009 13:17:56, 131756, 20082009, 3, 2, 0
    4300,69, A22110046, TC, 1/17/2009,801100107010100,270,630,2211,0,0,0,0,0,0,0,0,1/17/2009 13:19:58, 131958 20082009, 9, 0, 0
    4300,05, A22250013, TC, 1/17/2009,801100107010100,210,490,2225,0,0,0,0,0,0,0,0,1/17/2009 13:21:42, 132142, 20082009, 3, 0, 1
    4300,69, A22110047, TC, 1/17/2009,801100107010100,390,910,2211,0,0,0,0,0,0,0,0,1/17/2009 13:23:31, 132331, 20082009, 1, 6, 0


    _ my control file

    _ "Loader.CTL" _

    load data
    INFILE ' c:\data\REC_GIS. TXT'
    in the REC_GISTEMP table
    fields ended by ',' optionally surrounded "" "
    (TREA_CODE, CHAL_NO, CHAL_DATE, V_NO AND OP_CODE DATE, DEPNAME, ADDRESS, H_CODE, INS_AMT, SAV_AMT,
    SRC_MJCD, MAN_30, MAN_60, MAN_120, MAN_10, MAN_20, MAN_40, MAN_80, MAN_15, ENT_DATE, ENT_TIME, FIN_YEAR, MAN_100, MAN_200, MAN_400)



    * I have created a form and wrote a bellow pl/sql trigger 'WHEN-CLICK' on the download button *.

    DECLARE
    ldrcmd varchar (200);
    BEGIN
    filename: =: BLOCK3. FILEPATH; text box that contains the file path

    ldrcmd: = 'sqlldr control = E:\NIC\UPSEGID\loader.ctl INS/password@orcl';
    Host (ldrcmd);
    END;

    * but its does not work please someone help me what I do wrong... *.

    Published by: 839880 on February 25, 2011 10:26

    Published by: 839880 on February 25, 2011 10:28

    ldrcmd: = 'sqlldr control = log REC_GIS.ctl = upldlog.log INS/password@orcl';

    As stated above, your order is most likely not going to work because of lack of full paths.

  • Excel formula does not (ESTNUM, PRODUITMAT)

    Hello, I used an excel file that contains formulas which does not work on the numbers and I'm trying to find a way to make it work.

    It's nice here:

    = IF (ISNUMBER (ROUND (MMULT (E1, G1), 2)), ROUND (MMULT (E1 + F1, G1), 2),"" ")


    some research I found a few messages earlier showing that

    ISNUMBER


    can be done with something like this

    (IFERROR (GOLD (ISEVEN (E1), ISODD (E1)), FALSE)


    and as I understand it, in my case, I could probably use PRODUCT instead of PRODUITMAT


    Another example, I found in old messages, so theoretically I have guessed that it would something like that

    = IF ((IFERROR (GOLD (ISEVEN (E1), ISODD (E1)), FALSE)) (ROUND (PRODUCT (E1, G1), 2)), ROUND (PRODUCT (E1 + F1, G1), 2),"" ")


    But it did not work. Advice will be useful

    Here is an example of my spreadsheet:


    E1                              F1                              G1                              H1                         I1

    PRICE TAX % TAX TOTAL SHIPPING AMOUNT

    55                              5                              7%                         (formula here)

    Thank you

    How about something like this?

    = IF (OR (E = "", F =""),"",(E+F) * G ")

    SG

  • Satellite A200 - 19L: no sound after hibernation & CD/DVD drive does not work

    First of all, my laptop computer became very slow loading vista after formula 1 week to buy it.

    Second, sometimes when I put the mode 'sleep' a revival of the laptop, there is no sound and a red circle appears over the speaker icon in the bar of tasks, and when I go into control panel > Sound, he tells me that no. his drive was installed and when restarting the laptop the problem resolved?

    Thirdly, after the formula of the week 3 buy the computer also dvd - cd player has the same problem, like the sound and when you open my computer that NO cd\dvd drive icon and when I put a cd or dvd, it does not work or run and it happens all the time, even if the laptop restarts.

    Since then im able to watch movies or work.

    I'm lost and I don't know what to do!
    (Sorry for my bad English, but I hope you understand the problems)

    Hey Osama

    I think I can help you. The questions that appear on your laptop are not serious and the only one associated with software or registry.

    Regarding your noise problem:
    Please check this Microsoft document
    http://support.Microsoft.com/kb/929685/en-us
    or
    http://support.Microsoft.com/kb/937077/

    the MS update must be downloaded and installed ;)

    Regarding the missing CD/DVD drive;
    I think you should try to remove the drive from Device Manager and reboot the laptop. Then the operating system should recognize the STRANGE again.
    Secondly you should access the registry editor and should remove the upper filter and bring back the key filter
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Contro l\Class\ {4D36E965-E325-11CE-BFC1-08002BE10318}

    Recommend checking out:
    http://support.Microsoft.com/kb/270008/en-us

    best regards and I hope that I can help you

  • Equium A60-155 does not work on AC

    Laptop works on fully charged battery, but not on sector. Will be not charged battery.

    Seems the ac power input does not work. I have two identical laptops.

    Ideas please

    Zak

    Hi Zak

    I really don't know what you expect now. Maybe some magic formula for solving problems. If the AC power input is defective, it must be repaired. All that s!

    Can you do it alone?

  • My Windows Live Hotmail does not work. Nothing happens when I select an e-mail message to open it.

    My hotmail does not work. Nothing happens when I try to open a new one or to read the emails. Nothing happens when I try to open one on tabs on the left as the Envoy or undesirable. I know for a fact that this is not my computer because I tried it on my own computer, but also a computer at school. It is not my network because I tried at home (in PG County) and school (in Baltimore). It is not my safety, because obviously, the security of my computer and the computers of the University are different. This problem started all of a sudden. I hope I can fix this quickly because this is my professional email and if I end up not being able to read emails from prospective employers, I will be very angry.

    original title: problem with hotmail.

    Hotmail is part of Windows Live takes Center, not here in the Forums answers MS.

    Please repost to Hotmail Forums - son of Hotmail section:

    http://windowslivehelp.com/forums.aspx?ProductID=1

  • Windows Update does not work: WARNING: ECP: could not validate the downloaded cab file digest

    2014-01-23 09:52:03:516 808 d84 PT + ServiceId = {9482F4B4-E343-43B6-B170-9A65BC822C77}, URL of the server = https://fe1.update.microsoft.com/v6/ClientWebService/client.asmx
    2014-01-23 09:52:06:031 808 d84 PT WARNING: ECP: could not validate the downloaded cab file digest from http://download.windowsupdate.com/msdownload/update/common/2013/07/8488969_0c6ef7063e4597732f47750e8c583f83cb7f728e.cab with error 0 x 80091007
    2014-01-23 09:52:06:031 808 d84 PT WARNING: ECP: this trip contained some optimized updates failed. New number of update = 34, former County = 60
    2014-01-23 09:52:06:656 808 d84 PT WARNING: synchronization of updates: 0x8024402f
    2014-01-23 09:52:06:656 808 d84 PT WARNING: SyncServerUpdatesInternal failed: 0x8024402f
    2014-01-23 09:52:06:656 808 d84 Agent * WARNING: could not synchronize, error = 0x8024402F
    2014-01-23 09:52:06:656 808 d84 Agent * WARNING: exit code = 0x8024402F
    2014-01-23 09:52:06:656 808 d84 Agent *.
    2014-01-23 09:52:06:656 808 d84 Agent * END * Agent: finding updates [CallerId = Device Driver recovery customer] of
    2014-01-23 09:52:06:656 808 d84 Agent *.
    2014-01-23 09:52:06:656 808 d84 Agent WARNING: customer WU didn't search for the update with error 0x8024402f
    2014-01-23 09:52:06:656 808 125 c COMAPI > COMAPI - RECOVERY -: search [ClientId = Device Driver recovery customer]
    2014 01-23 09:52:06:656 125 808 c COMAPI - updates found = 0
    2014-01-23 09:52:06:656 808 125 c COMAPI - WARNING: exit code = 0x00000000, result code = 0x8024402F
    2014-01-23 09:52:06:656 808 125 C COMAPI -.
    2014-01-23 09:52:06:656 808 125 c COMAPI - END--COMAPI: search [ClientId = Device Driver recovery customer]
    2014-01-23 09:52:06:656 808 125 C COMAPI -.
    2014-01-23 09:52:06:656 808 1474 COMAPI WARNING: operation failed because the previous error, hr = 8024402F
    2014-01-23 808 1474 COMAPI FATALE 09:52:06:656: impossible search asynchronous complete. (hr = 8024402F)

    The file is:
    http://download.windowsupdate.com/msdownload/update/common/2013/07/8488969_0c6ef7063e4597732f47750e8c583f83cb7f728e.cab

    Incorrect?

    I tried several suggestions to fix Windows Update, none work. I have reset the PC to factory settings and still does not work. A daughter of MS tech support spent a whole day trying to solve this remote, not a not fix it.

    Then... I'm starting to think this isn't a problem on my PC, I'm good?

    Hey Rolo,

    Error 0x8024402F means WU_E_PT_ECP_SUCCEEDED_WITH_ERRORS. These errors can be caused by one of the following problems:

    • Programs or processes that interfere with Internet communications
    • Problems of computer resources
    • Strong Internet activity
    • Recoverable database errors

    Perform the steps from the link below and see if it helps.

    http://support.Microsoft.com/kb/836941/en-us

    Answer please if you have any questions.

  • BEFORE the UPDATE of relaxation with time stamp does not work as expected

    We have a scenario where I check update operations on a table.

    I created a before update TRIGGER, so that every time he goes an update on the main table statement, one before the image of the lines is captured in the table of audit with timestamp.

    Since it is before updating, ideally the audit table timestamp (TRG_INS_TMST) should be less main table timestamp (IBMSNAP_LOGMARKER) VALUE, I mean TRIGGER should happen before the update.

    (I could understand in a way that the UPDATE statement is formulated with SYSTIMESTAMP earlier before the TRIGGER is evaluated and so UPDATE is to have a time stamp prior to TRIGGER, but this isn't what we wanted. We want PRIOR update)

    'Table' IBM_SNAPOPERATION IBM_SNAPLOGMARKER            
    ---- ----------------- -------------------------------
    T1   U                 13-OCT-15 03.07.01.775236 AM   <<---------- This is the main table, This should have the latest timestamp
    T2   I                 13-OCT-15 03.07.01.775953 AM
    

    Here is my test case.

    DELETE FROM TEST_TRIGGER_1;
    
    DELETE FROM TEST_TRIGGER_2;
    
    SELECT 'T1', ibm_snapoperation, ibm_snaplogmarker FROM TEST_TRIGGER_1
    UNION
    SELECT 'T2', ibm_snapoperation, TRG_INS_TMST FROM TEST_TRIGGER_2;
    
    INSERT INTO TEST_TRIGGER_1 (ID,ibm_snapoperation, ibm_snaplogmarker)
         VALUES (1, 'I', SYSTIMESTAMP);
    
    COMMIT;
    
    SELECT 'T1', ibm_snapoperation, ibm_snaplogmarker FROM TEST_TRIGGER_1
    UNION
    SELECT 'T2', ibm_snapoperation, TRG_INS_TMST FROM TEST_TRIGGER_2;
    
    UPDATE TEST_TRIGGER_1
       SET IBM_SNAPOPERATION = 'U', ibm_snaplogmarker = SYSTIMESTAMP;
    
    COMMIT;
    
    SELECT 'T1', ibm_snapoperation, ibm_snaplogmarker FROM TEST_TRIGGER_1
    UNION
    SELECT 'T2', ibm_snapoperation, TRG_INS_TMST FROM TEST_TRIGGER_2;
    

    Def trigger:

    CREATE OR REPLACE TRIGGER etl_dbo.TEST_TRIGGER_1_TRG BEFORE UPDATE OF IBM_SNAPOPERATION
    ON TEST_TRIGGER_1 REFERENCING OLD AS OLD NEW AS NEW
    FOR EACH ROW
    WHEN (
    NEW.IBM_SNAPOPERATION= 'U'
          )
    DECLARE
    V_SQLCODE  VARCHAR2(3000);
    --PRAGMA AUTONOMOUS_TRANSACTION;
    BEGIN
    INSERT INTO etl_dbo.TEST_TRIGGER_2
    (ID,
    IBM_SNAPOPERATION,
    IBM_SNAPLOGMARKER,
    TRG_INS_TMST
    )
    VALUES (:OLD.ID,:OLD.IBM_SNAPOPERATION,:OLD.IBM_SNAPLOGMARKER,SYSTIMESTAMP)
    ;
    --COMMIT;
    END;
    /
    

    Output is something like this

    1 row deleted.
    1 row deleted.
    no rows selected.
    1 row created.
    Commit complete.
    
    'T1' IBM_SNAPOPERATION IBM_SNAPLOGMARKER            
    ---- ----------------- -------------------------------
    T1   I                 13-OCT-15 03.07.00.927546 AM 
    1 row selected.
    1 row updated.
    Commit complete.
    
    'T1' IBM_SNAPOPERATION IBM_SNAPLOGMARKER            
    ---- ----------------- -------------------------------
    T1   U                 13-OCT-15 03.07.01.775236 AM   <<---------- This is the main table, This should have the latest timestamp
    T2   I                 13-OCT-15 03.07.01.775953 AM 
    
    2 rows selected.
    

    But for some reason, even after the creation of the 'AFTER' trigger for update, it works as expected. Sense - the main table is not having the last timestamp given

    It's OKAY - I told you in my reply earlier. Reread my answer.

    could understand somehow that the UPDATE statement is made with earlier

    SYSTIMESTAMP until the TRIGGER is assessed and updated so is to have

    time stamp prior to the trigger, but this isn't what we wanted. We want to

    BEFORE the update)

    As I told you before that your UPDATE statement occurs BEFORE the trigger is activated.

    Despite what the other speakers have said, it makes NO DIFFERENCE if you use a BEFORE UPDATE or an AFTER UPDATE trigger. Your UPDATE statement runs ALWAYS BEFORE the trigger.

    HE has TO - it's your update processing statement that causes the trigger to fire.

    Your update statement includes SYSTIMESTAMP. If during the processing of your return to update the value of SYSTIMESTAMP "at this exact time" is captured.

    Then your trigger is activated and starts to run. ANY reference to SYSTIMESTAMP that you use in your trigger cannot be earlier than the value of until the trigger was executed. It's IMPOSSIBLE.

    The trigger can use the SAME value by referencing: NEW and the column name you store the value. Or the trigger can get its own value that your code is doing.

    But the SYSTIMESTAMP value in the trigger will NEVER earlier than the value in your query.

    And none of these values can actually be used to tell when the changes are really ENGAGED since the trigger does not work and CAN NOT, to know when, or if, a validation occurs.

    Reread my first answer - he explains all this.

  • Payment by paypal does not work =. Canada

    I can't pay with Paypal to purchace a license!

    I'm at the Canada and I credit (in $CAN and $US on my paypal account)

    On the payment form page keep looping to previous when I validate the payment of paypal.

    I called 1800 number:

    (- First call [SALES] the second Manager respondent) finally told me they can't do anything because I already place an order. Even if this does not work and I can not succesfuky pay and use it. Then they told me to call again choose the French service customer. They could ' t directly transfer me or give me the succession of the right wheel.

    -Second call [SAV] the second Manager respondent) finally told me that they cannot do anything and told me I should get a call within 24 to 36 hours (really?) while I would get a call within 3 hours = > I have no call back.

    - And of course the impossible ENEV to extend the trial version until YOUR payment problem is solve.

    -All I really did get from the call centre are the formulas of repetade: "you can please wait 2-3 minutes", "thank you for your patience", "I'm sory I can't do anything."

    I was never able to access section CAT (not the forum).

    And onec again, I'm a loop in the FAQ, the formss and the contact option but can not get the place to throw the CAT...

    So, if anyone can help

    I would like to

    1 succesfully PAY with PAYPAL

    or

    2. get the CHAT section to start a conversation with a human oriented solution Adobe

    Any help would be appreciated

    Hi Marc,

    Please contact support by calling/chat for billing and payment research related.

    Contact the customer service

    * Be sure to stay connected with your Adobe ID before accessing the link above *.

    Kind regards

    Sheena

  • Safari does not work after installing macOS Sierra

    Safari and apple store does not work after installing macOS Sierra

    Alas, my crystal ball is in the shop for cleaning, so you will need to provide more details on what "doesn't work" and above all error messages. First of all, let's start the App Store. Provide as much information as possible for those of us who do not sit on your shoulder.

  • My iPad Apple 3rd generation wifi + his cell phone does not work

    MY 3rd generation Apple iPad, wifi + cell

    model number MD408LL/a

    Serial number DM * VGL

    THE SOUND DOES NOT WORK

    < personal information under the direction of the host >

    All sounds, or simply notification and sounds apps (for example do music and videos app still have sound)? If notifications and apps you have notifications on mute: on the iPad side switch - Apple Support ? If the sounds in all applications which have tried for example soft-reset/reboot of the iPad, insert/remove the headphones?

  • After recent, iPhone, 6, update, Windows, Explorer, does not work, see, iPhone

    I installed the latest update required for my iphone ios 6 a few days ago, and now when I try to download pictures from my iphone to my PC (via USB connection), the PC does not see the iphone.   iTunes sees it yet, but windows Explorer does not work.  It seems that some setting has been broken through the update of ios.  A way to solve this problem?

    Restart the computer and the iPhone. Unlock the iPhone before connecting it to the computer. Any change?

    TT2

  • Open the link behind Mail does not work

    Sierra using my link opened behind Mail does not work. The link opens on the top of the window.

    This option works for me in Sierra... is working for you with your previous version of the OS?

Maybe you are looking for

  • How to reset Windows 7 password with USB

    The first thing we often do when we * password lost Windows 7 * is to ask an it expert for help. However, it is only a moment for you * forget password Windows 7 * and it may take you several days to regain access to your system. Later, don't worry a

  • the home screen problem

    Not sure these issues at first but I noticed open space on my different screens where I can't place a shortcut to an application or widget. What is happening on all 5 panels, especially on the Panel to the left of the homescreen (by sliding to the ri

  • Disable function keys will not be

    I have a laptop windows 8.1, and when I go into the menu of the BIOS and disable keys action, it does not work. I tried to save her and stop the PC several times but it just won't work. All solutions?

  • Problem with update of Windows 7.

    After my computer run an update to Windows 7 it's a reboot without displaying message me. How can I avoid this and only to restart the computer when I'm ready?  Thank you.

  • Now, I am unable to use the Terminal Server service to connect to one of my Windows XP machines.

    Hello I used the Terminal Server service to connect to a remote Windows XP/Win 7 XP machine machines. At the beginning of this, it was beautiful, but after some time, say 1/2 hours, this remote XP computer has become inaccessible and even I couldn't