Hello all,
We have need to derive non-agg metric from that generates fiscal month number of latest date ID. We cannot use applysimple Datepart function to extract month number due to fiscal months.
Ideally, what method would allow join between FACT table and Lookup table to retrieve fiscal month number of latest date. Certain metrics calculate over range of dates while other should be restricted to the last one only.
Our calculations are needed to represent Annualized metrics where we divide by month number or, alternatively, count of months, and multiply by 12.
These represent the fact and lookup tables.
FACT Table:
Date ID -PK
Employee ID -PK
Retire Count
Separate Count
Lookup Table:
Date ID -PK
Month ID
Month Num
We need to have metrics that are:
(Sum(Retire Count) / Max(Month Num)) *12
(Sum(Separate Count) / Max(Month Num)) *12
We also tried non-agg metric using settings of ending fact and ending lookup but may be overlooking some requirement. Since the column is on another table, is there a recommended way to use attribute (of numeric type) on lookup table within metric on fact table.
Please tell us your suggestions.
Thanks.
Val
We have need to derive non-agg metric from that generates fiscal month number of latest date ID. We cannot use applysimple Datepart function to extract month number due to fiscal months.
Ideally, what method would allow join between FACT table and Lookup table to retrieve fiscal month number of latest date. Certain metrics calculate over range of dates while other should be restricted to the last one only.
Our calculations are needed to represent Annualized metrics where we divide by month number or, alternatively, count of months, and multiply by 12.
These represent the fact and lookup tables.
FACT Table:
Date ID -PK
Employee ID -PK
Retire Count
Separate Count
Lookup Table:
Date ID -PK
Month ID
Month Num
We need to have metrics that are:
(Sum(Retire Count) / Max(Month Num)) *12
(Sum(Separate Count) / Max(Month Num)) *12
We also tried non-agg metric using settings of ending fact and ending lookup but may be overlooking some requirement. Since the column is on another table, is there a recommended way to use attribute (of numeric type) on lookup table within metric on fact table.
Please tell us your suggestions.
Thanks.
Val