EXCEL CALCULATION IN CALCULATED COLUMN PROBLEM

Hello,
Please someone kindly help out with this calculation problem. I have an Excel file with this calculation:
=IF(E10<D10,E10/D10,E10/E10)
I am trying to translate this into a calculated column in a list and I can't seem to succeed with it. Can anyone try this out and be my hero.
You've only got ONE LIFE; HELP as many people as you can, and ENJOY IT while it lasts. People are in the centre of our happiness, even God understands that.

Hello Hemendra,
Voila! here it is finally.
=IF([SCORE-FM1]/[TARGET-FM1]*100>=100,"100",[SCORE-FM1]/[TARGET-FM1]*100)
Frankly I couldn't believe it! It does fulfill my requirement. Thanks a lot for pointing in the right direction.
Let me explain what this does.
whenever the target is higher than the score (and inversely whenever the score is lower than the target)
(still saying one and the same thing), we will always get a figure less than 100% (say anything between 0% - 99%) and this perfectly OK. That is what is happening in the above image where 89% and 33% is %Achieved.
Also, whenever the score is the same with the target, the result will be 100%, that is what happened
to the last calculation having "3" and "3".
But whenever the score is higher than the target, the result will be over 100% (say 120%, 180%, 350%,
etc). I want it such that whenever this is the case, the logic should trim it down to 100%. This is what the below calculation does:
=IF([SCORE-FM1]/[TARGET-FM1]*100>=100,"100",[SCORE-FM1]/[TARGET-FM1]*100)
Thanks Hemendra for being online. And for Sylvester Oriabor and Chinenye Nwanna who are offline who helped to drive this to conclusion, especially Chinenye Nwanna. Thank you all.
You've only got ONE LIFE; HELP as many people as you can, and ENJOY IT while it lasts. People are in the centre of our happiness, even God understands that.

