Perform division operation of two dimension values

Hi ,
I have a requirement like I need to divide two dimension values from 2 different tables?.. Can anyone please suggest whether I can do it in Obiee report level or i need to do it in RPD level. If so pls suggest how to do it?..
Regards,
Vengatesh.

Are these two tables are joined in the repository if yes then :-
then then you can directlly take
2 columns from these tables in answers and create new column in answer as Result_div
under fx of that column write column1/column2
Cheers
Nawneet

Similar Messages

  • How to calculate variance between two dimension values

    Hello:
    I have built a cube in Analytical workspace (9.2.0.5) with 3 dimensions. Time, Product & Scenario. I am using BI Beans (thick client) for the presentation layer. What I need is the ability to calculate the variance between two dimension values of same measure. For example, if My scenarios are 'Actual' and 'Budget', when I present the results on the screen for any measure (e.g Total Sales), I should be able to calculate & display the difference between 'Actual' & 'Budget' values of that measure.
    I have more than 7 scenarios and more than 40 measures. It could even be the difference between two product categories. How do I do it either in AW or at BI Beans Level?
    Thank you very much for your help.
    regards
    Suresh

    You want to look at qualified data references in the OLAP DML references. Basically, any data reference may be qualified by specifying a dimension name and value:
    sales(time 'jan92')
    forces the dimension TIME to the member 'jan92', no matter whether 'jan92' is in status or not. The resulting expression is essentially no longer dimensioned by the dimension TIME.

  • Performance operations based on Column values in SQL server 2008

    Hi ,
    I have a table which consist of following columns
    ID    Formula              
    Values                 
    DisplayValue
    1                    
    a*b/100       100*12/100    
          null
    2                    
    b*c/100       
    12*4/100              
    null
    I want to perform operation based on column "Values" and save data after operations in new column Name "Display Value" .i.e I want to get the below result . Can anyone please help.
    ID    Formula              
    Values                 
    DisplayValue
    1                    
    a*b/100       100*12/100    
          12
    2                    
    b*c/100       
    12*4/100             
    0.48
    Thanks for the help.
    Regards, Priti A

    Try this,
    create table #mytable (ID int,Formula varchar(10), [Values] varchar(10), DisplayValue decimal(10,4))
    insert into #mytable values(1 ,'a*b/100','100*12/100',null)
    insert into #mytable values(2 ,'b*c/100','12*4/100',null)
    declare @rowcount int=1
    while @rowcount <= (select max(id) from #mytable)
    begin
    declare @expression nvarchar(max)
    select @expression=[values] from #mytable where id = + @rowcount
    declare @sql nvarchar(max)
    set @sql = 'select @result = ' + @expression
    declare @result decimal(10,4)
    exec sp_executesql @sql, N'@result decimal(10,4) output', @result = @result out
    update #mytable set DisplayValue= @result where id = @rowcount
    set @rowcount=@rowcount+1
    end
    select * from #mytable
    Regards, RSingh

  • Concatenate property with two other dimension values in REC statement

    Greetings,
    I am attempting to concatenate a member property with two member values to create a this dimension member ID in a REC statement, as in the example:
                      *REC(FACTOR=1, COSTCENTER = PROFITCENTER.PCID + %DEPARTMENT% + %COMPANY%)
    So the COSTCENTER member is the concatenation of the PCID property of the current PROFTCENTER member and the ID of the current DEPARTMENT member and the ID of the current COMPANY member.
    I appreciate your help.
    Regards,
    Craig
    P.S. This syntax works fine in the Microsoft version
    Edited by: Craig Tennant on Oct 27, 2010 9:58 AM

    Gersh,
    I have tried:
    *REC(FACTOR=1, COSTCENTER = [PROFITCENTER].PCID %DEPARTMENT%) //PROFITCENTER has brackets around it and there is a space between the two.
    When I validate and save it tells me "Attribute PCID%DEPARTMENT% does not exist in dimension PROFITCENTER"
    *REC(FACTOR=1, COSTCENTER = [PROFITCENTER].PCID_%DEPARTMENT%) //PROFITCENTER has brackets and there is an underscore between the two.
    When I valiudate and save it tells me "Attribute PCID_%DEPARTMENT% does not exist in dimension PROFITCENTER"
    *REC(FACTOR=1, COSTCENTER = [PROFITCENTER].PCID [DEPARTMENT].ID) //PROFITCENTER and DEPARTMENT have brackets around them and there is a space between the two.
    When I validate and save it tells me "Member [PROFTCENTER].PCID[ does not exist"
    *REC(FACTOR=1, COSTCENTER = [PROFITCENTER].PCID_[DEPARTMENT].ID) //PROFITCENTER and DEPARTMENT have brackets around them and there is an underscore between the two.
    When I validate and save it tells me "Member [PROFTCENTER].PCID[_ does not exist"
    Again I appreciate your help and insight
    Cheers,
    Craig

  • Two time value operations.....................

    Hai guys...
    I am using time trekking machine to get the record to employee incoming and out going...
    the thing is i have no idea how to get the time period which he worked...
    it seems like this..
    000000000305032008[1605, 1605, 1606, 1644, 1655, 1716, 1719, 1720, 1721, 1723, 1723, 1723, 1727]
    In time ---- 1605
    Out time ---- 1727
    any one help me how to increase these two time value and take the employee actual spent time in the factory...
    thanks...

    Think of how would you manually (using a pen and a piece of paper) change
    1727 -- 17:27 into minutes after midnight?
    If you change both times to minutes you can safely substract them and then do the opposite thing - change minutes into hours and minutes.
    HTH

  • Need help with 'division' operation in RTF template

    We are using variables in RTF template to perform all data manipulations
    To calculate columns where we need to do division operation, using ‘/’ or ‘DIV’ is not working.
    Using <?xdofx: op1 DIV op2?> is working only when op1 and op2 are numbers like ex. <?xdofx: 100 DIV 50?> returns result 2.
    But the same tag used for columns or variables is not working.
    For ex.
    <?xdofx: (xdoxslt:get_variable($_XDOCTX, 'var1')) DIV xdoxslt:get_variable($_XDOCTX, 'var2') ?> is not returning any result, though
    <?xdoxslt:get_variable($_XDOCTX, ‘var1’)?>
    <?xdoxslt:get_variable($_XDOCTX, ‘var2’)?>
    both are returning values stand alone.

    On Thu, 03 Jan 2008 00:22:31 -0500, Alan
    <[email protected]> wrote:
    >yes, the use of child page comments in a template file is
    probably the
    >problem. But if that is solved, having two editable
    regions with the same
    >name will cause problems.
    >
    >short version- things be horked big time.
    <chuckle /> Methinks you're right. It looks like the
    copy/paste monster
    has been munching on it. One guess to fix it would be to open
    it in a
    text editor and change this:
    <!-- TemplateBeginEditable name="head" -->
    <!-- TemplateEndEditable -->
    <!-- InstanceBeginEditable name="head" -->
    To this:
    <!-- TemplateBeginEditable name="head" -->
    <!-- TemplateEndEditable -->
    And change this:
    <!-- InstanceEndEditable --></head>
    To this:
    </head>
    Gary

  • Different aggregation operator for two measures in single cube

    Hi,
    I have three measures age_month and age_year,pages for which aggregation operator should be like this
    for age_month and age_year
    time - max
    account - sum
    sales org - sum
    for pages
    time - sum
    account - sum
    sales org - sum
    I am creating MOLAP cube in OWB and deploying to AWM. I can create above structure in OWB but when I deploy it to AWM I see that for all the dimensions and all the measures aggregation operator as sum. Off course I can change the aggregation operator at cube level but it make changes to all underlying measures too.
    Also I can see in XML of the cube and see the operator for two measures is as max but UI shows as sum. After load also I am seeing in report it is calculating as sum instead of max along time dimension.
    Any help would be highly appreciated.
    Thanks
    Brijesh

    If you have an existing cube (already defined and aggregation setup) then modifying the aggregation behavior like changing order of dimensions/aggregation operators is not very robust (likely to fail due to inability of internal objects to sync up to modified defintion). Its always better to take a backup of cube definition and drop/rebuild a fresh cube with new dim order/agg operators.
    How can you have a compressed cube and also set the aggregation property per dimension?
    I was under the impression that if it is a compressed cube, then not only is there a restriction that all measures have same aggregation properties (defined at cube level) but also the aggregation behavior defined at cube level should use the same operator (note: any one operator out of sum or max or min) for all dimensions.
    Edited by: Shankar S. on Dec 19, 2008 11:54 AM
    Perhaps this additional restriction is only required if we intend to use the Cube as a source for relational queries using Cube organized MVs.
    Another way to do this is given below:
    I'm assuming that when you say that you require Max along Time and Sum along other dimensions, you mean that you want LAST (chronological) along time at leaf level and SUM along other dimension. Also assuming that Time hierarchy has the following levels: DAY, MONTH, QUARTER, YEAR. Big assumption :) as finding out Max along time requires the help of the fact/measure whereas finding out last along time requires us to use the dimension (along with dimension metadata) alone.
    Define 1 Cube: Cube1 ... Structure: Compressed Composite, datatype: DECIMAL
    Set Aggregation: SUM along all dimensions
    Create 3 stored measures ( age_m_sto, age_y_sto and pages)
    You may want to set description for age_m_sto/age_y_sto as "******** INTERNAL: DO NOT USE ******** Stored Measure used for age_month/age_year"
    Create 2 calculated measures - age_month and age_year defined as follows ...
    olap expresssion to be given in AWM:
    <age_month>: OLAP_DML_EXPRESSION('cube1_age_m_sto(time if time_levelrel eq ''DAY'' then time else statlast(limit(time to bottomdescendants using time_parentrel time(time time))))', DECIMAL)
    <age_year>: OLAP_DML_EXPRESSION('cube1_age_y_sto(time if time_levelrel eq ''DAY'' then time else statlast(limit(time to bottomdescendants using time_parentrel time(time time))))', DECIMAL)
    NOTE: The caculated measure performs the LAST along time action using the stored measure. For every higher level time dimension member, it reaches along the dimension to the last leaf level member and reads the stored measure for that lowest level time member.
    Map and Maintain Cube.
    From the SQL Cube View: Use only the columns corresponding to stored measure: pages and calculated measures: age_month, age_pages (ignore columns corresponding to age_m_sto, age_y_sto)
    HTH
    Shankar

  • How to limit  dimensions values of querybuilder

    Hi,
    I want to learn how to limit dimension value in query builder. i want, the user who run the querybuilder can not see a dimension value which i do not want to display.
    For example,
    The time dimension has "2000" and "2001" values as default which is defined in database. Normally when i run the querybuilder for create new presentation or calculation, In the dimensions panel of the querybuilder display all values of each of dimension. The user can select values which she/he want from that list.
    But i want to limit values which the user can see in the dimensions panel of the querybuilder. for this time dimension example, i want to hide "2001" value from the user. How can i do it. if there is any sample code, please share.
    Thank you very much for your helps.
    ilknur

    Thanks Thomas, excellent suggestions as always.
    If anybody wants more information regarding Thomas' suggestions please refer to
    Oracle9i OLAP Developer's Guide to the OLAP DML for the AW Permit command.
    In sumamry: To create permission programs, you define two programs with the names permit_read and permit_write. In these programs, you can specify PERMIT commands that grant or restrict access to individual workspace objects. In addition, you write these programs as user-defined functions that return a Boolean value, and the return value indicates to Oracle OLAP whether or not the user has the right to attach the workspace.
    For relational security there is an excellent tutorial on the database pages of OTN, follow this link:
    http://otn.oracle.com/obe/start/index.html
    then follow the links for Oracle9i Database Release 9.2.0.2 - Security - Creating Label-based Access Control. This module describes how to use Oracle Label Security to setup security based on label policies
    These security layers should be transparent to the OLAP metadata layer, therefore, once you have implemented your chosen security method your BI Beans application will only need to connect with the appropriate user to inherit the security layer. For more information see the Security section of the BI Beans Help:
    http://otn.oracle.com/bibeans/903/help/
    BI Beans product Management Team
    Oracle Corporation

  • An error occurred while attempting to perform the operation.

    Hi All,
    I am getting an error while running the report:
    "An error occurred while attempting to perform the operation. Then operation did not complete successfully."
    Although I can see the data coming is correct, but don't know why this error is coming.
    I have seen for NULL values.
    How can I see the detail log to trace the error?
    Please help.
    Thanks,
    Himanshu Tiwari

    Hi,
    You can login as system using SQLPlus and use the DBMS_SYSTEM.set_sql_trace_in_session procedure to set trace on another Discoverer session. This should establish if there is any database error occuring in the Discoverer session.
    Rod West

  • "changes to the distribution list membership cannot be saved. you do not have sufficient permission to perform this operation on this object"

    Running Exchange 2010/latest updates on Windows 2008 R2 servers.
    When I create a new DL that I want someone to manage, they received the following message when trying to add/remove from the DL:
    "changes to the distribution list membership cannot be saved.  you do not have sufficient permission to perform this operation on this object"
    I have followed everything in "http://msexchangeteam.com/archive/2009/11/18/453251.aspx" with no luck
    Any suggestions?

    Piggybacking off of the discussion above, with our deployment of Exchange 2007, we created a set of web-based tools that allowed people to create Exchange Resources including distribution lists.  To allow multiple people to manage the lists for a given
    department, we programmatically created a group, which is populated with one or more users from the "resource department".  We then set the following AD permissions to allow members of the group to manage membership of departmental distribution lists:
    Add-ADPermission -User DepartmentalGroup -AccessRights ReadProperty, WriteProperty -Properties 'Member' -DomainController dc.contoso.com
    Fast forward to Exchange 2010 and the landscape has changed with Exchange 2010's implementation of Role Based Access Control and I'm struggling to come up with a way to programmatically allow a group of users to manage distribution list membership for a
    subset of distribution lists - note that we have approximately 75 departments, with each having its own set of coordinators who should be able to manage distribution lists for their department but not lists created by other departments.  The specific
    error we receive in Outlook when attempting to modify group membership is the same as the title of this thread - "Changes to the distribution list membership cannot be saved.  You do not have sufficient permission to perform this operation on this object". 
    I implemented the settings referred to at
    http://sysadmin-talk.org/2010/06/omg-allowing-end-users-to-manage-distribution-group-membership-in-exchange-2010-2/ which details the process of creating a new management role and revoking the role's ability to create new distribution lists and remove distribution
    lists (which we want because we want those actions to be performed using our web tools). 
    All that to say that the ultimate problem we have is that the above relies on the "ManagedBy" field of a distribution list (viewable by Get-DistributionList Listname | fl *ManagedBy*) to determine group ownership.  When "ManagedBy" is set to a user,
    the user CAN edit a distribution list's membership from Outlook and OWA.  When "ManagedBy" is set to a group, members of the group are UNABLE to edit the membership of the distribution list via Outlook or Outlook Web Access/ECP.   Furthermore,
    Set-DistributionGroup does not allow you to specify a list of users to assign to the ManagedBy field.  However, if "ManagedBy" was set to a specific user and that user logs in to the Exchange Control Panel and adds additional "owners" of the distribution
    list, which I can then see from EMS - both the original owner and any additional owners added can in turn modify group membership for the list using Outlook or Outlook Web Access/ECP.
    My questions:
    1) Is it "expected" behavior that while I can assign a group to the "ManagedBy" property of distribution list, members of that group are still unable to edit the group membership?  ...or is there a fix for the behavior I'm seeing?
    2) Can multiple values be assigned to the "ManagedBy" property when using Set-DistributionList - ex: Set-DistributionList DLName -ManagedBy:user1,user2
    3) Any other suggestions?
    Thanks,
    -Lance

  • The permissions granted to user '' are insufficient for performing this operation. (rsAccessDenied)

    when I try to connect to the "http://localhost:8080/ReportServer " I get this error.
    The permissions granted to user 'DOMAIN/USERNAME' are insufficient for performing this operation. (rsAccessDenied).
    I have configered the Reporting services Configuration manager.
    I am an administrator on my machine and on the reportserver DB. when I try to log on the my 2008 R2 reporting services I get a simalar error.
    does any one have an idea of what I am missing?
    thank you.
    Jeff
    Jeff

    Hi There
    Please also have a look on this thread
    http://tanveeronline.blogspot.co.nz/2011/07/ssrs-2008-r2-unable-to-connect-to.html
    http://social.msdn.microsoft.com/Forums/hu-HU/sqlreportingservices/thread/f8a0a3f5-3985-4356-8404-3b408f790747
    http://www.networksteve.com/enterprise/topic.php?TopicId=24217
    In the last section of this thread it get resolved by
    "Changing the ports. Configured TCP port to 9000 and SSL port to 9001.
    And then
    <Add Key="SecureConnectionLevel" Value="0"/>
    Its value was 2, changed it to 0."
    Please have alook on this thread that might help you
    Many thanks
    Syed
    http://tanveeronline.blogspot.co.nz/2011/07/ssrs-2008-r2-unable-to-connect-to.html
    Does not work. I already had the settings which are mentioned in that blog - 
    Try doing the following things
    Go to Reporting Services Conf. Manager.
    1. Change the server account to local account.
    2. Remove the SSL if configured.
    3. Go to C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportServer
    4. Change the  SecureConnectionLevel value to 0 in rsreportserver.config
    Try refreshing the page, it should work now!
    Also tried answer at - http://social.msdn.microsoft.com/Forums/sqlserver/en-US/f8a0a3f5-3985-4356-8404-3b408f790747/ssrs-2008-unable-to-connect-to-remote-server?forum=sqlreportingservices
    Same thing there. SecureConnectionLevel value to 0 is already set for me.
    Third link comment at end says  - 
    Hi Chaitanya, Changing the ports worked for me. Configured TCP port to 9000 and SSL port to 9001. And then <Add Key="SecureConnectionLevel"
    Value="0"/> Its value was 2, changed it to 0. Thanks for all your support Best Regards, Arka Mitra.
    You can set TCP and SSL like this from Reporting services config manager - 
    Web Service URL option (left pane) > Advanced settings button > put the values.
    The TCP can be changged to 9000, but the SSL requires a certificate file. I am stuck here.
    The clue to make your own SSL certificate is here - 
    http://johnhennesey.blogspot.com/2010/10/reporting-services-2008-over-ssl.html
    But, this post is not for windows 7 64 bit, ie my personal pc os. I tried to make the cert on win, 7, but options are complicated. Lets see.
    Here is the issue for the same - https://stackoverflow.com/questions/22314341/cannot-see-self-created-certificate-in-certmanager

  • Few dimension values used in FACT tables.

    Hello all,
    We are trying to know if somebody faced this issue earlier. We have dimension tables containing 5 million records, but the fact table uses hardly 30k of these dimension values. The fact table contains 350 million records, so is there any way to improve the performance of the query in such a scenario, where hardly 20% of dimension values are actually used by the FACT tables.
    Thanks and Regards,
    Upendra

    nilanjan chatterjee wrote:
    Hi,
    >
    > The data for the parent members should be available in the SQL tables.
    > For example, 2011.TOTAL is parent member. You should not have any data for this member in your database. If it is there, it might have come somehow (may be an import). But this is not right. You might want to remove these records. But be sure that you dont delete the records for the base level members.
    >
    > Hope this helps.
    I guess you meant should not, right ?

  • Not exists / union - two dimensions nothing in the fact folder, possible???

    What I am trying to do is (in functional terms) produce an invoices on hold report.
    This has two distinct characteristics - some invoices are coding but on hold (easy - see first part of the SQL below), but some invoices have no coding, nothing in the FACT folder and I need to show two dimension folders which currently only join via the FACT folder - is this possible??
    equivalent SQL =>
    select supp.supplier_name, inv.invoice_number, inv.invoice_amount, dis.amount, code.segment1||'/||code.segment2
    from     AP_INVOICES_MV inv
    ,          ap_suppliers_mv supp
    ,       ap_holds_mv hold
    ,      AP_INVOICE_DISTRIBUTIONS dis
    ,     gl_coding code
    where inv.invoice_key = hold.invoice_key
    and    inv.supplier_key = supp.supplier_key
    and  inv.invoice_id = dis.invoice_id
    and   dis.code_key = code.code_key
    and   hold.holds <> 'No Holds'
    union
    select supp.supplier_name, inv.invoice_number, inv.invoice_amount, 0 amount, 'XXXXX/XXXX' gl_code
    from     AP_INVOICES_MV inv
    ,          ap_suppliers_mv supp
    ,       ap_holds_mv hold
    where inv.invoice_key = hold.invoice_key
    and    inv.supplier_key = supp.supplier_key
    and   hold.holds <> 'No Holds'
    and   not exists
    (select 'x'
    from    ap_invoice_distributions dis
    where dis.invoice_id = inv.invoice_id)
    order by 1, 2, 4 ascMy problems are; -
    1. is that the second part of the union (not exists section) requires me to join two DIMENSION tables without going via the FACT table is this possible?? (If so how - what JOINS would I need on between the FACT and the DIMENSIONS and would this significantly impede running speed generally)
    2. Given that even when writing direct database requests the FROM part of the SQL is the subject area, not the tables, the tool writes the joins for you, how can I write the equivalent of the above??
    n.b.
    AP_INVOICES_MV - DIMENSION
    ap_suppliers_mv - DIMENSION
    ap_holds_mv - DIMENSION
    gl_coding code - DIMENSION
    AP_INVOICE_DISTRIBUTIONS FACT
    With the structure following the classic STAR with all folders described in the dimensions equi joining to the FACT folder, BUT some in the invoices dimension will not have corresponding values in the FACT folder (un-coded invoices).
    With thanks for your input,
    Robert.

    Try this app: http://tyorex.com/iWorkConverter
    Batch convert Pages files to doc and pdf.

  • Dimension values display order and record details

    Hi All,
    I have explicitly ordered my dimension values to be in a logical order instead of alphabetical. Ex: Small, Medium, Large. This works great in the navigation tree but when I view a specific record and it  has those 3 dimvals they are listed in alphabetical order.
    Is there a when doing a record query to ask Endeca to respect the same display order as in the nav query?
    Thanks,
    Luc

    We are used to add two dummy records in each dimension.
    We add the following data:
    We use '-1' (surr-key) for Invalids and '-2' for Unknown.
    Easy way to populate these dimensions is to add a script together with all objects when you release new functionality. Beware you use the same descriptions.
    Even better is to think of a more general solution (more easy to maintain) and store these values in a support table. In such a table you will be able to add more columns to get more details per row. Use this reference table when you load youre dimension. Also you will find the opportunity to add more error handling cases. Especially when you add the dimension in this support table.
    Regards
    Moscowic

  • How to combine two dimension in dashboard??

    Dear experts,
    I have a requirement that i need two combine two dimension in dashboard.
    Ex:-
    -  I have two different providers (Query1 and Query2) and both is having common dimension called Plant.
    - The plant from both query is having different values (for example, Query1 Plant = A,B,C and Query2 Plant = D,E,F,G)
    - Now I want the total list of plants from both query and list of plants will be used as filter on combo box in dashboard.
    Note: List of values for Plant (dimension) may increase or decrease from both query.
    Thanks and regards
    Vijay Muniraj

    Hi Vijay,
    How can you combine the 2 queries as a single query in dashboard?If i understood the query,use a Multiprovider for your requirement and get the combined results in single query and use Plant as single prompt in the dashboard(If you are getting data from BI).You cannot merge this behaviour in the dashboard.(In Web Intelligence you can merge it based on common dimension values only).
    Regards,
    Venkat

Maybe you are looking for

  • Key mapping in Syndication

    Hi, I am working on Vendor master data. The standerd syndication map for Vendor to R/3 system has the authorization groups mapped to BEGRU at target. Well source is like - authorization group     [Remote key]       - Mapped to------->  BEGRU     Name

  • Adobe Media Encoder Unexpectedly Quits

    Hello, I was trying to export a flv file from CS4 today and I have been receiving an error Adobe has detected that the application adobe media encoder CS4 has Unexpectedly quit. I?m using CS4 4.1 and the matrox 4.1 beta build. Here are our settings:

  • Client Copy error during client export / RX file is not getting generated

    Hi Experts, During the client export process of client copy in order to created two tranports requests(<SID>KT* and <SID>KX) for import we need to have the RT and RX files in data file folder and RT and RX in Co-file folder of usr\sap\trans. But I am

  • Synching music to iPhoto slide show

    I have created a playlist in iTunes for my iPhoto slide show. It needs some tweaking here and there to align the music with the correct slides. Is there a way to start in the middle of the show to work on this or must I always start at the beginning.

  • Expected Receipt

    I want to know in which tables the data is saved when saving the expected receipts form. Navigation: Inventory:Transactions:Transaction Open Interface