SQL Server: Role Playing Dimension

Who is online?  97 guests and 0 members
home  »  blogs  »  Raunak Jhawar  »  SQL Server: Role Playing Dimension

Training on Microsoft Products & Technologies

  Rate This Blog Entry:  register  or  login

Author

raunak.jhawar Raunak Jhawar (Member since: 7/12/2011 6:42:24 AM)
Specilaist for Intensive Data Computing.

View Raunak Jhawar 's profile

Comments (5)

pallavi
10/18/2011 9:11:21 AM pallavi pallavi said:

Hi Raunak,

We have created Role Playing Dimension for the Time Table as follows:

Arrival Date

Departure Date

Invoice Date

Evrything worked perfectly with no errors but after including the Role Playing Dimension there was a financial mismatch.

We removed the Role Playing Dimension and created separate time dimension table for each (Invoice, Departure and Arrival) which gave us the correct financials. Is there anything(property/settings) we need to change when we use Role Playing dimension espc. when the dimension is Time?

 

Thanks in advance!

Regards,

Pallavi

by
raunak.jhawar
10/18/2011 10:15:33 AM Raunak Jhawar said:

Hello Pallavi,

How are you adding/creating a RP dimension and also, are you defining the dorrect relationship in the dimension usage tab?

Thanks\Raunak

by
AmitK
10/19/2011 12:36:46 PM Amit Karkhanis said:

Hello Pallavi,

The Role Playing Dimension is an ideal choice for the scenario which you have explained. I have also deployed the Role Playing Time Dimension in many of my live environments which works perfectly fine. The only limitation as Raunak said is that you can not have customised column names and all the column names and hierarchies appear as is based on the main dimension created. The alternative could be create views in the DSV designer using named queries which allows you to have different table names and column names.

I guess the financial mismatch you said should be mainly due to the filtering of the data using the time dimension. Please check the following,

1. The underlying time dinesion table has all the dates covered.

2. Check if the date column in the dimension table and the date columns in the fact table have a time data associated with them as it may cause issues while filtering the data.

Thanks,

Amit K

by
pallavi
10/21/2011 3:05:18 PM pallavi pallavi said:

Hello Amit K,

We have NULL values for some cases in Departure and Arrival Date column. I tried to set NULL value as '01-Jan-1900' (IsNull(DepartureDate , '01-Jan-1900')) but it still give me the incorrect result.

Kindly let us know you  have any solution to resolve this issue.

Thanks in advance!

Regards,

Pallavi

by
AmitK
10/30/2011 5:21:03 AM Amit Karkhanis said:

The value '01-Jan-1900' which you have set is in the fact table. To fetch this data using the Date Dimension, for e.g DepartureDate dimension, that particular key '01-Jan-1900' should be available in the dimension table. Ensure that the date dimension tables have this value and the corresponding dimension key should be properly updated in the fact table.

by

Leave a comment

Name:
  *  
Email:  (your email is kept secure)
 *  
Website:

example: "http://www.SQLServerGeeks.com"

 
Type the characters:
 *
 
   

Training on Microsoft Products & Technologies

Training on Microsoft Products & Technologies

Email Subscriptions

   Get the Most Recent Blogs in your inbox
Blogs RSS Feed

Raunak Jhawar's latest blog posts

Blogs RSS Feed

Latest community blog posts

  • Dear SQL Geek, SQLServerGeeks.com cordially invites you to SQL Server Day, the monthly dose of SQL Server knowledge & learning. And after successful events in Bangalore, Kolkata & Mumbai, we a...
  • Hi SQL Geeks, The Microsoft® SQL Server® 2012 Feature Pack is a collection of stand-alone packages which provide additional value for Microsoft® SQL Server® 2012. You can download the ...
  • Hi Friends, Here is an interesting function: QUOTENAME() which returns a Unicode string with the delimiters added to make the input string a valid SQL Server delimited identifier. (from Books Online) ...
  • Hi All, It is a great news to all those who use SQL Server Express editions. Microsoft has increased the database size limit of SQL Server 2008 R2 Express edition from 4GB to 10GB. Previous versions o...
  • Hello Friends, It’s been a while that I have posted any blog. So here it is- Well with the arrival of SQL Server 2000, Microsoft has introduced the concept of User Defined Function (UDF). So the...
  • Exciting news! SQL Server 2012 has released to manufacturing. Customers and partners can download an evaluation of the product today and can expect general availability to begin on April 1. Microsoft ...