dbTalk Databases Forums  

MDX query mapped to a pivot table

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss MDX query mapped to a pivot table in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
gigel
 
Posts: n/a

Default MDX query mapped to a pivot table - 12-01-2006 , 01:12 PM






What does the mapping of a MDX query to a pivot table
(part of cube browse in Management Studio) looks like?

I can see how the columns, rows and where clause work but what about the
data (measures)?

More than that, how does a query look like for the following pivot table
(from AW cube):
- columns: [Date].[Calendar Year].Children
- rows: [Sales Territory].[Country].[Country]
- slicer: {[Product].[Product].&[348]}
- data fields: [Measures].[Reseller Sales Amount]

Thanks in advance.

Gigel




Reply With Quote
  #2  
Old   
Vimas
 
Posts: n/a

Default Re: MDX query mapped to a pivot table - 12-01-2006 , 02:43 PM






I am assuming that you are using SSAS 2000. With SSAS 2005 you can use
profiler to see what query is submitted by PTS to SSAS.

In SSAS 2000: Try to change connection string in your pivot table by adding
this:
Log File="c:\OLAPLog.log";

This connection string change will force PTS write MDX into c:\OLAPLog.log
file.
As you will see, query is quite complicated and consist of multiple sets and
calculcated members.

Regards,



"gigel" <newbie (AT) newbie (DOT) com> wrote

Quote:
What does the mapping of a MDX query to a pivot table
(part of cube browse in Management Studio) looks like?

I can see how the columns, rows and where clause work but what about the
data (measures)?

More than that, how does a query look like for the following pivot table
(from AW cube):
- columns: [Date].[Calendar Year].Children
- rows: [Sales Territory].[Country].[Country]
- slicer: {[Product].[Product].&[348]}
- data fields: [Measures].[Reseller Sales Amount]

Thanks in advance.

Gigel






Reply With Quote
  #3  
Old   
gigel
 
Posts: n/a

Default Re: MDX query mapped to a pivot table - 12-01-2006 , 03:09 PM



Thanks Vimas.

I am running SSAS 2005 so I was able to use the profiler.

Seems like PTS is able to handle a thrid dimension on pages while MDX Query
can't.

Gigel

"Vimas" <Vimas (AT) nospam (DOT) nospam> wrote

Quote:
I am assuming that you are using SSAS 2000. With SSAS 2005 you can use
profiler to see what query is submitted by PTS to SSAS.

In SSAS 2000: Try to change connection string in your pivot table by
adding this:
Log File=&quot;c:\OLAPLog.log&quot;;

This connection string change will force PTS write MDX into c:\OLAPLog.log
file.
As you will see, query is quite complicated and consist of multiple sets
and calculcated members.

Regards,



"gigel" <newbie (AT) newbie (DOT) com> wrote in message
news:%23E$3yyXFHHA.5000 (AT) TK2MSFTNGP03 (DOT) phx.gbl...
What does the mapping of a MDX query to a pivot table
(part of cube browse in Management Studio) looks like?

I can see how the columns, rows and where clause work but what about the
data (measures)?

More than that, how does a query look like for the following pivot table
(from AW cube):
- columns: [Date].[Calendar Year].Children
- rows: [Sales Territory].[Country].[Country]
- slicer: {[Product].[Product].&[348]}
- data fields: [Measures].[Reseller Sales Amount]

Thanks in advance.

Gigel








Reply With Quote
  #4  
Old   
JHunter
 
Posts: n/a

Default Re: MDX query mapped to a pivot table - 12-01-2006 , 07:01 PM



The pages axis (also available are chapters, and sections) is supported by
MDX. I think I read somewhere that 0 to 64 axis expressions can be
specified.

Jamie
--
"gigel" <newbie (AT) newbie (DOT) com> wrote

Quote:
Thanks Vimas.

I am running SSAS 2005 so I was able to use the profiler.

Seems like PTS is able to handle a thrid dimension on pages while MDX
Query can't.

Gigel

"Vimas" <Vimas (AT) nospam (DOT) nospam> wrote in message
news:eWq3RlYFHHA.1816 (AT) TK2MSFTNGP06 (DOT) phx.gbl...
I am assuming that you are using SSAS 2000. With SSAS 2005 you can use
profiler to see what query is submitted by PTS to SSAS.

In SSAS 2000: Try to change connection string in your pivot table by
adding this:
Log File=&quot;c:\OLAPLog.log&quot;;

This connection string change will force PTS write MDX into
c:\OLAPLog.log file.
As you will see, query is quite complicated and consist of multiple sets
and calculcated members.

Regards,



"gigel" <newbie (AT) newbie (DOT) com> wrote in message
news:%23E$3yyXFHHA.5000 (AT) TK2MSFTNGP03 (DOT) phx.gbl...
What does the mapping of a MDX query to a pivot table
(part of cube browse in Management Studio) looks like?

I can see how the columns, rows and where clause work but what about the
data (measures)?

More than that, how does a query look like for the following pivot table
(from AW cube):
- columns: [Date].[Calendar Year].Children
- rows: [Sales Territory].[Country].[Country]
- slicer: {[Product].[Product].&[348]}
- data fields: [Measures].[Reseller Sales Amount]

Thanks in advance.

Gigel










Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.