I would like to create a intersection between a dimension that has following attributes:
Customer ID | Customer Level | Date From | Date To
1234 | Level 1 | 01.01.2018 | 31.12.2018
1234 | Level 2 | 01.01.2019 | 31.05.2019
And a measure group such as follows:
Purchased Product | Purchase Date
Cheap beer | 01.06.2018
Cheap beer | 01.04.2019
Actually I got stuck with defining the relationship that would fit to my purpose. I thought about redefining the dimension table so that instead of the time intervals for the first row I would have such table:
Customer ID | Customer Level | Tier Date
1234 | Level 1 | 01.01.2018
1234 | Level 1 | 02.01.2018
…
1234 | Level 1 | 31.12.2018
But if I have table with 600k customers and I would like to define a time relationship 'till the end of the world' then the size of the table would be too huge.
Finally I would like to have the same customer (ID = 1234) being assigned to Level 1 & Jun-18 as well as Level 2 & Apr-19. I would like to ask you help me how to build a dimension table (or confirm that mine is correct) and how to define a time relationship within Visual Studio so that customer level from the purchase date is taken into account.