How to do it in pivot..

Hi experts
i have one probs....
My report is having three column : where C=A*B
A B C
10 10 100
5 5 25
TOTAL 15 15 225
Now how to get this , when i m doing sum at pivot is is doing sum for Column C and giving 125 instead of 225....so please suggest me how can i achieve it...
Thanks in advance
regards
frnds

Hi,
I would like to clarify you some points:
1. You want to see sum(a)*sum(b) in C... for that your using Grand Total..
If my understanding is correct... you shoud not go for Grand Total because it does not make any sense implementing in this scenario...
Grand Total: as label indicates it will SUM UP the values..
To get your report:
Do not use Grand Total..
As my previous explanation, use two unions which will get you to the following:
A-----B------C
========
1-----1-----1 =====> I Union
2-----2-----4 =====> I Union
3-----3-----9 =====> II Union
If you still want to achieve it (3rd Row) in a Pivot.. I dont think it is possible to implement..
-Vency

Similar Messages

  • How to Unpivot, Crosstab, or Pivot using Oracle 9i with PL/SQL?

    How to Unpivot, Crosstab, or Pivot using Oracle 9i with PL/SQL?
    Here is a fictional sample layout of the data I have from My_Source_Query:
    Customer | VIN | Year | Make | Odometer | ... followed by 350 more columns/fields
    123 | 321XYZ | 2012 | Honda | 1900 |
    123 | 432ABC | 2012 | Toyota | 2300 |
    456 | 999PDQ | 2000 | Ford | 45586 |
    876 | 888QWE | 2010 | Mercedes | 38332 |
    ... followed by up to 25 more rows of data from this query.
    The exact number of records returned by My_Source_Query is unknown ahead of time, but should be less than 25 even under extreme situations.
    Here is how I would like the data to be:
    Column1 |Column2 |Column3 |Column4 |Column5 |
    Customer | 123 | 123 | 456 | 876 |
    VIN | 321XYZ | 432ABC | 999PDQ | 888QWE |
    Year | 2012 | 2012 | 2000 | 2010 |
    Make | Honda | Toyota | Ford | Mercedes|
    Odometer | 1900 | 2300 | 45586 | 38332 |
    ... followed by 350 more rows with the names of the columns/fields from the My_Source_Query.
    From reading and trying many, many, many of the posting on this topic I understand that the unknown number or rows in My_Source_Query can be a problem and have considered working with one row at a time until each row has been converted to a column.
    If possible I'd like to find a way of doing this conversion from rows to columns using a query instead of scripts if that is possible. I am a novice at this so any help is welcome.
    This is a repost. I originally posted this question to the wrong forum. Sorry about that.

    The permission level that I have in the Oracle environment is 'read only'. This is also be the permission level of the users of the query I am trying to build.
    As requested, here is the 'create' SQL to build a simple table that has the type of data I am working with.
    My real select query will have more than 350 columns and the rows returned will be 25 rows of less, but for now I am prototyping with just seven columns that have the different data types noted in my sample data.
    NOTE: This SQL has been written and tested in MS Access since I do not have permission to create and populate a table in the Oracle environment and ODBC connections are not allowed.
    CREATE TABLE tbl_MyDataSource
    (Customer char(50),
    VIN char(50),
    Year char(50),
    Make char(50),
    Odometer long,
    InvDate date,
    Amount currency)
    Here is the 'insert into' to populate the tbl_MyDataSource table with four sample records.
    INSERT INTO tbl_MyDataSource ( Customer, VIN, [Year], Make, Odometer, InvDate, Amount )
    SELECT "123", "321XYZ", "2012", "Honda", "1900", "2/15/2012", "987";
    INSERT INTO tbl_MyDataSource ( Customer, VIN, [Year], Make, Odometer, InvDate, Amount )
    VALUES ("123", "432ABC", "2012", "Toyota", "2300", "1/10/2012", "6546");
    INSERT INTO tbl_MyDataSource ( Customer, VIN, [Year], Make, Odometer, InvDate, Amount )
    VALUES ("456", "999PDQ", "2000", "Ford", "45586", "4/25/2002", "456");
    INSERT INTO tbl_MyDataSource ( Customer, VIN, [Year], Make, Odometer, InvDate, Amount )
    VALUES ("876", "888QWE", "2010", "Mercedes", "38332", "10/13/2010", "15973");
    Which should produce a table containing these columns with these values:
    tbl_MyDataSource:
    Customer     VIN     Year     Make     Odometer     InvDate          Amount
    123 | 321XYZ | 2012 | Honda      | 1900          | 2/15/2012     | 987.00
    123 | 432ABC | 2012 | Toyota | 2300 | 1/10/2012     | 6,546.00
    456 | 999PDQ | 2000 | Ford     | 45586          | 4/25/2002     | 456.00
    876 | 888QWE | 2010 | Mercedes | 38332          | 10/13/2010     | 15,973.00
    The desired result is to use Oracle 9i to convert the columns into rows using sql without using any scripts if possible.
    qsel_MyResults:
    Column1          Column2          Column3          Column4          Column5
    Customer | 123 | 123 | 456 | 876
    VIN | 321XYZ | 432ABC | 999PDQ | 888QWE
    Year | 2012 | 2012 | 2000 | 2010
    Make | Honda | Toyota | Ford | Mercedes
    Odometer | 1900 | 2300 | 45586 | 38332
    InvDate | 2/15/2012 | 1/10/2012 | 4/25/2002 | 10/13/2010
    Amount | 987.00 | 6,546.00 | 456.00 | 15,973.00
    The syntax in SQL is something I am not yet sure of.
    You said:
    >
    "Don't use the same name or alias for two different things. if you have a table called t, then don't use t as an alais for an in-line view. Pick a different name, like ordered_t, instead.">
    but I'm not clear on which part of the SQL you are suggesting I change. The code I posted is something I pieced together from some of the other postings and is not something I full understand the syntax of.
    Here is my latest (failed) attempt at this.
    select *
      from (select * from tbl_MyDataSource) t;
    with data as
    (select rownum rnum, t.* from (select * from t order by c1) ordered_t), -- changed 't' to 'ordered_t'
    rows_to_have as
    (select level rr from dual connect by level <= 7 -- number of columns in T
    select rnum,
           max(decode(rr, 1, c1)),
           max(decode(rr, 2, c2)),
           max(decode(rr, 3, c3)),
           max(decode(rr, 4, c3)),      
           max(decode(rr, 5, c3)),      
           max(decode(rr, 6, c3)),      
           max(decode(rr, 7, c3)),       
      from data, rows_to_have
    group by rnumIn the above code the "select * from tbl_MyDataSource" is a place holder for my select query which runs without error and has these exact number of fields and data types as order shown in the tbl_MyDataSource above.
    This code produces the error 'ORA-00936: missing expression'. The error appears to be starting with the 'with data as' line if I am reading my PL/Sql window correctly. Everything above that row runs without error.
    Thank you for your great patients and for sharing your considerable depth of knowledge. Any help is gratefully welcomed.

  • How do I create a pivot table in numbers?

    How do I create a pivot table in numbers?

    SO HERE'S WHAT I GOT TO WORK:
    Truth is all the real functionality of categories and pivot tables exists in the formulas. You just have to
    Create a new table with a list of the categories in the header column.
    Add SUMIFS() formula from the browser into the next column.
    Enter your arguments and make sure to check "Preserve Column" for each of them.
    Although it might not be apparent, you can enter multiple test value and condition pairs.
    While I admit the formulas are not nearly so graphic as categories, they are cleaner and less restricting, and they aren't any more difficult to work with than pivot tables.

  • OBIEE 11g - How to create clean looking pivot tables

    Hi, does anyone have a good way to clean up the appearance of pivot tables in OBIEE 11g? I'm a big fan of Stephen Few and firmly believe in the "minimize non-data ink" theory. Unfortunately, there seems to be a lot of stuff on OBIEE pivots that I can't easily clean up. Does anyone have ideas for:
    1. How to remove the "gray" / "beige" coloring from column and row dimension? I opened a ticket with Oracle 6 months ago, and basically they've just responded that it is a "enhancement request" for a future version (aka not going to see it for a LONG time)
    2. For my "across" dimension, I don't seem to have a good way to show the dimension name. There is an option under "column properties" to "display heading" - but when this is turned on it scrunches the heading up directly over the column that has the down dimension members. I really want this to go across the pivot.
    Any help on this would be greatly appreciated.
    Thanks!
    Scott

    Hi,
    Steps,
    Just create DSN (odbc connection for the excel data source) then try to import via rpd that time u must need to select "System Tables"
    For more steps,
    http://allaboutobiee.blogspot.com/2012/03/excel-as-data-source-in-obiee.html
    http://oraclebi.blog.com/working-with-excel-datasource-in-obiee
    http://www.ascentt.com/2012/01/importing-excel-file-into-obiee-11g
    http://obiee101.blogspot.com/2008/06/obiee-excel-import-prepping-data.html
    Note: user id and password u can set it u r own and need to be updated in your connection pool alos else u can go with empty user id and password
    Thanks
    Deva

  • 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

  • How to export the created Pivot table by using Power Pivot into separate excel file in the same format?

    Hi PowerPivot experts,
    I have created more than 60 pivot tables in multiple sheets by using PowerPivot work book. now i want delivery all the pivot table in excel document to my end user by email.
    I want send only the Pivot tables which i created using PowerPivot data model instead of sending the whole model file since its very heavy.
    I have tried with export option in Excel 97-2003, its works fine but not getting exact pivot format which i created and its displays as value.
    My aim to send pivot table that i created format but not whole file with source data.
    I would be really grateful if advise me to fix it out.

    Hi Robert,
    I don't think it is a good idea to deliver all PivotTable report to end user via E-mail, and SQL Server PowerPivot for Excel doesn't support to deliver PivotTable report to end user without PowerPivot data inside in the data model. For example, I suppose
    we create a PivotTable to display the SalesAmount of US in pervious years(eg:2012, 2013, 2014), how can we dynamic show the value based on end user selection without PowerPivot data model data(The PivotTable report don't have data source)?
    So, one workaround that we can create a shared folder to store all of PowerPivot report for all of end user in the domain environment, and then inform end users to copy the PowerPivot reports what they want via E-mail.
    If the end users aren't in domain environment, we can implement the VPN soltion to achieve this.
    Regards,
    Elvis Long
    TechNet Community Support

  • How to change labels in pivot tabls

    I have created a report combining two cubes. From one cube I select the total room nights and total revenue, and from the other cube I filter on room nights and room revenue for a certain company.
    The goal is two compare how much revenue and room nights from the total is coming from this company.
    I used there the combine with similar request functionalities and added one column in each cube for the purpose to create the labels "Tot room nights", "Company room nights". This works as well, however under Room Revenue in pivot tables it shows "Tot room nights", "Company room nights" as well, which is wrong.
    Attached screens shots for better understing.
    I have tried to create the label for the revenue as well, but it doesn't work.
    Any suggestions?
    http://imageshack.us/photo/my-images/809/company1z.jpg/
    http://imageshack.us/photo/my-images/99/companyq.jpg/
    Thanks

    Hi,
    to handle GuiXT central in SAP: use transaction SHD0. There is also an online help for further information.
    in SHD0 transaction variants are defined: alternative tcodes, where normally fields are hidden and default values are assigned.
    Enter standard tcode in field TCODE, enter z-tcode in field TCVARIANT and create just something for playing...
    In upper part you will find flag GiuXT-Script and in upper part is 'i'-button for help in using this transaction (this blue-i-help-button is also in starting screen, docu is implemented like SPRO-docu).
    Approach with SHD0 ensures transportation of scripts and automated download to local Guis - so some help to handle bigger installations.
    Regards,
    Omkar.

  • How to disable constrain in Pivot View

    Hello everybody,
    I stuck with a problem regarding pivot table. As you all know whenever we put 2 cols. in page section of pivot then 2nd column is automatically constrain according to 1st column selection.
    But I want the functionality like Dashboard Filter prompt in Pivot Table.
    So, that if user want to place constrain/ skip column he can!
    Is it possible in BI's pivot view.
    e.g I want such that
    1st col : Country
    <Blank> -- Skip to select
    All
    India
    Australia
    America
    UK....
    2nd col : State
    <Blank> -- Skip to select
    All
    <Various States of Countries>
    So whenever I send <Blank> or All from Country column it shows All States in 2nd one for selection.
    Please, Help me out.
    Thanks

    Not sure what you mean by...
    So whenever I send <Blank> or All from Country column it shows All States in 2nd one for selection.... because if you select "All Pages" for the Country column, then the State column would not be constrained.
    So how do you get the "All Pages"?
    In the Country column which you have in your Pages section of the Pivot Table, click on the "sigma sign" and select "Before." This will give you the "All" choice you seek for the Country column.
    I hope this is what you are trying to achieve.

  • How to create a Power Pivot Chart with Dynamic X-Axis (date time) similar to that in Performance monitor (Start-- Run-- Perfmon)?

    Hi,
    I want to create a Power Pivot Chart and a Power View chart in Power BI where the x-axis should be the current system date time axis and it's functionality should be similar to that in Perfmon.exe tool (Start-->Run-->Perfmon)?

    Hi Manjunath,
    Do you mean you want to programmatically create such a dynamic chart which has a X axis of time? If you just want to do this manually, please take a look at this document which is talking about how to create charts with Power BI:
    Charts and other visualizations in Power View
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How can I find overlapping pivot tables?

    I am getting errors in my Excel workbook that contains around 50 reports that say "A pivot table cannot overlap another pivot table". I tried to insert rows inbetween tables on each worksheet but it did not solve the issue. How can I find
    which reports are overlapping, and is there a way to correct this without re-creating reports?

    Linda,
    Here is the full link to the page David linked:
    http://answers.microsoft.com/en-us/office/forum/office_2007-excel/finding-overlapping-pivot-tables/08ab3afa-a79e-4be5-a127-0760f0f9c633
    Hope this helps,
    David

  • How to find bottleneck in pivot query

    I have the following table and query I am running against that table.
    CREATE TABLE StagingTable(
    DateKey int NOT NULL,
    VersionNumber smallint NOT NULL,
    SetID varchar(10) NULL,
    ClassID char(5) NULL,
    VariableName varchar(50) NULL,
    VariableDescription varchar(255) NULL,
    PeriodNumber int NULL,
    PeriodData decimal(18, 6) NULL,
    Column1 varchar(50) NULL,
    Column2 varchar(50) NULL,
    Column3 varchar(50) NULL,
    Column4 varchar(50) NULL,
    Column5 int NULL,
    Column6 varchar(25) NULL,
    Column7 int NULL,
    Column8 int NULL,
    Column9 varchar(50) NULL,
    Column10 varchar(50) NULL,
    Column11 varchar(50) NULL,
    Column12 int NULL,
    RowNumber int NULL
    GO
    WITH cte as (
    SELECT
    DateKey ,
    VersionNumber ,
    SetID ,
    ClassID ,
    VariableName ,
    PeriodNumber ,
    PeriodData
    from StagingTable
    SELECT
    DateKey ,
    VersionNumber ,
    SetID ,
    ClassID ,
    VariableName,
    [0], [1], [2], [3], ,,,, [360]
    from cte
    pivot (SUM(PeriodData)
    FOR PeriodNumber IN (
    [0], [1], [2], [3], ..., [360]
    ) as pvt;
    CREATE UNIQUE NONCLUSTERED INDEX IX_StagingTable ON dbo.StagingTable
    DateKey,
    VersionNumber,
    SetId,
    ClassID,
    VariableName,
    PeriodNumber
    INCLUDE ([PeriodData])
    I have about 5 million rows in StageTable and the pivot query returns 32,000 rows.  It takes about 3 and a half minutes to run this query, whether I am outputting the results to the results window in SSMS or selecting into a new table.
    I checked the execution plan for this query (outputting to results window) and the only operation that takes any time is the non-clustered index scan (84% with Stream aggregate showing 14%).
    Here are the things I compared this to.  I ran a select from this table using just the columns in the index. The results returned in less than one minute and as expected the most expensive operation (100%) was the non-clustered index scan. 
    By the way, a select into returned almost immediately.
    If I take the pivot results (after a select into) and create a new table by select into, it takes almost no time for the query to finish.
    I did an estimated execution plan on these three queries (where PivotTable is a dump of the pivot query into a heap):
    WITH cte as (
    SELECT
    DateKey ,
    VersionNumber ,
    SetID ,
    ClassID ,
    VariableName ,
    PeriodNumber ,
    PeriodData
    from StagingTable
    SELECT
    DateKey ,
    VersionNumber ,
    SetID ,
    ClassID ,
    VariableName,
    [0], [1], [2], [3], ,,,, [360]
    from cte
    pivot (SUM(PeriodData)
    FOR PeriodNumber IN (
    [0], [1], [2], [3], ..., [360]
    ) as pvt;
    SELECT * from PivotTable;
    SELECT
    DateKey ,
    VersionNumber ,
    SetID ,
    ClassID ,
    VariableName ,
    PeriodNumber ,
    PeriodData
    from StagingTable;
    The first query (pivot query) had a cost of 41%, the second 25% (select pivottable) and the third 34% (select base table).  These are nowhere close to the ratios of the amount of time that it takes to run these queries (pivot query 3.5 minutes,
    select  PivotTable 5 seconds and select base table almost one minute).
    For the following:
    WITH cte as (
    SELECT
    DateKey ,
    VersionNumber ,
    SetID ,
    ClassID ,
    VariableName ,
    PeriodNumber ,
    PeriodData
    from StagingTable
    SELECT
    DateKey ,
    VersionNumber ,
    SetID ,
    ClassID ,
    VariableName,
    [0], [1], [2], [3], ,,,, [360]
    into newTable1
    from cte
    pivot (SUM(PeriodData)
    FOR PeriodNumber IN (
    [0], [1], [2], [3], ..., [360]
    ) as pvt;
    SELECT *
    into newTable2
    from PivotTable;
    SELECT
    DateKey ,
    VersionNumber ,
    SetID ,
    ClassID ,
    VariableName ,
    PeriodNumber ,
    PeriodData
    into newTable3
    from StagingTable;
    The distribution of query cost is strikingly different.  The pivot query has a cost of 98% and the other two queries have costs of 1%.  The big difference between these queries and the versions that just output the results (in the execution plan)
    is in the table insert.  The pivot query shows a cost of 26,000 while the select from pivottable shows cost of 160 and select from StagingTable shows cost of 280.
    What else can I look at?  Also, what else can I try to optimize the pivot query.
    For now, I am going to see if I get better performance letting SSRS do the pivoting.
    Russel Loski, MCT, MCSE Data Platform/Business Intelligence. Twitter: @sqlmovers; blog: www.sqlmovers.com

    I have finally nailed down what is causing the bottleneck.
    The Compute Scalar step for some reason shows almost no cost to the execution plan.  But I noticed that the actual number of rows is 5 million (the same as the scan).  It appears that SQL Server expands every row to 360+ columns, all 5 million
    of them.
    So I did an experiment.  I took the table that I was populating and did a cross join to a number table.  This table has 30 K rows and 360 columns.  I figured that if I select 150 rows from the number table it will generate around 5 million
    rows.  The results were almost identical to using the MAX(CASE WHEN ...) construct:  1 minute and some change.
    I then cross joined with only 75 rows.  It took 30 seconds.  37 rows took about 15 seconds.
    So the Compute Scalar costs a lot more then the Execution plan analyzer says.
    SSIS appears to gather one row at a time.  Once it finishes one row, one group by set, it sends the row on its way.  So, in my case, the 5 million rows is read in with 7 columns and 30 K rows are output with 365 columns or so.
    SQL Server creates 5 million rows with 365 columns, then aggregates them down to 30 K rows.
    Thank you, Tom for you discussion with me on this.  I think that I can present my thoughts to my lead.
    Russel Loski, MCT, MCSE Data Platform/Business Intelligence. Twitter: @sqlmovers; blog: www.sqlmovers.com

  • How to Increase columns in pivot view in 11g

    Hi all,
    We have a Report which gives the Particular error saying
    Error Codes: IRVLJWTA
    Location: saw.httpserver.processrequest, saw.rpc.server.responder, saw.rpc.server, saw.rpc.server.handleConnection, saw.rpc.server.dispatch, saw.threadpool, saw.threadpool, saw.threads
    I have seen so many threads but didn't find any answer which works
    Any help is Much helpful
    Thanks
    Xavier

    Hi Xavier,
    Have you played around with the following?
    10g --> http://obiee101.blogspot.com/2008/02/obiee-controling-pivot-view-behavior.html
    11g --> OBIEE 11g - Download All/Display All of rows in Answers
    Cheers,
    Daan Bakboord
    http://obibb.wordpress.com

  • How to show two seperate pivot tables with one select column

    Hi All
    My client wishes to have two pivot tables, one showing positive results and the other showing negative results.
    For Example:
    DIMENSION
    BUSINESS A          1000
    BUSINESS B          500
    BUSINESS C          100
    DIMENSION
    BUSINESS A          -1000
    BUSINESS B          -500
    BUSINESS C          -100
    Is it possible to then select the different DIMENSION with one select column for both?
    Thanks

    Not sure I got it right try this
    for Number column pull twice and set col*-1
    use 2 pivot table for each number type
    cool as ~ http://cool-bi.com

  • How to drill down and keep all my pivot table...

    Hello experts!
    I have a question about how to drill-down in pivot table. If I drill-down I can see the result in the same place...but it dissapear other bins or measures...
    Example:
    Pivot table:
    A
    B
    C
    If I click in A I can see:
    a1
    a2
    a3
    But I don't see B and C.
    I would like to see when I click on A:
    A
    ---a1
    ---a2
    ---a3
    B
    C
    In my example I have a lot of bins to do drill-down...so it doesn't work for me to create three pivot tables and to do a union...
    Is that possible? If you need more details you can post here...
    Thank you!

    Alex, this isn't another question. It looked like you were asking something different. That's why I said to start another thread. The bottom line is that OBIEE can't do what you are looking for.
    But I think what is more important is not necessarily how to do what the OP wants, but what is the best way (read: most efficient, simplest, viable) to achieve the goal.
    In this case, I think a better approach to your reporting is to use to Dashboard prompts. The first would be like Vehices (which has Cars, Trucks, Motorcycles, etc. in the drop-down window) and the second, constrained on the first, called Models/Brands (which has values dependent on what is chosen in the first prompt). With "All Choices" checked off in the prompt design, you have all the combinations a user needs to see in the pivot table. If the user chooses "Cars" from the first prompt, and "All Choices" in the second, then he/she will get all the car models displayed in the pivot table. Or, the user could select one particular moded from the start.
    In fact, this is how many product web sites are set up. This gives the flexibility to the user and the report looks clean and efficient. You can have the drill down on the particular model (value interaction) if you wish to supply extra data on the particular model chosen.
    I think this is the "correct" answer, Alex, though not the answer to the question you posed. Good luck.

  • How do I do a reverse pivot in 2010???

    The link below shows how to convert a summary (pivot) table into a normalized data table using Excel 2003 (and maybe 2007). 
    http://spreadsheetpage.com/index.php/tip/creating_a_database_table_from_a_summary_table/
    And here is a video  
    https://www.youtube.com/watch?v=N3wWQjRWkJc
     I have been unable to figure out how to do this in Excel 2010.  Please advise. Thanks.!!!!!
    SOS!!!!!

    Here is the video!  and it works for 2010.  It shows you how to put the pivot wizard that you need on the ribbon.
    https://www.youtube.com/watch?v=pUXJLzqlEPk
    Excel Pivot Tables: How to flatten a cross tab table
    Note:  the above instructions for 2007 and 2003 work as well BUT you must let go of the "alt" & "d" when you press "P"!

Maybe you are looking for