Is it a good design to allow zeros in Fact table?
3 posters
Page 1 of 1
Is it a good design to allow zeros in Fact table?
Hi people,
is it a good design to allow zeros in Fact table? I am developing a cube but each transaction has three option of which each can have a zero or a number. But these three options are fact values. How can I treat this?
is it a good design to allow zeros in Fact table? I am developing a cube but each transaction has three option of which each can have a zero or a number. But these three options are fact values. How can I treat this?
mobzam- Posts : 9
Join date : 2011-07-27
Re: Is it a good design to allow zeros in Fact table?
Zero valued measures are fine. Foreign keys that do not point to a dimension row are not. Can you elaborate on your problem?
Re: Is it a good design to allow zeros in Fact table?
Zero works well with sum, however if your fact aggregation involves avg or count, null value may give you more desireble result then zero, depending your business requirements. Just bear in mind that null value is acceptable for measures, but not acceptable for dimension keys as suggested by negalmmo.
hang- Posts : 528
Join date : 2010-05-07
Location : Brisbane, Australia
Re: Is it a good design to allow zeros in Fact table?
ngalemmo wrote:Zero valued measures are fine. Foreign keys that do not point to a dimension row are not. Can you elaborate on your problem?
My situation is as follows: I am trying to analyse the performance of adverts. I am getting the details of an advert such as clicks, impressions, then number of responses pertaining to the advert, number of orders pertaining to the same advert. Then cost. So I am trying to model this in a dimensional model. I have number impressions, clicks, responses and orders as measures. Now I am worried where there zero orders. How can I solve this problem.
Thanks in advance
mobzam- Posts : 9
Join date : 2011-07-27
Re: Is it a good design to allow zeros in Fact table?
any help please
mobzam- Posts : 9
Join date : 2011-07-27
Re: Is it a good design to allow zeros in Fact table?
Other than the fact that the ads are not working, why would you worry about zero orders? If it is a divide by zero problem (such as infinite cost per order), you deal with it in the query using a column expression to check for zero.
Similar topics
» FACT Design Question - How to design FACT Table when computation is required on the degenerate dimension?
» Design a snapshot Fact table in data mart from compliance-enable fact table in enterprise data warehouse
» Fact Table Design
» Fact table design
» Fact Table Design
» Design a snapshot Fact table in data mart from compliance-enable fact table in enterprise data warehouse
» Fact Table Design
» Fact table design
» Fact Table Design
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum