Quantcast
Channel: SQLServerCentral » Data Warehousing » Analysis Services » Latest topics
Viewing all articles
Browse latest Browse all 1341

Filtering on Hierarchies

$
0
0
Im sure this is a very common problem, but even after searching here and the net I can't find a solution. I have a simple cube with a date dimension consisting of datekey; dayname; week-no; year.When these are processed I can browse the dayname in the browser and there are 7 distinct days. This is great as I can then use the days in a filter as part of my mdx later.However, ive been told its good practice to roll up dates into hiearachies for query optimization. This isn't a probem to do, I just create a composite key for the dayname and week-no and it processes fine.But, when I now browse the cube the days are no longer distinct but repeat for every occurrence in the cube. I understand this is fully expected as the dayname now has a composite key to make entry each unique to the cube.But here is the big problem. I can no longer include he dayname as a filter in my mdx, also the end user will not be able to filter a pivot table on the dayname as there will be 1000's of entries to choose from!The attached picture should hopefully explain a little better where im coming from. Does anyone know how to browse/filter a dimensions attributes once a composite key column is created.Thanks in advance.

Viewing all articles
Browse latest Browse all 1341

Trending Articles