Calculating TOTAL of values in a pivot table based on CELL COLOUR-OBIEE10g

Hi,
i have a requirement like
In a Pivot table there are a number of rows with different colours (Eg. 3 rows with all the cells in GREEN COLOUR and the other 2 rows are in RED COLOUR ), I have to calculate the Total for RED and GREEN seperately. Could you please help me in this requirement.
col 1 col 2 col 3
2 3 4 green row 1
7 9 2 RED row 1
1 6 8 green row 2
3 9 5 RED row 2
3 9 12 GREENTotal
10 18 7 RED Total
Thanks in Advance.

Hello Abdul,
Please follow the below thread
Conditional formtting in Grand total
http://obiee101.blogspot.com/2010/02/obiee-pivot-conditional-format-grand.html
Hope its helpful.
Thanks
Please close the open threads whose answers has been provided by awarding it, to help others followers

Similar Messages

  • Sum the value of look up table based on two filter criteria

    Hello Everyone
    I am new to Powerpivot and would appreciate if someone could help me on the following problem.
    You can download the example of this excel file form the following DropBox link:
    Dropbox Link
    The first table is tOrders
    Week number
    Work center
    order number
    Production time in minutes
    2
    a
    111
    60
    2
    a
    112
    70
    2
    b
    113
    60
    3
    b
    114
    50
    3
    a
    115
    40
    3
    b
    116
    60
    4
    a
    117
    90
    4
    b
    118
    40
    The second is dLookupList
    Week number
    Work center
    mantenace in minutes per week
    Break dows in minutes per week
    2
    a
    10
    10
    2
    b
    20
    5
    3
    a
    15
    12
    3
    b
    30
    10
    4
    a
    20
    10
    4
    b
    10
    10
    I’m trying to create Pivot that has filter on Week number to show the number of orders, Sum of Production time in minutes and the total of the values form the lookup table dLookupList that matches the work center and the selected week
    numbers. So that I can calculate the total time for each work center.  Filter criteria is Week number and Work center.  
    For example if someone select all weeks numbers the result sould look like this
    Week number
    (All)
    Work center
    Count of order number
    Sum of Production time in minutes
    mantenace in minutes per week
    Break dows in minutes per week
    Total time
    a
    4
    260
    45
    32
    337
    b
    4
    210
    60
    25
    295
    Grand Total
    8
    470
    Result for week 2
    Week number
    2
    Work center
    Count of order number
    Sum of Production time in minutes
    mantenace in minutes per week
    Break dows in minutes per week
    Total time
    a
    2
    130
    10
    10
    150
    b
    1
    60
    20
    5
    85
    Grand Total
    3
    190
    How can I relate these two tables to get the above result?
    Any help is highly appreciated.
    Regards
    Priyan

    Hi Recio
    Thank you very much for the swift response. I was able to get it work.
    I got two questions:
    How do you add a total time column to the pivot table like you did? Because there are no calculated field in power pivot.
    I prefer that the filter is based on the Orders table. So that if you select all Week numbers in the filter, that pivot will show result for all orders and relevant sums from the lookup list.
    Link download the example file
    For example: I add Week number 5 to the work center “a”
    Week number
    Work center
    WNandWC
    mantenace in minutes per week
    Break dows in minutes per week
    2
    a
    WN2WCa
    10
    10
    2
    b
    WN2WCb
    20
    5
    3
    a
    WN3WCa
    15
    12
    3
    b
    WN3WCb
    30
    10
    4
    a
    WN4WCa
    20
    10
    4
    b
    WN4WCb
    10
    10
    5
    a
    WN5WCa
    1
    1
    In the orders table there are no records for week number 5
    Week number
    Work center
    WNandWC
    order number
    Production time in minutes
    2
    a
    WN2WCa
    111
    60
    2
    a
    WN2WCa
    112
    70
    2
    b
    WN2WCb
    113
    60
    3
    b
    WN3WCb
    114
    50
    3
    a
    WN3WCa
    115
    40
    3
    b
    WN3WCb
    116
    60
    4
    a
    WN4WCa
    117
    90
    4
    b
    WN4WCb
    118
    40
    4
    a
    WN4WCa
    119
    50
    But the pivot sums up the week number 5 also.
    Do you have any idea how to solve it?
    Thank you very much.
    Regards
    Priyan

  • Resetting calculated values  in Answers pivot tables

    We have a a pivot table whereby we summarize by zones. Our calculation is derived using running aggregates.
    E.g
    Zone name | Value 1 | Value 2 | Calc Value
    Zone A X y x/y
    Zone B A B A/B
    However we are unable to reset the value of our running aggregate when our zone changes. Hence for Zone B in the example we are getting a value = (X+A)/(Y+B) when we want A/B.
    We are calculating our values at previous 7 day intervals so hence these have to be calculated at run time
    We are in 10.1.3.4
    All help would be appreciated.
    Thanks

    Hi,
    you can with this syntax inside the column Calc Value of a table view:
    RSUM(Value 1/Value 2 by Zone name)
    Hope it helps.
    Regards,
    Gianluca

  • Summarize total for Row items in pivot table

    Hi,
    I have a certain number of row items and few fact columns. 2 of the row items are level based measures that will summarize on other conditions so I cannot have them in the Fact section. But for these 2 row items (in the Rows section) I want them to summarize the values (a total sum under) as for the Fact columns, but it seems impossible to do this in a pivot table.
    I tried everything. This is a very irritating limitation to Pivot tables. Anyone have a good solution to this? (I have to use Pivot table because I have numbers showing for each month, table view will not work for this)

    Hi Alf,
    Just for everyone else checking this post out, here is the image you posted.
    !http://i45.tinypic.com/15x50r6.jpg!
    Now I see what you are talking about. Based on that screen-shot and your post, it looks like three of your measures (Arsbudsjett, Lok. budsjett, Akk.regnskap) are placed in the "Rows" section of the pivot table because you don't want them pivoted on the month. You just want them displayed as a single column and you want to pivot the other measure by month.
    However, it appears that OBIEE does not summarize items in the "Rows" section and only provides sub-totals for columns in the "Measures" section.
    I have two follow up questions
    1) What technique are you using to breakup the column "KOSTRA art"? There seems to be some kind of grouping at the value "Lenn og sosiale utgifter". What is special about that value on how is that grouping or break in the data created?
    2) One of those three measures, Akk.regnskap, does have a sub-total but the other two, Arsbudsjett, Lok. budsjett, do not. What is different about Akk.regnskap that causes it to have a sub-totals?
    Thanks for the follow up questions.
    -Joe

  • Showing Zero values in OLAP Pivot Table for Excel 2007

    Hello,
    I needed a help to a problem. Is it possible to show the values with No sales in an Olap Pivot Table ??
    I have a sales Cube, and brwsing it via excel i wanted to filter on a Product Category and see how many products in this category had made no Sales. By default the Pivot table doesn't shows the empty values, so if i check the Showm empty rows option for
    Pivot Tables, i see the whole of the products populated with and without sales, and i can't filter further. Is there a way i can only get those which have no sales.
    Vinish Viswanathan

    Happy Holidays,
    I can slice on product categories in Excel 2013 with these settings for the Pivot Table:
    Activate "Show items with no data for rows and columns"
    Apply a value filter that says that the measure should filter on values = 0
    Have the product natural hierarchy on rows with levels product category->subcategory->product.
    Expand the levels below product category
    Use the product category attribute and not the hierarchy as the filter.
    I do not have Excel 2007 installed anymore.
    HTH
    Thomas Ivarsson

  • Grand total of 2 measures in pivot table

    Hi,
    I have a requirement to show in a pivot table in which there are 2 measures - Male_count and Female_count. In the column I have Age_group such as 20-30,30-40 etc. In the row I have grade like assistant, manager etc. The requirement is to show column subtotals - total male count & total female count as well the total no. of employees (F+M) across all age groups. Using the column total I get only the sub total part. How can i get the total part?
    Look forward to your inputs.
    Regards,
    J

    Grade
    25 and under
    26-40
    40-55
    55 and above
    Subtotal
    Grand total
    F
    M
    F
    M
    F
    M
    F
    M
    F
    M
    Manager
    0
    1
    1
    1
    2
    2
    3
    4
    7
    8
    14
    Assistant
    0
    1
    1
    1
    2
    2
    3
    4
    7
    8
    14
    Developer
    0
    1
    1
    1
    2
    2
    3
    4
    7
    8
    14
    Using OBIEE pivot features I am able to obtain upto the Subtotal but I am not getting the Grand total.
    Hope this pivot gives an idea of what I am trying to implement.
    Thank you.

  • Displaying a total sum value in the af:table - footer

    Hello everyone,
    I have seen various threads on how to calculate a summary column based on a af:column in an af:table. I would like the value of this column to be displayed in the af:table -> footer (right undernead the af:column)
    I'm having trouble putting together the pieces. This is the last requirement I have on this page, so hopefully I won't have to start all over.
    Here this what I have:
    I have created my page. (jspx) I did not create the page with a "backing bean". I have seen in various threads that the backing bean can be used to programmatically populate the table.
    This is what I have done so far.
    For the DataModel:
    I have created my entity object, and I have a view assigned to the object. I assigned the view to my Application Module.
    For the UserInterface:
    On the layout, I dragged the instance of the view from the page definition. I created an af:table.
    My questions/train of thought are:
    I didn't create a "backing bean" when I first created my jspx page. From the various threads that I have seen, they all reference this. Can anyone explain how I can do this when the page has already been created? I'm using jdev version 10.1.3.3
    Within the backing bean, I assume this is where I would then create a method that would do the "sum" of my column.
    To display the column:
    I would then create an af:output_text and drag it to theh table footer. The binding section
    If anyone has a prior thread that I haven't found that can point me in the right direction with what I already I would really appreciate it.
    Thanks

    Kuba,
    By creating a managed bean against the page definition, you are able to access the "iterator". The iterator is an object that is based off of hte View object (which the page is build off of)... From there, you can then loop through the rows and add them together to come up with the total sum.
    You can then reference this method in the TEST.java class since it was created as a managed bean.
    I believe I got the gist of it now... Coming from an Oracle Forms perspecitive, it is actually pretty similar. Now I understand what Managed Beans are used for. Thanks again for the great example.
    Danny

  • How to move Calculated Item in 3rd row in pivot  table.

    Hi experts
    I have calculated one calculated item in Piovt, Now i want to move it as 3rd row, So how can i achieve it.
    Thanks in advance
    Regards
    Frnds

    Hai Madhu,
    It is pretty simple.
    First u define a button. and in onAction  Event of the button write the following code.
    process is as follows:
    1)get the node
    2)get the element
    3)using the method remove_element() ,remove the element.
    <u><b>The Sample Code is as follows</b></u>
    DATA:
          node_flighttab                      TYPE REF TO if_wd_context_node,
          elem_flighttab                      TYPE REF TO if_wd_context_element.
        node_flighttab = wd_context->get_child_node( 'FLIGHTTAB' ).
      get element via lead selection
        elem_flighttab = node_flighttab->get_element(  ).
        node_flighttab->remove_element( element = elem_flighttab ).
    Follow the above code ,it will definately help you.

  • Calcullating no. of records in an internal table based on condition

    Hi,
    i have several records in an internal table. i need to calculate the number of records which meets a condition. is there any simple logic to find the records which meet the required criteria apart from looping into the internal table.
    your help would be appreciated.
    Thanks,
    kranthi.

    Hi,
    U can use sy-dbcnt after the select querry.
    DBCNT  Number of elements in edited dataset with DB operations
    WRITE: /12 'Number of selected records:', SY-DBCNT CENTERED.
    REPORT ZZZ_TEST1 .
    Tables: mara.
    Types: begin of ty_mara,
           matnr like mara-matnr,
          end of ty_mara.
    DATA: i_mara TYPE STANDARD TABLE OF ty_mara.
    DATA: v_cnt like sy-dbcnt.
    SELECT-OPTIONS: s_matnr FOR MARA-matnr.
    SELECT matnr from mara into table i_mara.
    if sy-subrc = 0.
    v_cnt = sy-dbcnt.
    WRITE: /12 'Number of selected records:', v_cnt CENTERED.
    endif.
    Hope this helps u.
    Thanks & Regards,
    Judith.

  • Grand Total in Pivot Table

    Hi, I have a pivot table with several measures and grand totals. The problem is that there is one measure where the totals show up incorrectly. By incorrectly I mean that this shouldn't be sum of rows, but a different calculation and I haven't found a way to define separate calculation for this total.
    Is there a way to hide totals for this one measure? Or is it still somehow possible to use some different value/calculation in there?

    In the Pivot Table I'm currently using sum, because I'm combining different queries with union. In the actual query these values are calculated by row using Count Distinct. Now in the total it just sums up individual Count Distinct values but the correct value should be Count Distinct for total data set.

  • Calculated column in pivot table

    How can I add a calculated column (Daily Average) in a pivot table like this?
    "Product" in row and "Date" in column and a "Daily Average" column to the right.
    Date1 Date2 Date3 +Grand Total       Daily Average+
    Product

    click right mouse on column you will get duplicate column
    in duplicate column propties you have option like aggreate avg apply it you will get result
    regards
    bethamsetty

  • How to Sort Dimension in Pivot Table via Order Column which is changing like Factual values

    Hi,
    Recently in of our product offerings we got stuck on this following question:
    How to Sort Dimension based on the Order Value which Keeps Changing with Factual Values??
    We have a data source laid out as (example)
    In the above the “Order” columns are changing per
    Company/(DimensionA) for DimesnsionB.
    Instead what we want is: (But only if we can get the following result without putting the “Order” Column in the “Values” Section. 
    If there are any configurations that we can make to our power pivot model for the similar data set so that the
    DimesnionB in this case can be sorted by the Order column, would be greatly helpful to us. 
    Sample File:
    http://tms.managility.com.au/query_example.xlsx
    Thanks
    Amol 

    Hi Amol,
    According to your description, you need to sort dimension members in Pivot Table via order column, and you don't want the order column show on the Pivot table, right?
    Based on my research, we can sort the data on the Pivot table based on one of the columns in that table, and we cannot sort the data based on the columns that not existed on the Pivot table. So in your scenario, to achieve your requirement, you can
    add the column to pivot table and hide it.
    https://support.office.com/en-gb/article/Sort-data-in-a-PivotTable-or-a-PivotChart-report-49efc50a-c8d9-4d34-a254-632794ff1e6e
    Regards,
    Charlie Liao
    TechNet Community Support

  • Grand total in Pivot Tables with Paging

    I could help with this issue please
    when we apply paging PivotTables there a way to show Grand total all pages, and I've noticed that the Grand total vee only when the last page or show all results at once.
    For me it is important to see the Grand total on every page.
    Thanks in advance for your cooperation

    If you're not talking about printing, then you can do this:
    1) Instead of using the same pivot table that you created for details to also display the Grand Total, first paginate the pivot table. Look here:
    Re: Pivot table
    In your pagination, break your pivot table in groups such that you can see a small enough chunk without having to scroll too much.
    2) Now that you have a manageable size pivot table, create the Grand Total as another pivot table. Take out all the attributes that break the total in detail and leave only what will give you the Grand Total.
    3) Add this pivot table to the bottom of your detail pivot table in step 1. This will give you the grand total right underneath each page of your detail pivot table without having to go all the way to the end of the report.

  • Report totals with dimension hierarchy column on pivot table incorrect

    Hi,
    I have a pivot table based report that has one dimension column, a dimension hierarchy column and various measures.
    The row totals do not match, detail to total, and I have tried both complex server based aggregate and report based aggregation, but neither are giving me the correct answer.
    I have also tried adding the column that is the same as the top level as the hierarchy, but hidden, but this does not help.
    I have also tried adding the lowest level of detail column, but hidden, but this does not give me the solution I need as all of the figures then appear at detail not aggregated level.
    Any ideas please?
    thanks,
    Robert.

    Can you validate the query hitting to the database and compare the results?
    Mark if helps.
    Thanks,

  • Pivot Table - Hide Repeated Values

    Page 131 of the Answers user guide refers to a 'Hide Repeated Values' setting for pivot tables. I don't see this anywhere. Please help!

    Hi,
    you can find 'Hide Repeated Values' in option menu of a column dragged and dropped in Section.
    Regards
    Cosimo

Maybe you are looking for

  • Apple tv does not work or reset

    All the unit does is alternate between the apple logo and a blank screen.  I have tried to reset the unit but it does no good.  Any ideas?

  • New Mid 2013 Macbook Air Battery Problems

    Hi, I just bought a new Macbook Air 2013 13" 128GB , 4GB RAM. I'm worried about my battery life. With only 1 hours of just surfing the net and on 30% brightness, my battery life dropped to 80%. So every 30 minutes, it drops by 10%. I also found that

  • WRT54G (v7) reboots when notebook connects

    Hey folks! I really have a weired issue here... My WRT54G (Version 7) was running just perfect for a couple of years already... I've bough a new Netbook recently and when this netbook connects to the router it takes about 10 seconds and the WRT54G re

  • Video will not play in IE but works in other browsers

    I have a flv video on a page which was placed there using Dreamweaver CS4.  It plays in all other browsers I test it in except IE7. (Firefox, Chrome, Safari) Others verify it dooesn't play in IE7 also.  Doesn't even play when I test in 'preview in br

  • How to find out last month's 1st & last date

    could you please tell me how can I find out last month's 1st & last date? regards