How to create following Pivot table ?

Posted by Vamshi on Stack Overflow See other posts from Stack Overflow or by Vamshi
Published on 2010-03-19T12:51:40Z Indexed on 2010/03/29 8:33 UTC
Read the original article Hit count: 352

Filed under:

Hi!

Can we create pivot table with Multiple columns and each column contains multiple rows.

For example...........

Database Table:

        BatchID        BatchName      Chemical      Value
   --------------------------------------------------------
        BI-1           BN-1           CH-1             1

        BI-2           BN-2           CH-2             2
   --------------------------------------------------------

This is the table , i need to display like below in Excel Sheet

                        BI-1             BI-2
                        BN-1             BN-2
     ------------------------------------------
     CH-1               1                null
     ------------------------------------------
     CH-2               null             2
     ------------------------------------------

Here BI-1,BN-1 are two rows in a single columns i need to display chemical value as row of that.

Could Please help me to solve this problem.

Thank You.

© Stack Overflow or respective owner

Related posts about pivot-table