Similar Messages

  • Different calculation on each column in table in obiee 11g report??

    Hi ,
    I have to display values in a table for measures in obiee 11g report which should hold different calculation on each column. For ex:
    Result 1:
    Flag  Display   Transaction  Amount
      C      'A'                 2              3
      C      'B'                 3               0
           SubTotal1            5             3
    Result 2:
    Flag  Display   Transaction  Amount
      H      'C'                 2              11
      H      'D'                  0              0
           SubTotal2          2             11
    Result 3:
    Flag  Display   Transaction  Amount
      H      'C'                 1              0
      H      'D'                  1            0
           SubTotal3          2            0
    Final Result:(Transaction shd hold :-subtotal1-subtal2 , Amount should hold:-subtotal1-subtal2+subtota3)
    Flag   Display               Transaction         Amount
    C    'total tran(1-2)              3                     8
           Total Amnt(1-2+3)'     
    Please help me how can i achieve this ... ??? I am new to OBIEE 11g.
    Thanks,
    Pavi

    There are a few things I cannot understand; I'm assuming Transaction and Amount are fact columns. Then how do they have different values for the same values of Flag and Display ??
    Anyway, sub total can be achieved by going to edit view for the table and from columns and measures area under the Layout pane click on the summation icon and select After.  This will automatically display a grand total value at the bottom of each fact column.
    Now, to get the final result, say Total Transaction you can add a dummy column and edit its formula.
         Total Transaction = trans_subtotal1 - trans_subtotal2 and
         Total Amount = amt_subtotal1 - amt_subtotal2 + amt_subtotal3
         Now if we could say that trans_subtotal1 is the total of transaction value when Flag = 'C' or something like that then you can get this value of subtotal1 by using the formula FILTER(SUM("Subject Area"."Folder".Transaction Column") USING (DESCRIPTOR_IDOF("Subject Area"."Folder"."Flag column") = 'C')).  Similarly we can obtain subtotal2 and subtract them to get the total transaction value.  But I am sure if we can do this because for the same values of Flag and Display, Transaction has different values.  But by using the above formula, the values we obtain for subtotals 2 and 3 will be the same.  So calculating Total Amount would be a problem.
    The above formula is obtained by going to edit formula and selecting the filter option at the bottom of the edit dialog box.
    Hope I made my point clear

  • Calculation on two columns in pivot table

    Hello all,
    I have a view:
    Dept Year Amount
    Accounting $500 2010
    Accounting $700 2011
    Engineering $100 2010
    Engineering $600 2011
    and etc
    pivot table:(data displayed side by side)
    Dept: 2010 2011
    Accounting $500 $700
    Engineering $100 $600
    Is there a way in pivot table to create additional column and do a calculation on that column? New column called 'Change' (actual calculation amount of 2010 minus amount of 2011 per each department). I see the feature which allows to duplicate the columns in pivot table. But this is it... no additional calculations.
    Thank you in advance,
    Sonya

    Deepak,
    My "YEAR_NO' is already in the column area. Once I created 'calculated column' and entered formula '2011'-'2010' I got what I needed.
    Thank you very much for the solution.
    Sonya
    In my view I also have column called EXPENSE. When, I added the 'calculated column' to 'YEAR_NO' with formula '2011'-'2010'. It created two calculated columns 1) after the EXPENSES and the other one after YEAR_NO. Is there a way to be specify to display the DIFFERENCE only once after the YEAR_NO??
    Edited by: user8461308 on Dec 20, 2011 7:44 AM

  • Last year sales calculation in calculated column

    Hi everybody!
    Please help me to solve issue with last year sales calculation in calculated column. I have 'Fact' table with sales for every period in it and related table 'Time' with 1, 2, 3 'PeriodID' column for string MAT 2011, MAT 2012, MAT 2013.
    I know the solution for measure:
    =CALCULATE ( SUM(Fact[Sales]); FILTER (ALL ('Time'); 'Time'[PeriodID] = MAX(Time[PeriodID]) - 1))
    But for the purpose of my analysis I need to make a calculated column. What I want to see looks like this table:
    Product
    Period
    Sales
    SalesLY
    A
    MAT 2013
    17
    10
    B
    MAT 2013
    20
    23
    C
    MAT 2013
    45
    33
    D
    MAT 2013
    13
    16
    A
    MAT 2012
    10
    8
    B
    MAT 2012
    23
    31
    C
    MAT 2012
    33
    5
    D
    MAT 2012
    16
    22
    A
    MAT 2011
    8
    0
    B
    MAT 2011
    31
    0
    C
    MAT 2011
    5
    0
    D
    MAT 2011
    22
    0

    Thanks for the idea!
    It's an option. I slightly modified expression to make it more generic:
    =CALCULATE
          SUM (Fact[Sales]);
          FILTER (
                        Fact; Fact[Product] = EARLIER (Fact[Product]) && Fact[PeriodID] = (EARLIER(Fact[PeriodID]) -1)
    Where Fact[PeriodID] is calculated column with '=RELATED (Time[PeriodID])' formula. To my opinion this is more universal approach.
    But it has the cons. EARLIER is memory demanded function. In case of 32-bit OS or numerous nested EARLIER error might occur.
    Is there any alternative solution?

  • Excel  column problem in ECC 6.0

    Hi Experts,
    In the excel, data of one column is spliting into four columns.
    My code is like this,
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD
      EXPORTING
        FILENAME                  = lv_wsfile
        FILETYPE                  = 'ASC'
      CHANGING
        DATA_TAB                  = ifinal[]
    EXCEPTIONS
          OTHERS                = 1.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>EXECUTE
            EXPORTING
              DOCUMENT               = lv_wsfile
              OPERATION              = 'OPEN'
            EXCEPTIONS
              CNTL_ERROR             = 1
              ERROR_NO_GUI           = 2
              BAD_PARAMETER          = 3
              FILE_NOT_FOUND         = 4
              PATH_NOT_FOUND         = 5
              FILE_EXTENSION_UNKNOWN = 6
              ERROR_EXECUTE_FAILED   = 7
              SYNCHRONOUS_FAILED     = 8
              NOT_SUPPORTED_BY_GUI   = 9
              others                 = 10.
    Any help,
    Thanks In Advance,
    Harsha.

    Hi Harsha,
    Use the function module SAP_CONVERT_TO_XLS_FORMAT to download the internal table to an excel file.
      DATA: t100_lines TYPE STANDARD TABLE OF t001 WITH DEFAULT KEY.
    PARAMETERS: p_file LIKE rlgrap-filename DEFAULT 'c:\tmp\test.xls'.
    SELECT * FROM t001
      INTO TABLE t100_lines.
    CALL FUNCTION 'SAP_CONVERT_TO_XLS_FORMAT'
      EXPORTING
        i_filename     = p_file
      TABLES
        i_tab_sap_data = t100_lines.
    Regards,
    Venkat.O

  • SOLVED !!! Import Excel Null column problem

    Hi all,
    Import data from Excel is fine as long as there's is no column in target table that
    is Varchar2(1) and Null allowable.
    If there's the above type, the DML for the insert always replace the null column with
    'NULL' resulting in SQL Error:ORA-12899: value too large for column (actual: 4, maximum: 1).
    Had check preferences setup and could not find option relating to this.
    Btw, am using Verion 1.1.1.25, on Windows XP, 10GR2 database also on same PC.
    Had use the Export Data to export above table's data and
    had checked the XLS file in Excel and the null column is indeed display as blank and use the Import Data-Excel, to import same XLS file back to database.
    Pls advise and thanks in advance.
    Zack [ /pre]
    Message was edited by:
    Zack.L
    SOLVED !!! Using Version 1.1.3 Build Main-27.66
    A MILLION THANKS !!!
    Best Regards
    Zack
    Message was edited by:
    Zack.L

    Hi Barry,
       That's GREAT NEWS !!!.
       Yes, in the Excel sheet, the column is null and when
    doing import, the SQL command use 'NULL' instead of NULL
    resulting in the string 'NULL' to be inserted.
       So, i just update current release 1.1.2.25 to 1.1.2.25.79 ?
    Thanks for the great work.
    Zack
    Message was edited by:
            Zack.L                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • What is excel file's maximum column number limit?

    Hello all,
    I am writing a long csv string within one line to an excel file. When I open the generated excel file, it reports "File not loaded completely". And it only generated patial file.
    I am thinking maybe excel has maximum column number limit, and my excel file required more than 312 columns, that's why it caused this problem.
    Does any one know the answer?
    Thanks in advance !
    Rachel

    Ok, I already solved this problem, excel has a 256 column limit.
    Thanks,
    Rachel

  • Excel Upload with Hidden Column

    Hi Gurus-
    Can you upload Excel file with hidden column and get the function to read values in hidden column? If yes, could you please guide me how?
    I am using ALSM_EXCEL_TO_INTERNAL_TABLE
    Any help will be highly appreciated.
    Thanks in advance!

    Hi,
    Have a look at program RSDEMO01 (available in the controls examples of the workbench). It demonstrates an OLE connection to Excel.
    To know which excel objects, methods and properties to use it is a good idea to use the excel macro recorder - just do what you want your program to do and then translate the resulting VB code to ABAP OLE.
    For the import of the clipboard data you can use CL_GUI_FRONTEND_SERVICES=>CLIPBOARD_IMPORT. In the result table, iirc, there  is one line for each imported line and within the line the cell values are separated by tab. So there is some work left - it might be a good idea t import the data column by column.
    It has been some time when I did this for a former client of me - so unfortunately I do not have the code any more.
    Regards, Gerd Rother

  • In BI Publisher Report of excel output for one column is filled with spaces

    Hello,
    We have issue in BI Publisher report of excel output.
    In Excel output for one column few records are displaying as left alignment
    and few record are displaying as right alignment.
    If you are having any xml tag or any syntax for removing spaces for left side
    Please help on this issue.
    Thanks in Advance.
    Regards,
    Swaraj

    Please post the details of the application release, database version and OS along with BI Publisher.
    Is the issue with all reports or specific one(s) only?
    Do you have the patches in the following docs applied?
    Overview of Available Update Patches for Oracle BI Publisher Enterprise 10g [ID 797057.1]
    Overview of Available Update Patches for Oracle BI Publisher Enterprise 11g [ID 1276869.1]
    Overview of Available Patches for Oracle XML Publisher embedded in the Oracle E-Business Suite [ID 1138602.1]
    BI Publisher 10g RTF Template Changes Alignment Settings for Numbered Lists [ID 1418504.1]
    Thanks,
    Hussein

  • Exporting to Excel - How to control Column Heading?

    I'm working in SSRS 2012.  I have one tablix in the report body.  The tablix has both Row and Column Groups.
    When rendering in the web browser the report page breaks on a row group.  The Repeat Column Headers property is set to "True" so it shows the column headings from page to page.
    When rendering in Excel, I want one worksheet and not separate worksheets so the page break is disabled via the Page Break->Disabled property expression "=IIf(Globals!RenderFormat.Name="EXCELOPENXML", True, False)".
    This is all good but the Column Headings only show up once at the very top in the excel worksheet. 
    Is it possible to make the Column Headings repeat with each tablix data region as it is rendered vertically down the worksheet?
    OR is there a way from SSRS to set the Excel property "Rows to Repeat at top" to include Column Heading; by default the SSRS Report's header is repeated in Excel, but can the number of rows be changed to include the Column Heading?
    OR is there some other work around?
    Thanks for your help.
    Mark

    Thanks for the reply Wendy.
    You addressed my second question ... "is there a way from SSRS to set the Excel property "Rows to Repeat at top" to include Column Heading; by default the SSRS Report's header is repeated in Excel, but can it be changed to include the Column Heading? 
    Based on your response, the only way to freeze the column header in excel is to freeze or split panes AFTER export to excel.  well booo but I have to accept that I guess.
    My first question is what I really want to do, which is to physically repeat the Column Heading in the excel rendering. I included two pictures demonstrate what I want ...
    1) the standard SSRS report rendered in Excel ... Column Headings are shown once:
    Standard Export to Excel
                           Year
    Region
    Category
    2011
    2012
    2013
            Total
    East
    Sales
    10
    20
    30
    60
    Expenses
    8
    20
    10
    38
    Profit
    2
    0
    20
    22
    West
    Sales
    8
    16
    24
    48
    Expenses
    6
    16
    8
    30
    Profit
    2
    0
    16
    18
    2) what I'd like to see rendered in Excel ... which is to repeat the headers as you scroll down the page
    Desired Export to Excel
                          Year
    Region
    Category
    2011
    2012
    2013
            Total
    East
    Sales
    10
    20
    30
    60
    Expenses
    8
    20
    10
    38
    Profit
    2
    0
    20
    22
                           Year
    Region
    Category
    2011
    2012
    2013
            Total
    West
    Sales
    8
    16
    24
    48
    Expenses
    6
    16
    8
    30
    Profit
    2
    0
    16
    18
    Thanks again for your help,
    Mark

  • Excel switch row and column

    hi guys,
    I have a table need to change the table head from column to row. 
    please help

    Hi,
    I agree with Bernie’s suggestion, you can use Transpose in Paste Special.
    For detail information:
    http://office.microsoft.com/en-001/excel-help/switch-transpose-columns-and-rows-HP010224502.aspx
    Best regards,
    Greta Ge
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • I want to write a script or Automator workflow/app that emails a random shortcut of the day to three recipients. The source is from an Excel spreadsheet. One column is the shortcut, and the second column is the definition. Anyone have experience?

    I want to write a script or Automator workflow/app that automatically emails a random shortcut of the day to three recipients. The source is from an Excel spreadsheet. One column is the shortcut, and the second column is the definition. Anyone have similar experience and know that this would work?

    I have had a first stab at the script, below.  It uses a file to store the shortcuts and command [descriptions].  You should be able to see from the script annotations how to add a new one.  (I populated 1-4 with real data, but got lazy after that, so you have a few placeholders to work with first.
    As I have noted, once you are happy that you have all the data in the file, you can comment out part of the script for ongoing use.  (BTW, my reluctance to use Excel is that I don't currently have it installed and I don't want to offer wrong advice.  If you have Numbers, I do have that and could probably modify to work with a spreadsheet from there.  This might be especially useful if you have the data already sitting in Excel.)
    A few things came-up whilist I was writing the script:
    1.     Currently, all recipients will not only get the same tip at the same time, but they will see the names and email addresses of the others who receive them.  It is possible to modify this.
    2.     I have added a property gRandomCheck which keeps track of which shortcut has already been used (since the last time the script was compiled.  This will prevent the same tip being sent more than once.    When all tips have been sent once, the script will alert you and not send anything until reset.  It does not check on a per-addressee basis (which would be a refinement).  (If you add a new addressee at this stage, the whole process will start again, and you may not really want this to be the behaviour.)
    3.     The way that I have built the list, commandList, is deliberately cumbersome - it's for the sake of clarity.  If you prefer, you can construct the whole list as {{shortcut:"X", command:"X"}, {shortcut:"Y", command:"Y"}}
    Have a look - I am sure you will have questions!
    SCRIPT STARTS HERE  Paste the following lines (thru the end) into a new AppleScript Editor document and press RUN
    --The property gRandomCheck persists between runs and is used to stop sending the same hint twice.
    property gRandomCheck : {}
    --I am defining a file on the desktop.  It doesn't have to be in this location
    set theFolder to path to desktop
    set commandFile to (theFolder as text) & "CommandFile.csv"
    --(* Unless you need to change the file contents you do not need to write to it each time.  Remove the "--" on this line and before the asterisk about 18 lines below
    --Follow this format and enter as many records as you like on a new line - each with a unique name
    set record1 to {shortcut:"Z", command:"Undo"}
    set record2 to {shortcut:"R", command:"Record"}
    set record3 to {shortcut:"⇧R", command:"Record Toggle"}
    set record4 to {shortcut:"⌘.", command:"Discard Recording & Return to Last Play Position"}
    set record5 to {shortcut:"X", command:"x"}
    set record6 to {shortcut:"X", command:"x"}
    set record7 to {shortcut:"X", command:"x"}
    set record8 to {shortcut:"X", command:"x"}
    set record9 to {shortcut:"X", command:"x"}
    set record10 to {shortcut:"X", command:"x"}
    set record11 to {shortcut:"X", command:"x"}
    set record12 to {shortcut:"X", command:"x"}
    set record13 to {shortcut:"X", command:"x"}
    --Make sure you add the record name before randomCheck:
    set commandList to {record1, record2, record3, record4, record5, record6, record7, record8, record9, record10, record11, record12, record13}
    --This part writes the above records to the file each time.
    set fileRef to open for access commandFile with write permission
    set eof of fileRef to 0
    write commandList to fileRef starting at eof as list
    close access fileRef
    --remove "--" here to stop writing (see above)*)
    --This reads from the file
    set fileRef to open for access commandFile with write permission
    set commandList to read fileRef as list
    close access fileRef
    --Here's where the random record is chosen
    set selected to 0
    if (count of gRandomCheck) is not (count of commandList) then
              repeat
                        set selected to (random number from 1 to (count of commandList))
                        if selected is not in gRandomCheck then
                                  set gRandomCheck to gRandomCheck & selected
                                  exit repeat
                        end if
              end repeat
    else
              display dialog "You have sent all shortcuts to all recipients once.  Recompile to reset"
              return
    end if
    --This is setting-up the format of the mail contents
    set messageText to ("Shortcut: " & shortcut of record selected of commandList & return & "Command: " & command of record selected of commandList)
    tell application "Mail"
      --When you're ready to use, you probably will not want Mail popping to the front, so add "--" before activate
      activate
      --You can change the subject of the message here.  You can also set visible:true to visible:false when you are happy all is working OK
              set theMessage to (make new outgoing message with properties {visible:true, subject:"Today's Logic Pro Shortcut", content:messageText})
              tell theMessage
      --You can add new recipients here.  Just add a new line.  Modify the names and addresses here to real ones
                        make new to recipient with properties {name:"Fred Smith", address:"[email protected]"}
                        make new to recipient with properties {name:"John Smith", address:"[email protected]"}
      --When you are ready to start sending, remove the dashes before "send" below
      --send
              end tell
    end tell

  • Column Problems Between Explorer and Firefox

    First, I apologize if this is something that has been posted.
    The search function doesn't seem to be working, so I've been unable
    to check for previous posts on-point.
    I am having trouble with the columns in a table layout on a
    site I am designing. It's located at
    www.staggsmarketing.com/fleishell.html. The columns render properly
    in firefox, but not at all so in Explorer. If you view the Explorer
    version, the problem is quite obvious, so I won't explain further.
    If anyone can take a look at the site and suggest what I've
    done wrong, I would appreciate it. It was designed in CS3, and I've
    run all the standard dreamweaver tests (from the results tab) to no
    avail.
    Thanks in advance!

    > As to Walt's apparent suggestion that it's a total
    mistake to rely on DW
    > without extensive HTML/CSS knowledge, I hope nobody else
    is scared away
    > from DW
    > after reading it.
    Walt's suggestion was right on target. Using DW with no
    knowledge of HTML
    will always produce sub-optimal results.
    > I've designed maybe 4 to 5 dozen sites with DW and only
    a
    > scintilla of coding knowledge compared to many of the
    folks on these
    > forums,
    > and I really have only had to deal with three or four of
    Walt's blind
    > alleys
    > (including this one).
    You are in blind alleys you do not yet know about. This
    philosophy is
    short-changing you AND your paying customers.
    > Web design is a hobby for me
    And your output will always reflect this.
    > I recommend it to anyone with an
    > "HTML and CSS for Dummies" level of knowledge.
    I don't. It will be a continual frustration for them,
    especially if they
    want to rise above the 'hobby' level.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "testaggs" <[email protected]> wrote in
    message
    news:[email protected]...
    > Alan, thanks -- I took a look at the path you were
    talking about, and it's
    > a
    > leftover from something before I put the site online. I
    am able to remove
    > it
    > without issue. Still doesn't fix the column problem; I
    may take Walt's
    > advice
    > and start over on the columns if I don't get any
    more-helpful posts on the
    > problem, but I'll wait a few days to see what others
    might suggest. The
    > few
    > times I've run into real problems before in DW, it's
    always been a simple
    > fix
    > that was just outside my skillset. I'm hoping someone
    sees that here and
    > says,
    > "You idiot, it's the ???? tag."
    >
    > As to Walt's apparent suggestion that it's a total
    mistake to rely on DW
    > without extensive HTML/CSS knowledge, I hope nobody else
    is scared away
    > from DW
    > after reading it. I've designed maybe 4 to 5 dozen sites
    with DW and only
    > a
    > scintilla of coding knowledge compared to many of the
    folks on these
    > forums,
    > and I really have only had to deal with three or four of
    Walt's blind
    > alleys
    > (including this one). I agree it's a great tool for
    those with good
    > coding
    > knowledge; but even with only an introductory level of
    coding knowledge,
    > I've
    > found it to be a fantastic program. Would I be better if
    I had that
    > knowledge?
    > Yes, loads. Would I be able to design anything with my
    current coding
    > skills
    > but WITHOUT DW? Not even a one-line blank page (that's
    an exaggeration,
    > but
    > you see the point). Web design is a hobby for me, and DW
    has been a
    > great
    > vehicle to help me make it a useful one. I recommend it
    to anyone with an
    > "HTML and CSS for Dummies" level of knowledge.
    >

  • OBIEE 11g Calculated column problem

    Hi Gurus,
    I want to convert to below condition to obiee.
    Database Condition like below:
    ZEROIFNULL(CAST((CAST(COUNT(CASE WHEN END_output<=.033 and END_output>='-.117' THEN END_output END) AS FLOAT)/
    CAST(NULLIFZERO (COUNT(In_PUT)) AS FLOAT)) AS DECIMAL(10,1)))*100 AS Real_Time
    In Database output is = 48
    I have converted to OBIEE like below.
    IFNULL( CAST ( COUNT(CASE WHEN "- Order Fact"."END_output" <= .033 and "- Order Fact"."END_output" >='-.117' THEN "- Order Fact"."END_output" END) AS FLOAT ), 0) / CAST(IFNULL (COUNT("- Sales Fact"."In_PUT"),0) AS FLOAT ) *100
    In OBIEE output is = 45
    Note: I am getting two or three count difference in OBIEE.
    I guess the problems is Decimal, how to apply decimal in obiee like (DECIMAL(10,1)))..
    Please help on this.
    Thanks

    user12301120 wrote:
    Hi Gurus,
    I want to convert to below condition to obiee.
    Database Condition like below:
    ZEROIFNULL(CAST((CAST(COUNT(CASE WHEN END_output<=.033 and END_output>='-.117' THEN END_output END) AS FLOAT)/
    CAST(NULLIFZERO (COUNT(In_PUT)) AS FLOAT)) AS DECIMAL(10,1)))*100 AS Real_Time
    In Database output is = 48
    I have converted to OBIEE like below.
    IFNULL( CAST ( COUNT(CASE WHEN "- Order Fact"."END_output" <= .033 and "- Order Fact"."END_output" >='-.117' THEN "- Order Fact"."END_output" END) AS FLOAT ), 0) / CAST(IFNULL (COUNT("- Sales Fact"."In_PUT"),0) AS FLOAT ) *100
    In OBIEE output is = 45
    Note: I am getting two or three count difference in OBIEE.
    I guess the problems is Decimal, how to apply decimal in obiee like (DECIMAL(10,1)))..
    Please help on this.
    ThanksTry multiplying by 100.0 instead of 100

  • Calculations across multiple columns

    I am a virgin to iOS Numbers on the iPad and need to prove it’s worth in work. I have a spreadsheet where I have to calculate the number of entries matching 3 criteria in a row:
    by Date (Month),type of job (e.g. bathroom or kitchen) and against a score range of <=6
    I have the data in aworksheet called Data! and the calculations are made in a separate worksheet,Calculations!
    The formula I havebeen using in Excel is:
    =SUMPRODUCT((Data!$A:$A=B220)*(Data!$E:$E<=6)*(Data!$L:$L=B219))
    B220 is a cell containing the date I am looking for in Data! A:A (e.g. Jan, Feb)
    Column E contains the value; I am looking for scores of 6 and less
    B219 is a cell containing the type of work in text format to be looked for in Data! Column L
    And this is spot on giving me a numeric value for example for all kitchen works in June with ascore of 6 or less.
    In Numbers I have tried to transpose this:
    =SUMPRODUCT((Data::Table1::A: =B220)*( Data::Table 1::E<=6)*( Data::Table 1::L=B219))
    But it doesn’t work I have scoured the net and the on line help for iOS numbers is as useful as a chocolate fireguard.  I even tried my local Apple store to no avail
    Can anyone throw some light on the right direction I need to head in before I throw in the towel and get everyone on Roambi which works with the excel output

    CAUTION, I'm not sure that COUNTIFS behave flawlessly in Numbers for iOS.
    If I remember well it's one of the functions which failed in the document which I tried to make usable soon after the delivery of Numbers for iPad.
    Yvan KOENIG (VALLAURIS, France) lundi 18 juillet 2011 23:21:22
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

Maybe you are looking for