0
votes

Can Dimension Table became a fact table as well? For instance, I have a Customer dimension table with standard attributes such as name, gender, etc.

I need to know how many customers were created today, last month, last year etc. using SSAS.

I could create faceless fact table with customer key and date key or I could use the same customer dimension table because it has both keys already.

Is it normal to use Customer Dimension table as both Fact & Dimension?

Thanks

2
What is wrong with the question to get a downvote?BI Dude

2 Answers

0
votes

Yes, you can use a dimension table as fact table as well. In your case, you would just have a single measure which would be the count - assuming there is one record per customer in this customer table. In case you would have more than one record per customer, e. g. as you use a complex slowly changing dimension logic, you would use a distinct count.

0
votes

Given your example, it is sufficient to run the query directly against the Customer dimension. There is no need to create another table to do that, such as a fact table. In fact it would be a bad idea to do that because you would have to maintain it every day. It is simpler just to run the query on the fly as long as you have time attributes in the customer table itself. In a sense you are using a dimension as a fact but, after all, data is data and can be queried as need be.