Pivoting in Discoverer

Given the following situation:
I have units delivered per person.
Now I have two chriteria (only example :-) I'd like to do pivoting:
Persons Weight (kg)
Persons Age (years)
I want it to look like this:
Age | <60kg | 60-80kg | >80kg
20-30 | 1 2 3
30-40 | 0 5 2
40-50 | 5 6 1
50-90 | 2 3 4
Is this possible with discoverer (calculation/crosstable?)
Thanks for any help in advance.

Hi
You can do this using a Crosstab coupled with three calculations.
Calc 1: Age Category
CASE WHEN Age >= 20 AND Age < 30 THEN '20-30'
WHEN Age < 40 THEN '30-40'
WHEN Age < 50 THEN '40-50'
ELSE '50-90' END
What about when Age < 20? You may want to consider this alternative:
CASE WHEN Age < 20 THEN '0-20'
WHEN Age < 30 THEN '20-30'
WHEN Age < 40 THEN '30-40'
WHEN Age < 50 THEN '40-50'
ELSE '50-90' END
Calc 2: Weight Category
CASE WHEN Weight < 60 THEN '<60Kkg'
WHEN Weight < 80 THEN '60-80kg'
ELSE '>80kg' END
Calc 3: Headcount
SUM(ROWNUM)
If you place the Age Category on the left axis, the Weight Category on the top axis and the Headcount in the Data Points and your workbook will be done
By the way, if the categories don't display in the order you want then simplay prefix the value inside the quotes with a number. For example, let's change the Weight Category:
CASE WHEN Weight < 60 THEN '1. <60Kkg'
WHEN Weight < 80 THEN '2. 60-80kg'
ELSE '3. >80kg' END
Hope this helps
Best wishes
Michael

