Pivot table logic....

Hi All -
I need to create a pivot table on the following data :
Country : List of country names in one column
Cases : Case #'s of the cases which were raised for individual countries
Open Date: Date when the case was raised
Closed Date: Date when a particular case is closed
Query : we need to show the open and closed cases for a particular country on the basis of month...
Row of the pivot should be Country... In the column we need to have the month name and under it we need to have the count of open cases and count of closed cases...
could you please help me out in this?
The following is the view of the pivot table for example:
_____________________ January__________________________February_____________
Country Name______open Cases__Closed Cases_________open Cases____ closed Cases
Thanks!
Edited by: user8021111 on Dec 8, 2011 5:05 PM

user8021111 wrote:
Hi All -
I need to create a pivot table on the following data :
Country : List of country names in one column
Cases : Case #'s of the cases which were raised for individual countries
Open Date: Date when the case was raised
Closed Date: Date when a particular case is closed
Query : we need to show the open and closed cases for a particular country on the basis of month...
Row of the pivot should be Country... In the column we need to have the month name and under it we need to have the count of open cases and count of closed cases...
could you please help me out in this?
The following is the view of the pivot table for example:
_____________________ January__________________________February_____________
Country Name______open Cases__Closed Cases_________open Cases____ closed Cases
Thanks!
Edited by: user8021111 on Dec 8, 2011 5:05 PMDo this:
Assumption: You have a processing date column, I'lll call "Full Date" that is the date column you will use to track the "counts" of open and closed cases. The assumption is that in your database, this date column contains the "end of month" processing date for each month (e.g., 10/31/2011, 11/30/2011, 12/31/2011, etc.)
1) In the Rows section of your pivot table, put the Country column.
2) In Criteria mode, click on the fx button of the "Full Date" column and enter this
MONTH("Full Date")
This will give you the "month." Put this column in the Columns section of your pivot table.
3) In Criteria mode, click on the fx button of the Open Date column and enter COUNT(Open_Date_column). Put this column in the Measures section of your pivot table.
4) Do the same as step 3) for the Closed Date column.
So by putting the MONTH("Full Date") column in your Columns section of the pivot table, OBIEE will break out the Open Date and Closed Date counts by each month. That's how you do it.

