dbTalk Databases Forums  

Re: Help in Query

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


Discuss Re: Help in Query in the microsoft.public.sqlserver.olap forum.



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

Default Re: Help in Query - 08-29-2003 , 09:50 AM






The data that is being returned is hierarchical, however it is not being
display that way in the MDX sample viewer. You need to render the data
another way to see how the hierarchy is structured - how about a pivot table
?


"Abdul Nasir Khan" <a.nasir (AT) ieee (DOT) org> wrote

Quote:
I am new to MDX and OLAP.
I need help in Hierarchical data view of a dimension.
Below are 2 MDX queries based upon in FoodMart 2000 Database
------------------
//MDX Query 1:
select
{[Measures].[Amount]} on columns,
Hierarchize( {[Time].members }) on rows
from budget
------------------
//MDX Query 2:
select
{[Measures].[Amount]} on columns,
{[Time].members } on rows
from budget
------------------
I want the output Year, Quarter and Month in Hierarchical form. How
can I get it?

By applying Query1, I am not getting Year, Quarter and Month in
Hierarchical form. Though I am using Hierarchize function !!! Instead
I get the result in straight listing.

My MDX Query2 is without Hierarchize function and it produces the same
output as MDX Query1.

"What difference does Hierarchize function make then?"

P.S. I am using viewer "Sample MDX Application" shipped with Analysis
Services

Thanks

Abdul Nasir Khan



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.