Handling Null Values in Facts
2 posters
Page 1 of 1
Handling Null Values in Facts
Guys,
I understand that we should have a surrogate key called 0 in our dimension tables to handle null values. I have a scenario where a certain data is available at a later stage. How can i create a record in the date dimension which just mentions data not available.
I mean where should this description go? What should be the value for calendar date in this scenario. Any one who could share a sample would be great. Thanks.
I understand that we should have a surrogate key called 0 in our dimension tables to handle null values. I have a scenario where a certain data is available at a later stage. How can i create a record in the date dimension which just mentions data not available.
I mean where should this description go? What should be the value for calendar date in this scenario. Any one who could share a sample would be great. Thanks.
BIDW- Posts : 25
Join date : 2015-01-18
Re: Handling Null Values in Facts
It's entirely up to you what values you put in the columns of your 0 Key Date dimension record.
You should consider how these values will appear in your reports, when they select records from facts that link to this 0 record and other non-0 records, and therefore what values will make sense to your end-users.
Obviously you are constrained by the datatype of the columns as to the values you can put in - assuming that you have a BI tool on top of your DW there may be opportunities to mask these column values with more user-friendly values
Regards
You should consider how these values will appear in your reports, when they select records from facts that link to this 0 record and other non-0 records, and therefore what values will make sense to your end-users.
Obviously you are constrained by the datatype of the columns as to the values you can put in - assuming that you have a BI tool on top of your DW there may be opportunities to mask these column values with more user-friendly values
Regards
nick_white- Posts : 364
Join date : 2014-01-06
Location : London
Re: Handling Null Values in Facts
Thanks Nick. That sounds like a good suggestion.
Hunain
Hunain
BIDW- Posts : 25
Join date : 2015-01-18
Similar topics
» Null values in facts, yes or no?
» NULL Values in Fact Table
» How best to model Timesheet facts against Sales Order facts
» NULL DATES IN FACTS
» Source Values and Conformed Values in the Dimension table
» NULL Values in Fact Table
» How best to model Timesheet facts against Sales Order facts
» NULL DATES IN FACTS
» Source Values and Conformed Values in the Dimension table
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum