dbTalk Databases Forums  

Measures group problem with different granularity

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


Discuss Measures group problem with different granularity in the microsoft.public.sqlserver.olap forum.



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

Default Measures group problem with different granularity - 01-25-2006 , 06:15 AM






Hello together,

SSAS 2005 RTM Developer Edition. I have 2 fact tables:
a) actual sales with granularity "itemid" in dimension item
b) sales plan with granularity "productgroupid" in dimension item
The dimension item has the follwing attributes:
- itemid = key
attribute relationship = productgroupid
- productgroupid
attribute relationship = none

The dimension usage ist set to:
Plan
Item Regular - Granularity attribute: productgrouid
relationship: productgroupd - productgroupid

When I browse the cube, I see on every productid level the same ammount.

What I'am doing wrong?

Thanks,
Michael

Reply With Quote
  #2  
Old   
Deepak Puri
 
Posts: n/a

Default Re: Measures group problem with different granularity - 01-26-2006 , 12:33 AM






Hi Michael,

From your brief description, it's not clear what "every productid level"
means, because you didn't mention productid elsewhere. But, assuming
that you don't wish to see data in the Plan Measure Group below the
productgroupid granularity, you can try toggling its
IgnoreUnrelatedDimensions property to false:

http://msdn2.microsoft.com/en-us/library/ms175623.aspx
Quote:
Measure Group Properties
...
IgnoreUnrelatedDimensions

Determines whether unrelated dimensions are forced to their top level
when members of dimensions that are unrelated to the measure group are
included in a query. Default setting is True.
...
Quote:

- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***


Reply With Quote
  #3  
Old   
Michael Roedeske
 
Posts: n/a

Default Re: Measures group problem with different granularity - 01-26-2006 , 03:47 AM



Dear Deepak,

Quote:
From your brief description, it's not clear what "every productid level"
means, because you didn't mention productid elsewhere. But, assuming
that you don't wish to see data in the Plan Measure Group below the
productgroupid granularity, you can try toggling its
IgnoreUnrelatedDimensions property to false:
I try to be more detailed:

Dimension "item":
ProductgroupID
ProductgroupName
ItemID
ItemName

The Granularity relation in the measure group is set on ProductgroupID.

When I open the browser I only see values when using the Attribute
"Productid", I saw the sum when selected "Productname". After chaging the
mentioned switch IgnoreUnrelatedDimensions, I saw no values, only the
grandtotal.

Thanks for your support,
Michael




Reply With Quote
  #4  
Old   
Deepak Puri
 
Posts: n/a

Default Re: Measures group problem with different granularity - 01-26-2006 , 06:07 PM



Hi Michael,

It's not clear what the relationship of "Productid" to the granularity
attribute (ProductgroupID) is. SQL Server 2005 BOL calls for some
(direct or indirect) relationship:

http://msdn2.microsoft.com/en-us/library/ms175669.aspx
Quote:
...
However, sometimes you may want to set the granularity of a particular
cube dimension in a particular measure group to a different grain. For
example, you may want to set the granularity attribute for the Time
dimension to the Month attribute instead of to the Day attribute, if you
are using a Sales Quotas or a Budget measure group. When you specify the
granularity attribute to be an attribute other than the key attribute,
you must guarantee that all other attributes in the dimension are
directly or indirectly linked to this other attribute through attribute
relationships. If not, Analysis Services will be unable to aggregate
data correctly.
...
Quote:

- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***


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.