Feb 3, 2005 #1 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?
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?
Feb 4, 2005 #2 johnherman MIS Oct 10, 2003 2,323 US 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 Upvote 0 Downvote
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
Feb 6, 2005 Thread starter #3 Thejuan Programmer Aug 10, 2003 9 AU 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. Upvote 0 Downvote
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.
Feb 8, 2005 #4 johnherman MIS Oct 10, 2003 2,323 US 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 Upvote 0 Downvote
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