MartinSuske1
3 years agoQrew Member
Slowly Changing Dimensions
Hello Community,
I need to be able to have different versions of parameters in a dimension table, depending on a given time period. I wonder how to solve this in Quickbase.
Simplified example:
T_PRODUCT_PRICES
ID, NAME, PRICE, VALID_FROM, VALID_TO
1, Milk, 2.00$, 2022-01-01, 2022-03-31
1, Milk, 2.50$, 2022-04-01, 2022-09-30
1, Milk, 3.00$, 2022-10-01, <<null>>
T_ORDER
PRODUCT_ID, PRICE
1, 2.50$
=> How can I get the currently valid price and use it in a relationship with a facts table?
Are there any best practices in Quickbase?
Kind regards,
Martin
------------------------------
Martin Suske
------------------------------
I need to be able to have different versions of parameters in a dimension table, depending on a given time period. I wonder how to solve this in Quickbase.
Simplified example:
T_PRODUCT_PRICES
ID, NAME, PRICE, VALID_FROM, VALID_TO
1, Milk, 2.00$, 2022-01-01, 2022-03-31
1, Milk, 2.50$, 2022-04-01, 2022-09-30
1, Milk, 3.00$, 2022-10-01, <<null>>
T_ORDER
PRODUCT_ID, PRICE
1, 2.50$
=> How can I get the currently valid price and use it in a relationship with a facts table?
Are there any best practices in Quickbase?
Kind regards,
Martin
------------------------------
Martin Suske
------------------------------