SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Fiscal Month and Sorting Issues


Fiscal Month and Sorting Issues

Author
Message
nick.mead 87957
nick.mead 87957
Forum Newbie
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: General Forum Members
Points: 3 Visits: 20
I have a DIM_Date table in my data warehouse which (simplified) looks something like this;


Month_Name Cal_Year_Num Fiscal_Year_Num
January 1 7
February 2 8
March 3 9
April 4 10
May 5 11
June 6 12
July 7 1
August 8 2
September 9 3
October 10 4
November 11 5
December 12 6



In SSAS (2008 R2), I've created two Month dimensions;

* Calendar Month - where the KeyColumn is specified as [Cal_Year_Num] and the NameColumn is specified as [Month_Name]. The dimension type is MonthOfYear.
* Fiscal Month - where the KeyColumn is specified as [Fiscal_Year_Num] and the NameColumn is specified as [Month_Name]. The dimension type is FiscalMonthOfYear

In other words, the two different dimensions use the same Name but different key (which should result in different). Unfortunately, sorting the Fiscal Month dimension doesn't really work. Excel seems to completely ignore the KeyColumn, very "helpfully" recognises that the labels are months and sorts them by calendar order.

Am I doing something wrong with my dimension design? Or is this a client-level flaw?
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search