How to create calculation as a percentage of a row value

How do I create this calculation in OBIEE? It seems simple but I can't get the right results.
Let's say I have a field called Account with the following values:
Sales - 1000
Product Cost - 300
Operating Supplies - 100
Returns - 100
Fixed Costs - 300
I need to create a column that would be percentage of Sales. So my report would now show:
Sales - 100%
Product Cost - 30%
Operating Supplies - 10%
Returns - 10%
Fixed Costs - 30%
How do I do this? It's very easy for me to create a percentage of total calculation, but I can't create a percentage of a specific row.

Hi,
Sales, Product Cost, etc are row values for Accountthis is where your complexity come in.
if those are individual measure labels then it would've been easy to achieve.
But, still can do one thing.
report split into two views: one will show normal values, other will be % side by side in compound layout.
1. create those many columns in criteria using filter() function, and name it as Sales, Product Cost
ex: for Product Cost heading column fx will b: 100*filter(Amount using Account = 'Product Cost')/filter(Amount using Account = 'Product Cost')
2. now, in pivot 2-> use each column as measures and add those many into measures part of pivot.
3. Drag Measure Labels to Rows part.
4. Add both the views to compound layout side by side.
(i'm assuming that we need to show actual and % values in report, if not you need not to go for pivot1, simply one pivot with above logic)
but it has got limitation like: if Account column is populated with one more value tomorrow.. it'll be a problem..

Similar Messages

  • How to create Calculated/Restricted Key Figures in AO

    All,
    In our project we are consuming Bex Queries for AO Analysis. In these  we have lot of calculated/restricted key figures. In bex we can restrict 2 characterstics to one Keyfigure, So can we able to create calculated/restricted KF in AO
    Regards,
    John

    Hello Tammy,
    We are having a reqauirement in which we have 5 Bex queries built on the same infoporvider and we are trying to consolidate all the 5 queries to one single generic Bex query or two. So in AO we would like to consume this query and build different AO workbooks to meet all the old 5 queries requirement.
    So as part of this process, I would like to know can we create calculate/restricted KF's in AO , that way i can make a better decision to create them in Bex VS AO.
    Thanks for your inputs in advance.
    Regards,
    John
    Message was edited by: sunny johnson

  • How to create .ctl (control file) to calide excel rows in ssis ?

    In my package i have a requirement to use .ctl control file to valide excel rows. can anyone tell me how to create a .ctl file which will have all of this information. 

    A few assumptions 1st:
    1) I understood the .ctl file can be any ASCII (flat) file of arbitrary format; and that
    2) You will drive the validation rules.
    Since you seem like want to apply the validation as the first step in your package I advocate plugging the Script Transformation task in which happens to expose the "ProcessInputRow" method that in turn allows a developer to intercept each row for inspection.
    This is where you will need to apply much thinking to how to make the validation rules applied in retrospect to the incoming data.
    You drive the code (logic). More through help is a click away here http://www.codeproject.com/Articles/193855/An-indespensible-SSIS-transformation-component-Scr which only covers how to make the row-by-row processing possible.
    If you expected SSIS to have this functionality provided for free - unfortunately this is not happening.
    One of many reason is, what you want to do is extremely laborious.
    Arthur My Blog

  • How to create report with dynamic columns with static row labels

    Hi All,
    I am creating one report as per attached format. I have labels on the right side of the report
    and data in 3 columns. The data is taken dynamically from the command query.
    It gets data from 3 different result sets/command queries.
    I tried creating the report horizontally instead of vertically, but the logo image I am not able to rotate in 270degrees.
    Can anybody tell me how to create the report...??

    Hi Abhilash,
    Thanks for the quick reply.
    Actually the problem is with the image, as I am not able to rotate 270 degree. Crystal report cannot support the rotation of image.
    i have another problem, I have to create a report in which
    Lables are fixed on the left side of report and 3 columns per portrait page. Those columns are
    dynamically created and shown in the report.
    The format is like the above. Can you please help me in doing this report, as I tried it doing
    with CrossTab. I am really stuck to this report.

  • How to created calculated field that is a hyperlink

    I am trying to create a hyperlink in a calculated field.  The text string renders, but only part of it is a hyperlink. I used this syntax:
    https://domain/sites/itd/SBTD/TSG/General%20Documents/Forms/by%20Document%20Category.aspx?View={373A9A36-C01A-4616-BADA-065DEEBC44C0}&FilterField1=Agreement&FilterValue1=IAA 2011-12-13
    Then, based on this article:
    http://blog.pathtosharepoint.com/2008/09/01/how-to-open-hyperlinks-in-a-new-window-or-not/,  I tried writing it as HTML like this:
    =CONCATENATE("<a href=’”,”https://domain/sites/itd/SBTD/TSG/General%20Documents/Forms/by%20Document%20Category.aspx?View={373A9A36-C01A-4616-BADA-065DEEBC44C0}&FilterField1=Agreement&FilterValue1=",Agreement Number,”’>”,documents,”</a>”).
    That got my an error regarding illegal syntax.
    Does anyone know how to do this in the UI?
    There are no mistakes; every result tells you something of value about what you are trying to accomplish.

    Where are you trying to get the "IAA
    2011-12-13" from?
    By the look of what you are trying to do, this would read the value from a column called "Agreement Number" and embed
    it in to the URL. Do you have a column called "Agreement Number"?

  • How to create editable tablecells for a single table row dynamically?

    Hi
    How to make the cell of a tablerow editable based on flag in backing list object bound to row? I can't decide the editable property while creating table columns. So i can't use setCellFactory() during creation. However setCellFactory() makes all cells in table column editable.How to make non-editable table row cell editable and vice-versa based on flag?

    hi
    good
    if you want to create two different view for a same table than you cant give the same name for the same view,otherwise it would allow you to create the view.Try out with different view name as well as the function group name,i hope this ll work.
    thanks
    mrutyun^

  • How to create a view with columns from multiple rows

    I have posted this in SQL/PSL forum, but I hope database experts in this group can give me ideas too, also the need is from BI reports.
    I have a table, say, project_milestones, which has these columns in concern:
    proj_id, milestone_name, actual_end_date
    with data:
    proj_id, milestone_name, actual_end_date
    ===== ================ ==============
    1001, Key Element Approve, 2009-10-02
    1001, Final Synopsis, 2009-10-07
    1001, Final Protocol Approved, 2009-10-15
    1001, FPFV, 2010-01-10
    1001, LPFV, 2010-03-12
    1002, Key Element Approve, 2008-12-02
    1002, Final Synopsis, 2009-01-07
    1002, Final Protocol Approved, 2009-01-12
    1002, FPFV, 2009-03-30
    1002, LPFV, 2009-10-04
    There are about 10 milestones in each project.
    I have to create a view to flat these data at project level, looks like this:
    proj_id, key_element_date, final_synopsis_date, final_protocol_approved_date, FPFV_date, LPFV_date, key_element_to_final_synopsis_days, final_synopsis_final_protocol_days, ....
    How can I do this?
    Thanks,

    user9175541 wrote:
    I have posted this in SQL/PSL forum, but I hope database experts in this group can give me ideas too, also the need is from BI reports.
    I have a table, say, project_milestones, which has these columns in concern:
    proj_id, milestone_name, actual_end_date
    with data:
    proj_id, milestone_name, actual_end_date
    ===== ================ ==============
    1001, Key Element Approve, 2009-10-02
    1001, Final Synopsis, 2009-10-07
    1001, Final Protocol Approved, 2009-10-15
    1001, FPFV, 2010-01-10
    1001, LPFV, 2010-03-12
    1002, Key Element Approve, 2008-12-02
    1002, Final Synopsis, 2009-01-07
    1002, Final Protocol Approved, 2009-01-12
    1002, FPFV, 2009-03-30
    1002, LPFV, 2009-10-04
    There are about 10 milestones in each project.
    I have to create a view to flat these data at project level, looks like this:
    proj_id, key_element_date, final_synopsis_date, final_protocol_approved_date, FPFV_date, LPFV_date, key_element_to_final_synopsis_days, final_synopsis_final_protocol_days, ....
    How can I do this?
    Thanks,Create a pivot table and put "milestone_name" in the Columns section under the Labels.
    Put "actual_end_date" in the Measures section and change the Aggregation Rule to "Max."
    The rest of the attributes keep in Rows section.

  • How to create 2 conditions from 2 datasets in row visibility SSRS

    Hi Experts, 
     In ssrs, I want to create an expression for the row visibility. But, the expression will contain 2 conditions from different 2 datasets (DealStarts & RowofTrendingVisibility). I have applied a solution from online, but got an error message is 
    "The Visibility.Hidden expression for the tablix ‘Tablix9’ contains an error: [BC30451] Name 'launchdate' is not declared. "
    I think that there is a minor issue in my syntax. Can some one help me to correct it?  Thank you. 
    =iif ((Last(MonthName("DealStarts"))=monthname(month(today())) or launchdate ("RowofTrendingVisibility")<Parameters!StartDate.Value),true, false)

    Hi JTan414,
    I have check the expression you have provided and there are many incorrect using of this expression, please check and do some modification as below:
    For the MonthName function you should follow the grammar like:
    =MonthName(10,True)
    =MonthName(Month(Fields!BirthDate.Value),False)
    ="The month of your birthday is " & MonthName(Month(Fields!BirthDate.Value))
    You have add the dataset name "DealStarts" at the wrong place, it should like below:
    =Last(MonthName(Month(Fields!BirthDate.Value)),"DealStarts")
    or
    =Last(MonthName(Fields!IntegerValueField.Value),"DealStarts")
    This will return the last value from the dataset
    There is no function named launchdate, expression "launchdate ("RowofTrendingVisibility")" is incorrect and you shouldn't add the datasetname in this way.
    If the expression involved of conditions from two different datasets, limit kinds of functions will support to use:
     =Last(Fields!BirthDate.Value,"DataSetName")
    =First(Fields!BirthDate.Value,"DataSetName")
    More details information about how to use expression in SSRS:
    Expression Examples (Report Builder and SSRS)
    If you still have any problem, please try to provide more details information about your requirements and also some sample data.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • How to create a table with a column which is value in other table?

    Hi to all,
    This is my first post n i changed my platform to ODI from DATASTAGE .Help me friends n i know basic steps in ODI 11 version which i got training in my company.I hope to get all ur support and can any one share ODI related documents.
    My question is ............
    T1 table>>>>>>>>>>
    service id ///////// attr.name /////////// attr.value
    S1 ///// product_code ///////// P1
    S1 ///// provider ///// pro1
    S2 ///// product_code ///// P2
    S3 ///// provider ///// pro3
    T2 table >>>>>>>>>>>>>>>
    service id ///// product_code ///// provider
    S1 ///// p1 ///// pro1
    S2 ///// p2 ///// nullvalue
    S3 ///// nullvalue ///// pro3
    I have a table T1 from that i should show the table T2 has output .Can any one say about how to write a logic and steps to be followed.
    Thanks in advance .
    Edited by: 854662 on Apr 26, 2011 1:59 AM

    Hi,
    Here u go.
    Interface 1:
    Put a filter in ur TABLE1 on attr.name='PRODUCT_CODE'.
    In Target TABLE2 map
    SERVICE_ID = TABLE1.SERVICE_ID
    PRODUCT_CODE=TABLE1.ATTR_VALUE
    Use IKM SQL Control Append.
    Interface 2:
    Put a filter in ur TABLE1 on attr.name='PROVIDER'.
    In Target TABLE2 map
    SERVICE_ID = TABLE1.SERVICE_ID
    PROVIDER=TABLE1.ATTR_VALUE
    Make SERVICE_ID as KEY (when u click on the target column in the Properties u can see KEY under Target Column Properties)and use IKM Oracle Incremental Update.
    P.S: I assume Oracle as source and target.
    And for documentation u can refer,
    https://apex.oracle.com/pls/apex/f?p=44785:24:4413167952886630::NO:24:P24_CONTENT_ID,P24_PREV_PAGE:5185,29
    http://odiexperts.com/
    And of course this OTN.
    Thanks,
    Guru

  • How to create job to run daily based on form values entered and send mail.

    Hi,
    In DB we have 3 columns: creation_date, name, approved_or_not. Default for approved_or_not is 'No'.
    In the application form page suppose I fill in sysdate for creation_date and leave default for approved_or_not and click [create] button.
    Now a job should run everyday and check for where (approved_or_not='No' & creation_date = 'sysdate - 1') and send mail to the person in 'name' field mentioning: 'Approval pending. click on link <some_link> for details on approval'.
    Could anyone give me pointers to example on such job? (Working on APEX 3.0)
    Thanks,
    Priyanka

    create a DBMS JOB
    check out this forum link.
    dbms_job

  • How to create variables for Characteristic Info-objects in Rows / Columns

    I want to create variables in abovementioned manner for COPA retraction in BPS, as COPA retraction does not recognise variables created in "filter" section of Bex. Can sumone advise , as I have tried all the possibilities of creating but failed to do so?

    Hi Ravi/All,
    Actually my problem will be solved if I am able to create variables in either Rows/Columns area of BeX.
    Variables are getting created easily in Filter section of BeX (but in COPA , it will not serve any purpose COPA retraction does not recognise contents of Filter/variables contained in the filter).
    In fact variables are getting created in Rows/Colums of Bex, but they are in the form of structures. (Again multiple structures (more than 1)  are not recognised in COPA retraction.

  • How to create a Credit Memo Req by changing the value of the material price

    Hello,
    We have a requirement where we are want to change the value while creating a credit memo request wrt Billing doc.  Is there a way to change the price of the material rather then the qty on the credit memo request?  The system allows only Qty change and not the price change.
    Pelase help!
    Arpita Rani

    Update the price condition record first. Then in the credit memo - go to conditions and click on update button, select option - copy manula elements and redetermine others.
    ALso you can check the copy controls from your Invoice to CM Reqest (VTAF) @ item level - check price Type B. If the condition record is diferent from the one on billing, thenyou will get updated price in your cmr.
    Regards
    Sai

  • How to create a Listbox in UI5 with alternate row color for the Listitems.

    Hi,
    I need to create a Listbox for browser (not mobile). But not getting any properties for alternate row color for the list items.
    If anyone worked on this pls share.
    Thanks,
    Nigam

    Hi Guys
    Chandra's solution is sweet.
    Here is another one so that it will not affect the other lists (if any) that you do not want alternate colors.
    -D

  • How to create PNG file from byte array of RGB value?

    Hi
    Here is my problem.
    I have drawn some sketchs (through code in runtime) on canvas. I have grabbed the RGB information for the drwan image and converted to byte array.
    I have to pass this byte array to server and generate a png file and save.
    Please help.

    {color:#ff0000}Cross posted{color}
    http://forum.java.sun.com/thread.jspa?threadID=5218093
    {color:#000080}Cross posting is rude.
    db{color}

  • [Forum FAQ] How do I create calculated measure using AMO in SQL Server Analysis Services?

    Introduction
    In SQL Server Analysis Services (SSAS), you can create a calculated measure in SQL Server Data Tool (SSDT)/Boniness Integrated Development Studio (BIDS). Sometimes you may need to create calculated measure by using AMO in a C# or VB project.
    In this article, I will demonstrate so how to create calculated measure using AMO in SSAS?
    Prerequisites
    Before create calculated measure using AMO, you need to ensure that the following components were installed in your server.
    The multidimensional database AdventureWorks Multidimensional Model 2012
    A SQL Server with SSIS and SSAS installed
    The AMO libraries installed:
    X86 Package (SQL_AS_AMO.msi)
    X64 Package (SQL_AS_AMO.msi)
    Solution
    Here is the detail steps to create calculated measure using AMO in SSAS.
    Open SSDT and create a new SSIS project.
    Drag Script Task to the design surface.
    Click SSIS-> Variables to open the Variables window and add two variables that used to connect to the server and database.
    Create a connection to connect to SSAS server.
    Rename the connection name to ssas.
    Double click the Script Task to open Script Task Editor.
    Add Connection and Database variables to ReadWriteVariables textbox and then click Edit Script button.
    Add AMO reference in the Solution Explore window.
    Copy the script below and paste it into the script.
    Dim objServer As Server
    Dim objDatabase As Database
    Dim strDataBaseID As String
    Dim objCube As Cube
    Dim objMdxScript As MdxScript
    Dim objCommand As Command
    Dim strCommand As String
    objServer = New Server
    objServer.Connect("localhost")
    objDatabase = objServer.Databases("AdventureWorksDW2012Multidimensional-EE2")
    strDataBaseID = objDatabase.ID
    If objDatabase.Cubes.Count > 0 Then
    objCube = objDatabase.Cubes("Adventure Works")
    If objCube.MdxScripts.Count > 0 Then
    objMdxScript = objCube.MdxScripts("MdxScript")
    objMdxScript = objCube.MdxScripts(0)
    Else
    objCube.MdxScripts.Add("MdxScript", "MdxScript")
    objMdxScript = objCube.MdxScripts("MdxScript")
    End If
    objCommand = New Command
    strCommand = "CREATE MEMBER CURRENTCUBE.[Measures].[Multipy Measures By 3]"
    strCommand = strCommand & " AS [Measures].[Internet Sales Amount] * 3, "
    strCommand = strCommand & " VISIBLE = 1 ; "
    objCommand.Text = strCommand
    objMdxScript.Commands.Add(objCommand)
    objMdxScript.Update()
    objCube.Update()
    End If
    objServer.Disconnect()
    Then you can run this SSIS package to create the calculated measure.
    Applies to
    Microsoft SQL Server 2005
    Microsoft SQL Server 2008
    Microsoft SQL Server 2008 R2
    Microsoft SQL Server 2012
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    Thanks,
    Is this a supported scenario, or does it use unsupported features?
    For example, can we call exec [ReportServer].dbo.AddEvent @EventType='TimedSubscription', @EventData='b64ce7ec-d598-45cd-bbc2-ea202e0c129d'
    in a supported way?
    Thanks! Josh

Maybe you are looking for