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

Similar Messages

  • Sort on the Measure in Pivot table in OBIEE 11g

    The pivot table ignores the sort on the measrure in the criteria section, so how can we enable sort on the measure columns in pivot in OBIEE 11g ?

    887111 wrote:
    The pivot table ignores the sort on the measrure in the criteria section, so how can we enable sort on the measure columns in pivot in OBIEE 11g ?Try this:
    1) Make a duplicate layer of the measure column.
    2) Move the duplicate layer to the far left in the Rows section.
    3) Apply the desired sort order.
    4) Hide the duplicate layer column.

  • Multiple Hierarchies from Single Dimension Table in OBIEE-11g?

    Is it possible to have Multiple Hierarchies from Single Dimension Table in OBIEE-11g?
    Like 1)Year-Qtr-Month-Weeks 2)Year-Month-Days

    Hi,
    or if your lowest level is the same like
    Day->month->year->Total
    Day->businessMonth->businessyear->Total
    Then yes, it is.
    Create the first, then you start to create the second by adding your top(business year) level on the same level as the one you have (year) both under your total.
    Then when you would add your second base level, there is a special option for it, something like use other hierarchy level/shared level (sorry can't recall and does not have a connection right now) then you select your existing day level under your businessmonth level.
    Hope this helps,
    Regards,
    D

  • Not able to color different rows with different colors in a column of table

    Hi,
    I am trying to to display different rows with different colors in a column of the table based on some decode condition.
    I have gone through the following threads :
    Can we colour the rows in the column of a table
    Changing Color of a value in a column
    This is what i have done :
    1.Added the following code to custom.xss(changed the name to Custom.xss as suggested in one of the above threads) --- in path ---- jdev\myhtml\OA_HTML\cabo\styles
    <style selector=".1">
    <includeStyle name="DefaultFontFamily"/>
    <property name="font-size">11pt</property>
    <property name="font-weight">Bolder</property>
    <property name="color">#008000</property>
    <property name="text-indent">3px</property>
    </style>
    <style selector=".2">
    <includeStyle name="DefaultFontFamily"/>
    <property name="font-size">11pt</property>
    <property name="font-weight">Bolder</property>
    <property name="color">#FFFF00</property>
    <property name="text-indent">3px</property>
    </style>
    2. Sql query of the VO is :
    select comments,role ,decode(role,'REQUESTER','1','2') Colorattr from xxat_sars_action_history where request_id = :1 and event_name = :2 and action_code <> 'PENDING'
    order by sequence_num desc
    3. Coded the following in the process request of the controller:
    OATableBean table = (OATableBean)webBean.findIndexedChildRecursive("CommentsTB");
    OAMessageStyledTextBean roleBN = (OAMessageStyledTextBean)webBean.findIndexedChildRecursive("role");
    OADataBoundValueViewObject cssjob = new OADataBoundValueViewObject(roleBN,"Colorattr");
    roleBN.setAttributeValue(oracle.cabo.ui.UIConstants.STYLE_CLASS_ATTR, cssjob);
    where 1 and 2 form the colors ( i have even tried with 'Red' and 'Yellow'...as it was not working replaced with 1 and 2)
    4.The query returns data fine with corresponding 1 and 2 values.
    But different colors are not getting reflecting on to the UI.
    I am testing this on my local jdev.
    Please do let me know if i am missing something.
    Thanks ,
    Sushma.

    Any Clues please.....
    Thanks,
    Sushma.

  • Different restrictions for each columns

    I would like to restrict each column in a standard report with different value, without using global filter.
    For Ex. I have a measure field called Amount. I would like to have 12 columns namely Jan, Feb etc... and then I would like to restrict each column with Month and I need to get the data for that particular month in the column.
    In this case I cant use cross tab report because crosstab doesnt support some of the features of SAP datasource at this point of time. I can create measures in SAP datasource with restriction. But performance of the query will be affected.
    In case of Web Intelligence we can create a formula with where clause for each of the column. But such thing i couldnt find in crystal report.
    I need experts help here.
    I appreciate your help.
    Thanks
    Raghu

    For January you would have the following
    if month(yourdatefield) = 1 then
    youramountfield
    else
    0
    For February you would have the following
    if month(yourdatefield) = 2 then
    amount
    else
    0
    continue on for each month. then place these fields across the report in the detail. Now for each record the value will go into the correct month column. Then you can suppress the detail section and summarize the total for each month if you want.

  • Adding different tooltip for a column in table??

    Hi here,
    I have read the similar title "Adding ToolTip for individual cell in the table".
    The method that use "tableModel" and "override getToolTipText" for individual cell is useful for individual cell with tooltip that i have tried.
    How could i get the tooltip for each columns and show every row value on each tooltip.I wish when mouse moved above a column and the column could show all of that column's row value.
    Please help me.
    Thanks..

    your explanation sounds a bit confusing but if i got you right
    you could do something like this in your table
    public String getToolTipText(MouseEvent me)
          int row = this.rowAtPoint(me.getPoint());
          StringBuffer tooltip = new StringBuffer();
          for(int i=0; i<getColumnCount; i++)
             tooltip.append(getValueAt(row, i).toString());
          return tooltip.toString();
       }

  • Matrix with different dimensions for each column

    Hi,
    I would like to have a matrix with different dimensions (rows) for each
    column, for example, I want the first column has 3 rows, the second one
    5 rows, the third one 10 rows, and so on.....
    With a simple array it is not possible, and then I make an array (for
    my columns) of clusters and each cluster has another array (rows for
    that column). Is it the best way to do it? Is it correct?
    Thanks,
    ToNi.

    Yes, everything we told you in this old thread  is still true!
    LabVIEW Champion . Do more with less code and in less time .

  • Filter two different columns in a Dashboard, OBIEE 11g

    Hi everyone,
    I have read many times this forum, but I this is my first post. I have a problem with OBIEE 11g and I hope you guys could help me.
    In the dashboard I have created, there is an analysis table which has the following columns:
    (1) Month - (2) Doctor's Name - (3) Num. of Appointments Month 1 - (4) Num. Appointments Month 2
    The point is that I want the users to choose in their dashboard a month to filer column (3) and a month to filter column (4), so they can have a comparative view of the number of appointments for each month. I have tried to do this with prompts, but what happened is that the prompt filtered ALL the columns, not just one of them.
    So, is there any way of filtering just one column? I mean, when in the dashboard view, not in the analysis creation view.
    Thank you in advanced! :)
    Javier
    Edited by: user13724353 on 07-jun-2011 7:30

    Hang on a minute... I think this is possible.
    Set up two dashboard prompts to populate 2 presentation variables for your first and second months.
    Once you have a presentation variable you can fix the value of column 3 and 4 using the "Filter using" syntax (check the functions list when you edit the column formula). By using Filter using you should be able to pass in the value of your presentation variable.
    Paul
    http://total-bi.com

  • How map to my particular table to the fact table in obiee 11g...

    Hi friends,
    I did this simple report in obiee 11g(i.e)
    "NATIONALITY COUNT IN DEPARTMENT WISE"
    For that i used the following tables:
    per_all_assignments_f----->fact table
    hr_all_organization_units----->dim table(containing departments)
    per_all_people_f---------------->dim table(containing nationality)
    I made all the mappings in the physical diagram, as also viewed my report in BI answers
    It shows the following results like
    NATIONALITY---------------------------------------------------------------------COUNT(NATIONALITY)
    AUS------------------------------------------------------------------------------------------------24
    AFR------------------------------------------------------------------------------------------------25
    PHQ_VB-------------------------------------------------------------------------------------------40
    SH_VT----------------------------------------------------------------------------------------------4
    The problem is for me it is showing the above results, but the nationality column is of various codes of the country.
    Since i doesnt want the code of the nationalitian to display in the results..i need the meaning of each and every nationality..
    like,
    AUS------------------------Australian
    AFR-------------------------African
    PHQ_VB----------------------Germanian(assigned)
    Since i know that the meaning for the nationalitian is available in "FND_LOOKUP_VALUES"...okay..
    I can import "FND_LOOKUP_VALUES" table to the physical layer...but how i can able to give the mapping to the fact table in my physical diagram...
    In my report the fact table is "per_all_assignments_f"
    As my fact table doesnt contains any matching column corresponding to the dimension table "FND_LOOKUP_VALUES".....
    Then how i can give mappings to the fact column???? for viewing the full meaning of the nationalitian in my report.....Help me friends...
    Regards,
    Harry...

    Hi bifact,
    I followed the step that U asked me to go but im stuck with later.....
    *) I saved the query that i executed in toad with the columns showing country codes and country meaning to the excel sheet...
    This is the query that i executed in toad and copied data s in excel sheet..
    select z.lookup_code, z.meaning
    from per_all_people_f e, per_all_assignments_f f, hr_all_organization_units h, fnd_lookup_values z where
    e.person_id = f.person_id and f.organization_id = h.organization_id and e.business_group_id = f.business_group_id
    and f.business_group_id = h.business_group_id and f.location_id = h.location_id
    AND z.lookup_type(+) = 'NATIONALITY'AND z.lookup_code(+) = e.nationality and sysdate between
    e.effective_start_date and e.effective_end_date and e.nationality is not null
    *) After that i created a system DSN for the excel drive..
    *) After that when i tried to import metadata of the excel data that is saved, it showed me connection failed...
    For importing this excel data
    what connection details i need to give:--------------------
    as well as user name and also password...
    Soon after importing this excel you said that to give key connection only to fnd_lookup_tables(dim) and that excel data..
    if so, again im not giving key connection to my fact table..
    I think again the same error will occur that no logical mapping is not made to fact so again repository is inconsistent...
    Hi bifact sorry to ask you, but can you see the steps that i followed is correct and after that wat more steps i need to proceed..Can you tell me in breif manner...Thanks for your help...
    Regards,
    Harry...

  • Use of lookup table in obiee 11g

    Hi All,
    I am working on OBIEE 11g RPD.
    Under BMM layer, when select logical table and go to there properties, In general section we have lookup table check box.
    what is use of that lookup table check box in obiee 11g.
    Thanx and Regards
    Prashant

    Please go thru this blog...nice explanation on Look up tables - new functionality in 11g
    http://www.rittmanmead.com/2010/08/oracle-bi-ee-11g-lookup-tables-sparse-and-dense-lookups/

  • Different link for each cell on table item

    hello..,
    I have one table item on my WAD template.
    I created Characteristic Structure/Selection for rows and Key Figure Structure/Selection for columns.
    There is a requirement to jump to different report for each cell on that table.
    Is it possible?
    I try to created class "ZCL_MYCLASS" with superclass of "CL_RSR_WWW_MODIFY_TABLE".
    And put some code on HTML as below:
    <P><object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="TABLE"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_GRID"/>
             <param name="DATA_PROVIDER" value="DATAPROVIDER"/>
             <param name="MODIFY_CLASS" value="ZCL_MYCLASS"/>
             ITEM:            TABLE
    </object></P>
    For testing purpose, I put coding on CHARACTERISTIC_CELL method:
    if I_CHAVL = 'Revenue'. "This is selection description
    c_cell_content = 'R_e_v_e_n_u_e'.
    endif.
    But, it seems that it doesn't work.
    The question:
    1. How do I create simple MODIFY_CLASS, just for testing purpose that what I modify in class is already correct.
    2. How to debug class on WAD?
    Thanks in advance

    Not statically, but you can do this in code:
    That's a method on the left and a property on the right.
    I don't know if this will work as you expect (it should change the tip strip, but I don't know if it will appear like you want it to), so you can also implement this yourself by having a string indicator which you show and move around using its properties.
    Try to take over the world!

  • Calculating Sum of columns for a row- OBIEE 11.1.1.6

    Hi,
    We are on OBIEE 11.1.1.6.
    We have  a pivot table with a measure MCount. Our Table looks something like this:
          X  Y  Z
    A  c1  c2 c3
    B  c4  c5 c6
    C c7  c8  c9
    We want to add another column "Total" which is equal to sum of  counts for each row. So our table should be like:
          X  Y  Z     Total 
    A  c1  c2 c3   (c1+c2+c3)
    B  c4  c5 c6    (c4+c5+c6)
    C c7  c8  c9    (c7+c8+c9)
    We added another column in Criteria tab with the following formula, where Dy is the dimension along the Y axis (i.e with values A B and C)
    rsum (Mcount BY Dy). We left the aggregation rule to be default (which is sum.)
    This solution calculates the sum, however for some reason is giving the value twice of the actual value. So modifying formula to rsum (Mcount BY Dy)/2 fixes our problem.
    Can anyone please suggest a better way of doing this ?
    Thanks!
    SJ

    Hi Srini,
    Thanks for your answer. I followed your suggestion and Unfortunately now the value is 4 times the actual value. I chose the aggregation rule for the measure as
    Aggregation Rule (Totals Row): Sum
    Am I missing something ?
    SJ

  • Expand and collapase column values of Pivot table in obiee 11g?

    Hi experts,
    I have Requirement.
    *----------------------(+value1)---(+value2)----(-value3)---------(+value 4)
    --------------------------------------------- x---y---z
    **col1*-----col2----------------------------------------------------
    ----abc-------sys-------------------------------------1---3---9*
    ---xyz--------inc-------------------------------------7---8---77*
    ----xyz2------inc2------------------------------------7---8---32*
    ----xyz3------inc3------------------------------------5---08--13*
    ----xyz4------inc4------------------------------------6---0----72*
    ----xyz5------inc5------------------------------------4---2----3*
    like that i want ...
    any suggestions / help..
    I hope you understand..
    Thanks
    Raam
    Edited by: Tallapaneni on Jun 16, 2012 5:10 PM

    i couldnt understand what you mean, can you please describe?

  • Multiple Logical Table Sources In BMM Under 1 Logical Table In OBIEE 11g

    I have a question and even after doing a lot of search on google i could not find any article so through to ask you :-
    I want to create a Logical Dimension table
    This logical dimension has columns coming from 2 different physical tables, TableA and TableB. The relationship between TableA to TableB is 1 to zero.
    There are 2 ways to create the logical dimension :-
    1) Go to the logical table source properties of TableA-->then there + sign click and then add TableB right outer join with tableA.
    Here in the logical table source we see only one table tableA.
    2) Drag the tableB column so that we have 2 logical table source.
    Please try this to explain without using the concept of fragmentation and without considering the fact tables. I have this question for simple logical dimension tables only.
    I wanted to know which is the right way and what requirement/factor decides what to do ?

    Check this post
    Business Model - Logical Table Source
    Let me know for Qs.
    If helps mark as correct :)

  • Measures as Rows in Pivot Table? OBIEE 11g

    Hi,
    Is it possible to show measures as rows and attributes as columns? I have only one value in my attribute columns.
    example:
    --------Company(Oracle)-----Country(India)
    Sales        100                  20000
    Units         50                  40000Thanks in advance.

    869650 wrote:
    Hi,
    Is it possible to show measures as rows and attributes as columns? I have only one value in my attribute columns.
    example:
    --------Company(Oracle)-----Country(India)
    Sales        100                  20000
    Units         50                  40000Thanks in advance.In the pivot table, you have a column for Rows, Columns, and Measures.
    Try this:
    Put the Measure Labels in the Rows section, the Company column in the Columns section, and your Measures in the Measures section.

Maybe you are looking for