Forum Discussion

Minakshi's avatar
Minakshi
Icon for Resolver I rankResolver I
6 years ago

adding new customers to fact table

Hello everyone,

I have a fact table which looks like as below have customer visiting shops in August

shop idshop namecustomerday
1ABRamMonday
2ABCRajTuesday
3CDFRahul Monday
4GHIReenaTuesday

 

It shows which customer will visit the shop on which day. There is no date information in this table.

In september (next month), I got 2 more customers and they are also visiting on Monday and tuesday to shops.

5RFAmanMonday
6TXAnumTuesday

 

when I try to get total number of customer, I got sum of both months while I want to keep it seprate for 2 months.

Can any one help me how can I combine these table so that new customers wont affect the count of previous month.

 

Thanks in advance

5 Replies