Similar Messages

  • Unable to group with page breaks when creating pivot table in BIP

    Hi,
    I'm using BIP 10.1.3.4 and I need some assistance with report with pivot tables. I used the wizard to successfully create the pivot table but i need to add a group and break the page on that group. Is there any way i can do this?
    Thanks.

    HI Bala,
    I am Durgaprasad from Pune-INDIA, working as a OBIEE developer, I have one query which I mentioned below can you please go threw it.
    I have done migration Discoverer Admin EUL Layer into OBIEE repository using below methodology.
    Navigate to the <installdrive>\OracleBI\server\Bin directory. There are two important files in this directory: the migration assistant executable file named MigrateEUL.exe and a properties configuration file named MigrationConfig.properties.
    Could you please help me how to migrate discoverer plus workbooks and worksheets into OBIEE Answers?
    go through below link, It will show navigation steps for migrating of EUL from Discoverer to OBIEE.But i need migration of workbooks and worksheets from Discoverer into OBIEE Answers.
    http://www.oracle.com/technology/obe/obe_bi/discoverer/discoverer_1012/discomigration/migrate_disco_biee.htm
    This is very great full help to me …
    Advance thanks for your suggestions.
    Regards
    Duraga Prasad.

  • Migration of Discoverer 1g reports to OBIEE

    we are trying to migrate reports from Discoverer 10g to OBIEE 10.1.3.4.We have migrated the EUL using the utility tool provided by OBIEE.
    Now we were trying to use the sample reports and migrate the same to OBIEE 10.1.3.4.
    We are using a sample xml which we will be using to migrate the reports .We have a web service which takes report inputs in this XML format, converts and save OBIEE reports.
    SInce OBIEE does not have tabs(worksheets) like Discoverer,we thought
    we will have to prepare xml for each tab and present it as a single
    report in OBIEE.
    1) Can u please suggest if this is right or there is some
    workaround for it or if anyone has idea about it?
    We could also do some changes to the xml to incorporate some functions of discoverer if anyone has suggestions.
    We are assuming that Crosstab reports are similar to Pivot tables in OBIEE.
    2) But we are not sure how to incorporate the page items in thexml.plz suggest if anyone has ideas since not sure if page items can be handled in OBIEE.
    3) Can someone help us in completing with this below xml by taking example of the sample reports present in discoverer.The values of reports are to be included in the xml
    Any help would be great since we are trying this for the first time and we are not well versed with xml too.Please find below the sample xml we are using
    - <OBIEE version="10.1.3.4">
    - <report Name="" subjectareaname="">
    - <!-- All the columns used in any of the views will be added here in critera
    -->
    - <filters>
    - <!-- Filter parameters
    type : logical/SQL
    if type = "logical"
    operator : logical operator if type is logical
    SQLName : Physical Table.Column name on which the filter is applied, if type is logical
    dataType : Data type of the column mentioned in SQLName
    VALUE : Value of the filter
    if type = "SQL"
    sqlExpression: filter SQL expression
    -->
    - <filter type="" SQLDefinition="" operator="" negate="" includeNULLs="">
    <filterValue dataType="">VALUE/sqlExpression</filterValue>
    </filter>
    - <!-- parentSection filter Expression and Name in case of HIR to OBIEE Migration
    -->
    <referenceFilterExpression Name="">FilterExpression</referenceFilterExpression>
    </filters>
    - <!-- column Prarameters
    ** SQLName : Physical Names of Table.Column [Column Definition]
    sort : asc/dsc
    Name : column name to be shown as
    datafunction : aggrigate function applied on the column
    showColumnTotal : True/False
    SuppressDuplicates: True/False
    ** is mandatory attribute on the column
    -->
    <titleView title="" subTitle="" logoURL="" />
    - <tableView Name="" ShowColumnTitles="false">
    - <!-- If no Group columns, BI table View will be generated, else Dashboard
    -->
    - <dimensions>
    <column Name="" SQLDefinition="" sort="" total="false" />
    </dimensions>
    - <facts>
    <column Name="" SQLDefinition="" aggRule="" />
    </facts>
    </tableView>
    - <pivotView Name="" ShowColumnTitles="false">
    - <page>
    <column Name="" SQLDefinition="" total="none" sort="desc/asc" visibility="" />
    </page>
    - <Section>
    <column Name="" SQLDefinition="" total="none" sort="desc/asc" visibility="" />
    </Section>
    - <rows total="none">
    <column Name="" SQLDefinition="" total="none" sort="desc/asc" visibility="" />
    </rows>
    - <columns total="none">
    <column Name="" SQLDefinition="" total="none" sort="desc/asc" visibility="" />
    </columns>
    - <measures>
    <column Name="" SQLDefinition="" aggRule="" visibility="" />
    </measures>
    </pivotView>
    <chartView Name="" />
    - <prompts>
    - <!-- Filter parameters
    operator : logical operator used in the prompt filter
    SQLName : Physical Table.Column name on which the filter is applied
    subjectArea : Subject Area Name into which the prompt belongs to
    promptcaption : Display Name of the Prompt
    promptDescription : Description if any
    -->
    <prompt SQLDefinition="" operator="" promptcaption="" promptDescription="" />
    </prompts>
    </report>
    </OBIEE>

    Hi,
    I opened the Discoverer administrator and clicked on export.
    in next step i selected the option "Selected obects in the end user layer" for "what do u want to export"?
    i choose workbook and selected the sample workbook "Video Tutorial workbook"
    Then i gave the name "Video Sales Tutorial" and saved the file in a folder and selected the check box "generate xml for exported workbooks"
    I got the file in the folder as Video Sales Tutorial.eex.That .eex file had details of the workbook name and all other information
    <UniqueIdent ConstraintName="DOC1" Batch="False" DeveloperKey="VIDEO_TUTORIAL_WORKBOOK"/>
    But to get these workbook details we have to always save the workbook in the DB.We cannot save the workbook in our file system.
    Am i right?Since only workbooks which are in DB can be exported.
    Thanks a lot for the info.Will try to analyze this information

  • Differences between  Oracle Discoverer 10g and 11g (EBS & Desktop)

    We are in the process of upgrading from Oracle Discoverer 10g testing to Oracle Discoverer 11g.
    We have had several requests (from functional users) for documentation that might reflect the changes in this release level. Does anyone have relevant documentation that might help explain what has changed so that they can be better prepared.

    We are in the process of going from 10 desktop to 11 plus. I do not like it as other end-users I have talked to don't either. In desktop, I could have multiple reports open at one time, move tabs from one report to another so I wouldn't have to rebuild the report again. Also, there are times I have 3 or more sessions of desktop running with multiple reports running in them. In plus, I am limited to one session and one report. That slows down productivity big time. In desktop, exporting crosstabs to excel is more user friendly than plus. For desktop, it will fill in the cells below with the data above it if it changes. In plus, it looks like a pivot table. I have read other posts on how to work around that, but not always functional. Using Dense_Rank() works sometimes depending on how the report is written. IT is researching another way but haven't heard back from the consultants. Or, I will have to modify all my excel files with formulas to do that for me. Also in desktop, I can select all and copy paste the results into excel and all data comes in. The row and column headers, page items and even the title section will paste into excel. Plus only gives you the data, no row or column headers. So I have to export it every time I need the data. I have formatted excel files that all I need to do is copy paste and data flows beautifully. As for organizing and saving reports, desktop is much better. I can save reports out on our network under different folders so I can find them faster by topic. Granted, if that directory is an open one, anyone can change/delete it. In plus, the only advantage of saving it on the database is I can sort and search for reports or users. If you make any changes in plus and then walk away from your desk, plus will shut down after a certain time period. If you didn't save it, you have to start over. Don't know if this is something IT can fix???
    As we see it, plus is a step back in technology. I hope someone can change that opinion. Don't know if we are not getting the best support from whoever is working with us (Oracle or 3rd party) or we are missing something???? If so, please share.
    Thanks.

  • How to download the pivot view to the excel sheet with all features

    Hi,
    Using discoverer, my co-worker is able to download the pivot view to excel sheet with all enabled features, like pivot table in excel.
    Is this can be done in obiee? if this feature is present in obiee, plz will you explain me how to do in obiee? its urgent.
    Thanks,

    Hi abc,
    I don't think BI office plug-in supports you the pivot table features of MS Excel.
    Even if you import a pivot table from BI, it is rather treated just as a table in Excel
    Regards,
    Raghu

  • Export to excel pivot table is incorrect

    Hi All,
    I have a problem when export Discoverer Plus report to Excel Pivot table...
    My problem is calculation field (ex. Average salary per employee) in pivot table shown incorrect
    data.
    May someone has any idea for this problem and how to solve it.
    Thanks,
    Mcka
    Remark: I have info. about Discoverer version that I use
    OracleBI Discoverer 10g (10.1.2.2)
    Oracle Business Intelligence Discoverer Plus 10g (10.1.2.54.25)
    Discoverer Model - 10.1.2.54.25
    Discoverer Server - 10.1.2.54.25
    End User Layer - 5.1.1.0.0.0
    End User Layer Library - 10.1.2.54.25

    Have anybody share idea about this problem ?

  • Export OBIEE 11.1.1.5 Analysis to Excel as a Pivot Table

    Hello,
    I am exploring the Sample App for OBIEE 11.1.1.5 and one thing that struck me was that I didn't see an export option from an Analysis where you can Export data to Excel as an "Excel Pivot Table".
    In Oracle Discoverer, for a Cross-tab report (which is equivalent to OBIEE Analysis Pivot Table), when you export to Excel, it shows up in Excel like a real Pivot Table that the user can manipulate to their hearts content.
    Is there an equivalent feature in OBIEE?
    thanks,
    Manish

    I did see the export to excel links, but when the Analysis Pivot Table is exported to Excel, it's not an "Excel Pivot Table". It's a simple static excel spreadsheet.
    If you export a Cross-tab worksheet in Discoverer, you will get:
    – a base sheet which contains all the data in table format
    – a sheet containing the pivot table
    – a static sheet
    It's the Pivot Table generated automatically by Discoverer that I am looking for in the Export from OBIEE Analysis.

  • Discoverer Export

    I am trying to export a report I created in discoverer viewer and plus to excel.
    The problem is I am exporting it in excel pivot table and I have to enable macros to keep the format. (pivot table format)
    The problem however is:
    1) the calculations I made in plus and viewer is wrong in excel after exporting
    Any ideas?
    Thanks

    Please help me

  • Problem in discoverer  with analytic function created non-additive YTD

    I have problem with discoverer desktop which show me wrong ytdact, ytdbgt figure after i rollup/pivoting
    on custom folder i did in discoverer admin:
    SELECT a.year, a.month, c.deptno, b.glaccount, bgt.mthbgt, bgt.ytdbgt, bgt.fullbgt, bgt.lastyr_fullbgt,
    act.mthact, act.ytdact
    FROM (
    SELECT
    a.amount mthbgt,
    SUM(a.amount) OVER (PARTITION BY ...) fullbgt,
    SUM(a.amount) OVER (PARTITION BY ...) ytdbgt,
    LAG(SUM(a.amount),1) OVER (PARTITION BY...) lstyr_fullbgt
    FROM gltrans_bgt a, gl_master b, dept c
    WHERE a.glaccount=b.glaccount AND a.deptno=c.deptno GROUP BY a.year, a.month, c.deptno, b.glaccount
    ) bgt
    FULL OUTER JOIN
    SELECT a.year, a.month, c.deptno, b.glaccount,
    a.amount mthact,
    SUM(a.amount) OVER (PARTITION BY...) ytdact,
    LAG(SUM(a.amount),1) OVER (PARTITION BY...) lstyr_ytdact
    FROM gltrans_act a, gl_master b, dept c
    WHERE a.glaccount=b.glaccount AND a.deptno=c.deptno
    GROUP BY a.year, a.month, c.deptno, b.glaccount
    ) act
    ON
    bgt.year=act.year AND
    bgt.month=bgt.month AND
    bgt.deptno=act.deptno AND
    bgt.glaccount=act.glaccount
    In discoverer desktop, sometime i would like to remove deptno or month to see the rollup figure. But it seems discoverer tried to sum the ytd to give me wrong figure.
    I know that to ask oracle rewrite the query in order to roll up the figure, one may need to create dimension and specify the hierarchy for the related .
    Anyway to do on this MV so that oracle can rewrite the query for me automatically?

    I suspect if your FY runs not from Jan - Dec, then someone has had to come to grips with this before and has created some kind of custom FUNCTION to determine the fiscal year from the date entered. Or maybe a table that populated with the same info.
    Nevertheless, if there isn't one, then you'd just change the TRUNC(SYSDATE,'YYYY') logic to your fiscal year with a direct calculation.
    ie:
    calculation: what_fiscal_year
    CASE WHEN to_char(sysdate,'MMM') IN ('JAN','FEB','MAR','APR','MAY','JUN','JUL','AUG','SEP') THEN to_char(sysdate,'YY')
    WHEN to_char(sysdate,'MMM') IN ('OCT','NOV','DEC') then to_char(sysdate,'YY')-1
    ELSE '99' END
    Something like that - I haven't tested it so treat as pseudo-code first (ie: the last to_char may need to have a to_char(to_number(to_char instead to substract the 1 but might work - Oracle's good with powerful date functions). It should give you an idea of what I'm referring to.
    So once each record has an associated FY either by a calculation such as shown or by a calculation calling your corporate FY function, you just do the same thing as described early (ie: range between FY and FY-1).
    Russ

  • Is there any way to get the query used in discoverer from backend??

    Hi All,
    I am new to dicoverer.
    Is there any way to get the query used in discoverer from backend??
    Thanks,
    Sachin

    Hi,
    you can view the SQL from within the discoverer menu:
    in desktop: View-> SQL Inspector
    in Plus: Tools-> Show SQL
    The SQL in the DB tables is encrypted so it's a problem getting it from there.
    You can export the workbook into SQL but it is not working for every worksheet (subquery, inline pivot tables...)
    you can create a batch file to export them all using the output of this script:
    select null,null,'echo off'
    from dual
    union all
    select distinct
    qs.qs_doc_name Workbook_name,
    qs.qs_doc_details Worksheet_Name,
    'start /wait <path>\dis51usr.exe /connect '||'&p_user_name'||'/'||'&p_password'||'@'||'&p_env'||' /apps_user /apps_responsibility "&responsibility" /opendb '||
    chr(34)||qs.qs_doc_name||chr(34)||' /sheet "'||qs.qs_doc_details||'"'||' /export SQL "C:\Export Discoverer SQL\'||qs.qs_doc_name||'-'||qs.qs_doc_details||'.sql" /batch'
    from eul_us.eul5_qpp_stats qs
    where qs.qs_doc_name is not null
    --order by 1,2
    union all
    select null,null,'echo off'
    from dual
    union all
    select null,null,'exit'
    from dual

  • Generate discoverer viewer output directly to excel

    hi all
    i am using discoverer viewer 10g and i am able to export the sheet to an excel pivot table and its work fine .
    but can i make the output directly go to an excel and not show the sheet to the user ?
    i am running the sheet using a parameter form with a post method and its login and open the worksheet directly
    but is there a parameter indicate that the sheet run as batch to a file ?
    thanks

    I just installed a 10.1.2 to look at this...look at the export URLs.
    /discoverer/app/exportdata?event=refreshExportUI&source=exportType
    &stateStr=eNqFktFPqzAUxv%24ZQjSLuxS3qQ88oMPEuIkZd7vxiZS2y9hKQdq1sL
    %2FeAyO5e1Ff%24nE%24fv04pwXZg9pp5PgTZlKmQB1%2Fti2c23lTCHj8FCotHB97
    4MRHXR31eEPEkTt3ke8l6%24WAnADBgDwVFbP9u1AS0apc9cXGH69lrge4%24RX%24
    4KQe4Hb4%24PfwU3mUugZuRkoL5JYIxS%2F6%24nl3ZLi8bMz%2FP%24icaNJj72Xe
    MfdwPA8X6G9tFUXJct03Vn9eNMaYMrwGA%2FfHDktzuMGFGIGr8lKeLB57dnRoG2ZG
    GTlZKKg6WX9q26aiIwOA3bfNnhkIn1gGy5A9EbS%2FQojV2Y%2FBOmubLFdCd0J3ZZ
    fahw7mvke6eNP9FRh7%24NzurisRlcg1VAfKMJfKQ0C3KcGej0iFugm3MB2oOIs6i6
    RnZZ2NeFMJ5KoqcGXJeDB1eXcTAdhEMldponlwha%2FwNX64duuy1IHn2kwHPqrqnK
    Hn5SJNwuX7Ikr%2FxavXxzh%24TdO%2Fq%2FAteY5Xy2iexi%24LJAJN4o%2FHKHxL
    N%24FiHSUY%2F7mdzhDVbYVMzi2vvwDeIPNZ&exportType=1
    It looks like they changed the URL parameters, but it should still work. The key parameters are:
    event=refreshExportUI
    source=exportType
    exportType=1
    View the source on the export page and get the correct export type for xls and you should be able to export your excel.
    Matt

  • Exporting a table to an excel pivot fails

    Hi all,
    i'm using Discoverer Plus 9.0.4.45 and Microsoft Excel 2000 9.0.2812. When i create a crosstab with page-detail items and export it to an excel pivot table, everything works well but if i try to export a page-detail table i can only see a static table in excel without pivotting options. Excel recognizes macro but does not seem to execute it.
    Did anyone faced this problem before?
    Thanks for attention!!!!

    Dear Abinas,
    Please read this tutorial.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/edc2f3c2-0401-0010-8898-acd5b6a94353?QuickLink=index&…
    Thanks & Regards,
    Patralekha

  • Oracle answers pivot table grand total problem

    hi All,
    I am working with OBI dashboard. I have a problem in creating a pivot table. To make it simple assume I have 3 columns: Sales, Target Sales, and %Diff. I added a total row but the problem is the total for %Diff is actually the average of the column instead of the %Diff between "total Sales" and Total "Target Sales". The aggregation rule for %Diff is set to Avg. and "Show data as" is set to Value.
    I have seen the same problem here before in some forums.
    Can anybody help me on this?
    Thanks
    Sana

    the problem is the data is coming from Discoverer (another team converted data from disco. to OBI anwsers) so I do not have access to Biz model.
    is there any other way for that?
    thanks

  • Batch command line in the Discoverer 4i

    Dear All,
    I am searching for an answer regarding the chance to use the batch command line in the Discoverer 4i user edition to export an xls file with the pivot format.
    It is not possible to do this in the previous version, but it's possible in the 4i version choosing the xls pivot format while exporting the report interactively.
    So we are looking for a specific parameter to be used in the command line.
    Thank you for your help,
    Carola Buora

    Hi Carola,
    May I suggest reposting this question to the Dicoverer forum
    http://forums.oracle.com/forums/forum.jsp?id=422740
    Your chances for getting the right set of answers are probably much better there. Hope this helps.
    Cheers,
    -lars

  • Command Lines in the User Edition, Discovere 4i

    Dear All,
    I am searching for an answer regarding the chance to use the batch command line in the Discoverer 4i user edition to export an xls file with the pivot format.
    It is not possible to do this in the previous version, but it's possible in the 4i version choosing the xls pivot format while exporting the report interactively.
    So we are looking for a specific parameter to be used in the command line.
    Thank you for your help,
    Carola Buora

    Hi Carola,
    May I suggest reposting this question to the Dicoverer forum
    http://forums.oracle.com/forums/forum.jsp?id=422740
    Your chances for getting the right set of answers are probably much better there. Hope this helps.
    Cheers,
    -lars

Maybe you are looking for

  • Adapter Engine XML Schema Validation Error Surpression

    We recently developed a number of web services that are called by 3rd parties outside our network. The web service request once made is picked up by a Web Dispatcher which then forwards the request to the de-central adapter. Both of these components

  • Computer not recognizing my iPod anymore?

    Um... I just tried to plug my iPod into my computer, but the computer, nor iTunes is recognizing it. Nothing is showing up. Then, I tried again, and a little bubble on my toolbar popped up and said "One of the USB devices attatched to this computer h

  • No Artwork for all my albums :(

    When I click on Get Album Artwork, it says processing album artwork and when its done, there is no artwork display!! can anyone tell me why?

  • Blackberry 9630 Tour - Reload Software: 552 - Mac

    This is my second Tour since I bought my first Blackberry a couple of weeks ago.  I know I'm definitely not in the norm as being a Blackberry user and a Mac user as well, but I need help.  I recently was deleting some frivolous apps I had downloaded

  • HT1438 about my old phone

    hi im getting a new phone this week iphone 5 sent to my door.  on a message I got sent what I should do beofre handing my old phone over is clear everything off my phone but i cant as it wont turn on at all . will it be ok