Kimball Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Design Standards - Numeric Type 2 Dimension Attributes

3 posters

Go down

Design Standards - Numeric Type 2 Dimension Attributes Empty Design Standards - Numeric Type 2 Dimension Attributes

Post  MaryG Wed May 11, 2011 9:44 am

Our warehouse projects are looking for data architecture standards. When you have an attribute that represents a non-additive numeric amount in a Type 2 dimension attribute, can we define a data type standard? We want to embrace the design philosophy of minimizing nulls in our data models. Let's also assume these dimension attributes are non-additive in the context of our design. We would like to type them as char or varchar NOT NULL with a default of empty string so that consumers don't assume them to be additive. Can you see any problems or have you experienced any "gotchas" if you have tried or implemented such a data modeling standard?

MaryG

Posts : 1
Join date : 2011-05-11

Back to top Go down

Design Standards - Numeric Type 2 Dimension Attributes Empty Re: Design Standards - Numeric Type 2 Dimension Attributes

Post  BoxesAndLines Wed May 11, 2011 10:06 pm

Yes. They are numbers, not characters. Don't outsmart yourself. You need a base level amount of knowledge to create a report even in dimensional models. Most BI tools will prevent the foolish from trying to treat a dimension attribute as a fact measurement. You may also want to perform arithmetic operations on an attribute in a dimension.
BoxesAndLines
BoxesAndLines

Posts : 1212
Join date : 2009-02-03
Location : USA

Back to top Go down

Design Standards - Numeric Type 2 Dimension Attributes Empty Re: Design Standards - Numeric Type 2 Dimension Attributes

Post  ngalemmo Thu May 12, 2011 1:13 am

It really depends on what kind of attribute you are talking about. If it is a business identifier of some sort (account number, order number, etc...), by all means, store them in a character column. Identifiers may be numbers now, but may change later.

If it is an amount, such as a rate or percentage or standard cost, they should be stored in numeric fields. Doing anything else really makes them a pain to work with.
ngalemmo
ngalemmo

Posts : 3000
Join date : 2009-05-15
Location : Los Angeles

http://aginity.com

Back to top Go down

Design Standards - Numeric Type 2 Dimension Attributes Empty Re: Design Standards - Numeric Type 2 Dimension Attributes

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum