Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dimension Suppressing My Data

Status
Not open for further replies.

Thejuan

Programmer
Aug 10, 2003
9
AU
Example:

I have a sales fact table.
Some sales have a category such as "Discounted", "Staff Sale"

Some don't.

If i add a SalesCategory Dimension it removes the entries that don't?
How do I retain the uncategorized sales?
 
Need to replace those nulls in the category with a value, such as "uncategorized".

-------------------------
The trouble with doing something right the first time is that noboby appreciates how difficult it was.
- Steven Wright
 
Surely there are other ways?
My main problem is the foreign key is stored in the dimension table.

So the fact table doesnt now that it is linked to.
I'd have to add unneccessary rows to the join table for all uncategorized rows in the fact table.
 
You don't need to change it in the table, simply in a view or in a CASE state

-------------------------
The trouble with doing something right the first time is that noboby appreciates how difficult it was.
- Steven Wright
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top