How to create following cube?

Posted by Itsgkiran on Stack Overflow See other posts from Stack Overflow or by Itsgkiran
Published on 2010-03-26T09:35:22Z Indexed on 2010/03/26 9:43 UTC
Read the original article Hit count: 183

Filed under:
|

Hi!

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

  • Database Table:

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

I need to display following cube

                  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.

What is query MDX query for this.

Could Please help me to solve this problem.

Thank You.

© Stack Overflow or respective owner

Related posts about cubes

Related posts about mdx