Quantcast
Channel: SQL Server Analysis Services forum
Viewing all articles
Browse latest Browse all 14337

Excel PivotTable Filtering Dimension with Default Member

$
0
0

I have run into a problem when using Excel PivotTables against my MD Cube regarding Filters and Default Dimension Members.

My facts include dimensions for Basis (Accrual or Fair Market Value), Period (Date), and Account Number. Let's say I have 34 entries (activity count) for 12/31/2013, Accrual,Acct#20500-500 and 5 for 12/31/2013,Fair Market Value,Acct#20500-500.

Keep in mind Accrual is the default member of the Basis Dimension.

When I use a pivot table to inspect activity count and filter on Period = 12/31/2013, Basis = Accrual OR Fair Market Value, and Acct = 20500-500, I just get 34, which I am assuming is because Excel is using a sub-select and not a Where for the basis filter, and the dimensions default member is coming into play so I am only seeing the accrual data:

SELECT ({[Account Cash Flow Hierarchy].[Account Hierarchy].&[20500-500]}) ON COLUMNS
FROM (SELECT ({[Account – MRI Source].[Source Account].[All]}) ON COLUMNS
     FROM (SELECT ({[Basis].[Basis].[Fair Market Value],[Basis].[Basis].[Accrual]}) ON COLUMNS
  FROM [Discover Cash Flow Cube]))
   WHERE ([Period].[Period].[Month].&[2013-12-31T00:00:00],[Measures].[Activity Count])

Is there something I am missing, or is the challenge: "How does one use a default member for a dimension, yet allow filtering of that member in Excel?" Is the solution to create an additional Basis dimension that does not have a default member for the purposes of User Filtering in Excel?


Marty


Viewing all articles
Browse latest Browse all 14337


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>