Similar Messages

  • Removing (blank) from Pivot Tables Populated from Data Connection

    It took me a long while to fix this one (and a long time to search, because it's a funny one to try to use boolean logic for) and I thought I would share because I've seen a score of folks out there looking for this.
    If you have a pivot table with blank values in the row/column area instead of values, Excel automatically populates the cell with (blank).  The word blank shows up in any cell that doesn't have a value, but what if you don't want all those ugly (blank)
    values showing up in your report?
    If you're pulling the data from an outside source, like a SQL server (in my case from the Project Server Reporting database) then you can't just change the source data, so you seem pretty stuck.
    My coworker and I came up with the following fix:
    Select the entire sheet.  Use conditional formatting to find all cells that contain the text (blank).  Then for the format, go to "Number" and "Custom".  In the custom field, enter ;;;.  Apply the conditional formatting and those pesky
    (blank) values turn into real blanks.  This even works when copying pasting the data into another sheet or application.  And if the value changes the next time you refresh your data, the new data appears.
    I found this very valuable in my reporting and just wanted to put it out there for the rest of the community.

    Hi,
    Thank you for sharing your experience and post here.

  • How to extend No. of columns for PIVOT table in BI Publisher Desktop

    Hello Everyone,
      I am using the Oracle BI Publisher Desktop to design the TEMPLATE for Oracle Reports.
    I need to create the PIVOT table .In my PIVOT table I need to display 9 columns but when I tried to create PIVOT table by dragging 9 columns only first 4 columns are displaying in report.
    Can anyone suggest me how can I increase the number of columns in PIVOT table?
    Thank You.
    Regards,
    Guru.

    hi jim
    if you carefully look inside the form field's you will find the logic of sort . if you remove that you will get the data without any sorting order.
    else send me your template and xml to my email id i can look into that .
    email : [email protected]

  • Disabling auto sort of rows for Pivot Tables in BI Publisher

    is there a way to avoid the Pivot table in BI Publisher from sorting your data and just display the rows in the order retured from the data model ? By default it is sorting the data in asc order. Thanks !

    hi jim
    if you carefully look inside the form field's you will find the logic of sort . if you remove that you will get the data without any sorting order.
    else send me your template and xml to my email id i can look into that .
    email : [email protected]

  • Performing a specific calculation in a pivot table with BI Publisher 10g

    I am using BI Publisher 10g and new on it and I need to integrate a specific calculation measure in a pivot table
    The logic uses two measures that already exist in the report (Demand & PAB) and the required calculation is represented by a new measure/row (Calculated). The pivot time is in weeks
    Week w0     w1     w2     w3     w4     w5 .....
    Demand     d(w0)     d(w1)     d(w2)     d(w3)     d(w4)     d(w5) .....
    PAB     p(w0)     p(w1)     p(w2)     p(w3)     p(w4)     p(w5) .....
    Calculated     c(w0)     c(w1)     ....     ....     ....     c(w5) .....
    If p(w0) < d(w1) --> then c(w0) = p(w0) / d(w1)
    If not
    If p(w0) < d(w1) + d(w2) --> then c(w0) = p(w0) / ( d(w1) + d(w2) ) * 2
    If not
    If p(w0) < d(w1) + d(w2) + d(w3) --> then c(w0) = p(w0) / ( (dw1) + d(w2) + d(w3 ) ) * 3
    If not
    etc .... Same logics apply for c(w1) and so on
    Is such calculation logic achievable in Bi Publisher ? If yes, how would you do it ?
    Thanks for your time and support on this
    Regards, Samir
    Edited by: skaroui on 02-Mar-2012 05:50
    Edited by: skaroui on 02-Mar-2012 06:02
    Edited by: skaroui on 02-Mar-2012 06:12

    Can you use the logic that you specified in the data model (query) to generate the required data and then use it in the pivot table? That would be the easiest way to do it. Tweaking the code to include the conditional logic/calculated measures is not going to be straightforward..
    Thanks,
    Bipuser

  • Pivot Table: measure values are not shown

    Good afternoon!
    I'm trying to show data in pivot table. All the columns are in single logical table. I have achieved next result:
    Image: !http://pics.livejournal.com/whitish/pic/0000hgz1!
    But measures in cells are'not displayed.
    In physical data source (xls file) my data stored as:
    Image: !http://pics.livejournal.com/whitish/pic/0000kctt!
    Could someone please help me to display my measures in cells?
    Thanks in advance,
    Alex.

    Hi.
    Maybe is aggregation rule on Fuzzy Clussification measure set to None (more option/aggregation rule), if yes leave it to default.
    Regards
    Goran
    http://108obiee.blogspot.com

  • Wrong value with calculated item in pivot table

    I have a report with 4 columns:
    First Column are Department Dimension
    Second Column is Actual value
    Third Column is Previous value
    Four Column is: ((Actual Value-Previous Value)/Previous Value))*100 that called Var
    Then I do a pivot table and I have new calculated item: Department1/Department2 and I have wrong value in four column:
    Department----------------------------------Actual-------Previous------Var
    Dept1------------------------------------------18503--------16308--------13,5
    Dept2-------------------------------------------3758---------3518----------6,8
    (Calculated Item: Dept1/Dept2)--------4,92---------4,64------------*2* <---- This value is wrong...and it has to be: 6,03
    Is possible to get the correct value???
    Thank you very much!

    hi,
    Create a logical column with ur calculation formula and make it as default agg rule in rpd and answers change it to server determined/server complex agg.I did the same it was working fine for me!!
    Check this link
    http://books.google.com/books?id=OnbYrkWa4RsC&pg=PA74&lpg=PA74&dq=%22server+complex+aggregate%22&source=web&ots=qxrpaFXmo2&sig=CxLOemzcOlvIiaQ_sQD4fPQotdM&hl=en&sa=X&oi=book_result&resnum=5&ct=result#v=onepage&q=%22server%20complex%20aggregate%22&f=false
    thanks,
    saichand

  • Conditional formatting in Pivot table

    Hi,
    I have a pivot table based on a Data Model.
    For simplicity It has are four fields
    1 for row, 1 for column, 1 for display data, 1 logical field.
    I want to format data cell based on the logical field, but I don't want to display the logical field on Pivot table.
    Could anyone give me a hint please
    Thanks
    Ponraj

    Okay, I was hoping the easiest part of what I did would work for you. So now we "roll up our sleeves." What is the error message you get?
    Something to remember: This only works on CHAR columns. If you have a calculated measure, you have to do it in the BMM layer, then bring the "string version" of the columns in the Presentation Layer.

  • Pivot table calcualtion

    Hi Experts,
    I have a pivot table in which i need to show the % change between the last 2 months(i,e (Mar-09) - (Feb-09)/(Feb-09)). I want this change automatical when ever the new month comes like when data added for the month of Apr-09 then it should calculate ( (Apr-09) - (Mar-09) / (Mar-09)). can i do it in report?
    FY 2009
    FY Category Sub category Dec -08 Jan -09 Feb-09 Mar-09 % change Avg
    2009 Novel fiction 10 20 30 50 66% 50
    Non-fiction 5 10 15 25 66% 25
    Thanks in Advance

    Hi
    There are many ways to achieve this
    - Set the prompt default value as current_month
    - Use Monthly_Sales, 1M_Ago_sales, 2M_Ago_Sales, Variance
    You may perform these calculations in Logical layer in rpd as well as in Answers reports, depending on nature of urgency.
    in simple terms, create 2 variables for current month and previous month and use them in case statements
    sum(case when time.yyyymm = curr_month then fact.m1 else 0 end) as c2,
    sum(case when time.yyyymm = prev_month then fact.m2 else 0 end) as c3
    Hope this works

  • Index year to year in pivot table

    I need to create table and chart as show on picture http://vp.hu.cz/bi2.jpg (sorry numbers are random and displayed sums do net equal to it).
    I dont know how to display indexes (fourth row and last column) in table.
    Indexes in row are: SUM_YEAR_2006/SUM_YEAR_2006, SUM_YEAR_2007/SUM_YEAR_2006, SUM_YEAR_2008/SUM_YEAR_2006
    Indexes in column are: SUM(FACT)_YEAR_2008/SUM(FACT)_YEAR_2007 for every row.
    My second problem is the chart I am not able to display percents in the graph because: In normal table I am not able to get sum for the year. And in pivot table (where the percents is not difficult) I am not able to build chart like the picture.
    ATENTION: The time interval is not every the whole year and then I can't use level based measures ....
    Thank you

    Not sure but you can use Javascript with clientlistener to know which key has been pressed or mouse click
    check this blog entry it shows how to display LOV on F9 key you can take the same logic but with other key
    http://baigsorcl.blogspot.com/2010/06/display-lov-on-f9-key-in-oracle-adf.html

  • Variance between 2 columns in a Pivot Table

    Hello,
    We have an analysis that is a Union of 2 analysis. It has two result columns in the Union, each column have a value of one month. We have to create a third column with the variance between the second and first column.
    We are using a Pivot Table and creating a New Calculated Item in the month column with difference between the columns ($2 - $1). But this results in four different columns - The 2 original ones and the difference repeated (for each month).
    Pls. is there a way to build the pivot table the way we need it ? with just the 3rd column as a variance result.
    Txs for any help.
    Antonio

    You may get the logical query as below
    SELECT saw_0, saw_1, FROM (
    (SELECT A saw_0, B saw_1 FROM "SA" )
    UNION
    (SELECT C saw_0, D saw_1 FROM "SA" )
    ) t1 ORDER BY saw_0
    I would suggest to create another column at first line of SELECT so that you can use those saw_0, saw_1 columns to get another column something like
    SELECT saw_0, saw_1, saw_0+saw_1 FROM (
    (SELECT A saw_0, B saw_1 FROM "SA" )
    UNION
    (SELECT C saw_0, D saw_1 FROM "SA" )
    ) t1 ORDER BY saw_0
    This is just a hint you need to put in your requirements
    if make sense mark :)
    Edited by: Srini VEERAVALLI on May 14, 2013 10:35 AM

  • Issue with null rows and calc measure in pivot table

    hello;
    id like to ask if anyone encountered a similar behaviour in OBI and if there is woraround for that;
    in my BM i have 2 facts tables; i added in BM logical layer a calculated measure (calc_value) ,which is based on 3 other measures coming from these 2 facts tables
    :calc_value= value1 / (value2+value3) ; value1 coming from fact1 and value2 / vfalue3 coming from fact2
    depending on the chosen dimensions/level in report, the result of the calcuated measure is different ,which is correct;
    the lowest level in fact1 and fact2 are customer/product.
    in Answers when i select this calculated measure into report, a full outer join gets created, joining these 2 facts tables on all the dimensions that were chosen into the report i.e. in my case year/region/customer/product.
    as a result there are null rows created in the db query, if some of these combinations exist in 1st fact table , and do not exist in 2nd fact table and other way round;
    when i display result as a table, i can see the calculated measure only on the lines that are common for both fact tables and this is correct;
    however - when i create a pivot table, and DO NOT select into the pivot the customer/product (so the lowest level), but still select these items into criteria, then the calc_value is not displayed correctly; instead of the value that would be shown as if calculated at the higher level i.e. year/region, simply 0 is displayed;
    i was wondering how this can be corrected, so that OBI displayes in pivot the calc_value as of the level which is shown in pivot (so if i show in pivot year/region/customer/product -> then at this level; if i put customer/product to 'exclude' in pivot, then the level should be year/region);
    i noticed if i filter out at least 1 combination that create null rows then the values are shown correctly in pivot (but the db query still contains null rows), so i tend to think this is presentation issue, not design;
    id appreciate any tips on how to resolve this issue
    OBI vesion: 10.1.3.2
    thx
    rgds

    Hi write a case statement during logical column such that when value is present it takes value else zero for call the values i.e. value1, value2, value3.
    i.e. case when column1 is not null then column1 else 0.
    Then, do the calculation.
    Hope this might helpful for you.

  • How to make a layer from the ADF pivot table invisible?

    Hi all,
    ADF pivot table is a useful component which can be used to provide table data rendering. However, I have not found any method to hide one layer from the row edge (or column edge) of the pivot table.
    For example, please have a look on this demo: [http://jdevadf.oracle.com/adf-richclient-demo/faces/components/pivotTable.jspx]
    There are two layers in the row edge of this pivot table, one is Time, one is Product. For product, there are two categories, one is Tents, one is Canoes.
    Is that possible to make the Product layer invisible from user, while still keeping the two rows of product data for that year showing up? how to do it?
    The problem is that pivot table relies on the product layer to separate the two rows of product data, and if I remove the product layer, only the second row of product data for each year can be shown up.
    Please advise how I can make the Product layer invisible.
    Thanks
    Richard
    Edited by: user12847742 on Oct 6, 2010 12:58 AM
    Edited by: user12847742 on Oct 6, 2010 1:04 AM
    Edited by: user12847742 on Oct 6, 2010 1:10 AM

    Hi, Yiannis,
    Thanks for the clarification.
    First, for clarity, I'd like to point out that you and Richard are inquiring about different functionality. Richard wanted to hide a layer that is logically present on the edge, so that there are still separate rows for Tents and Canoes, but without row headers indicating which row is which. As I noted previously, this is currently unsupported.
    By contrast, you're asking about truly removing a layer from the edge. For rowset DataControls, this can be done using the CubicEditor interface. Given the following PivotTable:
    <dvt:pivotTable id="pivotTable1" value="#{bindings.Record.pivotTableModel}"/>the CubicEditor can be retrieved by calling:
    DCBindingContainer bindingContainer = (DCBindingContainer)ADFContext.getCurrent().getRequestScope().get("bindings");
    CubicBinding cubicBinding = (CubicBinding)bindingContainer.findCtrlBinding("Record");
    CubicEditor cubicEditor = cubicBinding.getCubicEditor();You can then add a layer:
    LayerDefinition layerDefinition = new LayerDefinition("Product");
    cubicEditor.addLayer(DataDirector.ROW_EDGE, 1, layerDefinition);and remove a layer:
    cubicEditor.removeLayer(DataDirector.COLUMN_EDGE, 0);At the end, you'll need to PPR the Pivot Table.
    Hope that helps.
    Jim

  • Error in displaying pivot table

    Hi everyone,
    I have't seen any thread that gives me an answer to my problem.
    I have OBI SE 10.1.3.4 on Windows Server 2003.
    In physical layer i've table REQUEST:
    Pack varchar,
    Seg varchar,
    State varchar,
    SUM_ACT double,
    SUM_PRE double.
    I mapped REQUEST into two tables in Business Model and Mapping:
    DIM_REQUEST:
    Pack varchar PK,
    Seg varchar PK,
    State varchar PK
    FAC_REQUEST:
    Pack varchar FK,
    Seg varchar FK,
    State varchar FK,
    SUM ACT double, -- Sum()
    SUM PRE double, -- Sum()
    PERC double
    PERC is a new logical column: +((SUM ACT)/(SUM PRE))*100+
    Then I mapped FAC_REQUEST into the Presentation layer.
    In Answers I create pivot table with:
         Rows:
         Pack
         Seg
         Measure Labels
         Columns:
         State
         Measures:
         SUM ACT double
         SUM PRE double
         PERC
    Everything is fine, but when I try to add to the pivot table SUM: Columns->Sum (After or Before), I got the following error:
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    +State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] Błąd ogólny. [nQSError: 46036] Asercja+
    wewnętrzna: Warunek rightAtomicTableSet.insert(*tableIter).second, plik .\Src\SQONPathJoinComposer.cpp, linia 671.
    +(HY000)+
    SQL Issued: SELECT Zlecenia.Pack saw_0, Zlecenia.Seg saw_1, Zlecenia.State saw_2, Zlecenia."SUM ACT" saw_3,
    Zlecenia."SUM PRE" saw_4, Zlecenia.PERC saw_5, AGGREGATE(saw_5 BY ), AGGREGATE(saw_5 BY saw_2), AGGREGATE(saw_5 BY saw_0, saw_1) FROM TEST ORDER BY saw_0, saw_1, saw_2
    Any idea?

    https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=noclassdeffounderrorIWDAbstractTableColumn&adv=false&sortby=cm_rnd_rankvalue
    java.lang.NoClassDefFoundError
    Error while binding node attribute to a  UI  element (table)
    Problem with NWDS 7
    class def error?

  • Pivote Table

    I have two measurement columns in my pivot table. One has values that need to roll up into an over all row total for a customer. A second column has one value that repeats but in the pivot table it totals all the rows as well but I just need the one repeating value to show once. Then have a grand total at the bottom of the table. How might I over come this obstacle? Is there a group by function like in SQL?

    the following logic display the sum only once per contact.
    case when rank (Opportunity."Created Date" by Contact."Contact ID") = 1 then sum(Opportunity."Opportunity Revenue" by Contact."Contact ID" ) else null end
    You could create something simularly. Hopefully, this is waht you are looking for.

Maybe you are looking for

  • I need to upgrade MacBook Pro

    Hello and happy new year to you guys! I own a MacBook Pro 15" 2,53 GHz mid-2009. since I'm a poor student I can't really afford buying a new one for now, I just purchased an iPad mini 2 (which I don't regret at all). So here I wanted to upgrade it si

  • How to restore missing apps after a itunes sync?

    Have iPhone 4   iOS 4.2.8 To install an app (Skype), my phone recommended I do it thru iTunes 10.5.2 (via usb tether) Checked the sync box, selected the Skype app after I downloaded it in iTunes. The sync process went thru a bunch of 'finding, removi

  • Document distribution...

    Dear All... Greetings!!!!! I am new to DMS,basically I am a PP functional person and am not having that much knowledge abt DMS,but aware abt the functional and how it is carried out at transactional level. I searched abt DISTRIBUTION process in DMS ,

  • Calling Beans from JSP page

    hi, I tried to my best to call java beans from JSP page but it generate error that "unable to load class....", please help me that in which directory jsp file and bean *.class file reside, currently my setting are as follows. Note: I am using tomcat

  • Info record creation - Bapi or standard function module

    Hi All,   Is there any std function module or bapi to create Info record in transaction Me11 transaction. <REMOVED BY MODERATOR> Regards, Vinoth. Edited by: Alvaro Tejada Galindo on Apr 14, 2008 1:27 PM