![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| ||||||
| ||||||
|
| ... |
| with member [Measures].[Distinct Products] as |
| with member [Measures].[Distinct Products] as |
#3
| ||||||
| ||||||
|
| ... |
| with member [Measures].[Distinct Products] as |
| with member [Measures].[Distinct Products] as |
#4
| |||
| |||
|
|
Hi Ramunas, Though I don't know the details of attribute relationships in your [Article] dimension, this issue could be related to the attribute overwrite behavior in SSAS calculations, as explained in this paper: http://www.sqlserveranalysisservices...uteRelationshi ps.htm .. Perhaps some explanation is required as to what exactly is an overwrite: whenever a calculation specifies a member of a hierarchy, this is an overwrite of the currentmember. .. Here's an Adventure Works query which I think illustrates your issue - it attempts to count Products for different Styles, sold on July 1, 2002, but all counts are identical: with member [Measures].[Distinct Products] as count ({[Measures].[Order Quantity]} * descendants ([Product].[Product Categories].currentmember, [Product].[Product Categories].[Product Name]), excludeempty) SELECT NON EMPTY HIERARCHIZE(AddCalculatedMembers({DrillDownLevel( {[Product].[Style].[All Products]})})) DIMENSION PROPERTIES PARENT_UNIQUE_NAME ON COLUMNS FROM [Adventure Works] WHERE ([Measures].[Distinct Products], [Date].[Date].&[366]) ------------------------------------------------------------ All Products Mens Not Applicable Unisex Womens 107 107 107 107 107 But substituting Existing for Descndants() seems to work: with member [Measures].[Distinct Products] as count ({[Measures].[Order Quantity]} * existing [Product].[Product].[Product], excludeempty) SELECT NON EMPTY HIERARCHIZE(AddCalculatedMembers({DrillDownLevel( {[Product].[Style].[All Products]})})) DIMENSION PROPERTIES PARENT_UNIQUE_NAME ON COLUMNS FROM [Adventure Works] WHERE ([Measures].[Distinct Products], [Date].[Date].&[366]) ------------------------------------------------------------ All Products Mens Not Applicable Unisex Womens 107 6 26 63 12 - Deepak Deepak Puri Microsoft MVP - SQL Server *** Sent via Developersdex http://www.developersdex.com *** |
![]() |
| Thread Tools | |
| Display Modes | |
| |