Blue Chip Consulting

Extending the Date Dimension Analysis Services 

Posted by Ertan Sertcan Feb 06, 2011

In SQL Server Analysis Services, you can automatically create a Date Dimension without having an underlying data store (table) of dates. The other day one of our applications could not process measures for certain transactions for year 2011. The date dimension ended at 2010.

Date Dimension ending at 2010

To extend the date dimension further (remember there is no underlying source table), open SQL Server Management Studio, connect to Analysis Services and right click the Date Dimension to view its properties.

Properties and Script

Click the Script button. This will produce the xmla script with an Alter statement in a new tab. Scroll down until you find CalendarEndDate shown here as 31 December 2010.

Locate CalendarEndDate

Change this to the new end date eg <CalendarEndDate>2020-12-31T00:00:00Z</CalendarEndDate>, and click the Execute button from the toolbar to update the Server. Right click and Process the Date Dimension.

Reprocess the dimension

If you right click and browse the date dimension you will now see the Date dimension extends to the new end date specified in the altered xmla script.

Date Dimension extended

Any cube(s) that have facts recorded against these dates can now also be processed.

Comments are closed on this post.

Site Map | Printable View | © 2010 Blue Chip Consulting | mojoPortal | Styleshout