Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Date Filter in Excel for pivot table with cube data source not filtering Expand / Collapse
Author
Message
Posted Thursday, March 3, 2011 8:03 PM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Sunday, March 30, 2014 1:23 AM
Points: 20, Visits: 270
hello all,

after much googleing and setting of parameters , member values etc, i am at a dead end

I am trying to get the date filtering for a pivot table working

my time dimension is set to Time

The attribute Date os set to a Type of Date
It's key column is set to a pk value (integer
It's name column is set to a field called dim_date (Wchar but date time in the table structure)
It's value column is set to the same field above dim date (date) Data type is date, and format is short date.

I have processed and deployed my cubes, however when trying to filter using between or any of the other builtin features of excel 2010 to filter by date, it results in no results .

I'm unsure what other setting i need to set to make the filtering work properly. any help is much appreciated.

Post #1073039
Posted Wednesday, March 9, 2011 2:27 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Sunday, March 30, 2014 1:23 AM
Points: 20, Visits: 270
ok
maybe an easier question, has anyone got the filtering functionality to work in excel 2007 or excel 2010, other than in Adventure works?

Post #1075389
Posted Saturday, April 30, 2011 9:41 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Saturday, April 30, 2011 9:38 PM
Points: 1, Visits: 0
I have the exact same problem, what gives? is this some sort of bug? I can't believe this could be a real problem and go undetected for years. this has got to be simple, doesn't it? I can get excel to recognize my datetime field with a direct sql query but not in an analysis services cube time dimension?
Post #1101252
Posted Sunday, May 1, 2011 12:56 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Sunday, March 30, 2014 1:23 AM
Points: 20, Visits: 270
i agree, i dont think it is a bug, but i cannot for the life of me figure out why it is doing this,

will be lodging a call with ms tomorrow about it, hopefully more detail to follow, (this might be a good first blog post for me ).

Post #1101263
Posted Wednesday, October 17, 2012 2:45 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, October 18, 2012 8:48 AM
Points: 2, Visits: 4
Has anyone got this to work? I'm stuck too.

Some people seem to have no trouble at all e.g.
http://stackoverflow.com/questions/12532393/excel-pivot-table-date-range-filter
Post #1373682
Posted Thursday, October 18, 2012 2:25 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, October 18, 2012 8:48 AM
Points: 2, Visits: 4
Fixed this problem. For anybody out there Googling: If you are having trouble getting Excel 2007 or Excel 2010 pivot tables to work with date filters (showing blank or empty or no data) from an SQL Server Analysis Server (SSAS) cube, here's how you fix it:

1 - Download AdventureWorksDW2008R2 database and attach it in on your localhost:
http://adventureworksdw2008.codeplex.com/downloads/get/372236

2 - Download, deploy, and process the Adventure Works 2008 (AW) cube:
http://msftdbprodsamples.codeplex.com/releases/view/88252

3 - Open Excel 2010 - Point to AW cube - Make a pivot table and see for yourself that date filters work.

4 - Open the AW cube - Open your cube - Compare every single property in every single part of your Date Dim to their Date Dim and make yours match theirs.

5 - Rebuild your cube.

6 - Your date filters now work!



P.S. Here are some things I changed in my cube, I don't know which one exactly fixed it:

Dim:
Set Unknown member to None

Key:
grouping behaviour: discouragegrouping
instanceselection: filtered list
null processing: automatic
set namecolumn
type: calendar -> date type
datasize 100
valuecolumn : date (maybe should be datekey ??)

Date:
grouping behaviour: discouragegrouping
instance selection: filteredlist

other fields:
instanceselection: dropdown
set value column
set attributehierarchyvisible

changed all nullkeyprocessing to automatic in cube design matrix
Post #1374192
Posted Thursday, October 18, 2012 3:58 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Sunday, March 30, 2014 1:23 AM
Points: 20, Visits: 270
wow!

interesting...

i never tried that..

thanks for the response..unfortunately i have moved on from that, could never get it working perfectly.
Post #1374234
Posted Friday, October 19, 2012 10:58 AM
Right there with Babe

Right there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with Babe

Group: General Forum Members
Last Login: Friday, July 18, 2014 2:19 PM
Points: 797, Visits: 1,970
This has stymied me for some time as well. Based on the question, I took a relook. There are only two things required, as I found in Designing SQL Server 2005 Analysis Services Cubes for Excel 2007 PivotTables:

1. To enable date filtering in the PivotTable, first set the Type of the dimension to Time.

2. Set the ValueColumn property of the key attribute hierarchy in the time dimension to point to a date data type column in the source database. The DataType property should be set to Date.

I had already had number 1. #2 turned out to be the missing ingredient.



Post #1374935
Posted Friday, March 21, 2014 5:24 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Wednesday, July 16, 2014 6:04 AM
Points: 7, Visits: 243

I think its the value Column that enabled the Filtering on dates
Post #1553425
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse