Hi Experts,
I have a question on using foreign key to create metric in OBIEE. I have never seen metrics created on Key's/WID's in any of my previous implementations, even in BI Apps. Assume we have below fact and dimension.
DW_SALES_F DW_SALES_ORDER_D
ORDER_DT_KEY (foreign Key) SALES_ORDER_KEY (Primary Key)
SALES_ORDER_KEY (foreign Key) SALES_ORDER_NUMBER
AMOUNT
Now, If I need to create a metric to get # of sales orders, I have below options:
1) Use count distinct aggregation rule in BMM on SALES_ORDER_KEY
2) Extend the DW_SALES_F fact to add SALES_ORDER_NUMBER as a column and then apply count distinct aggrigation on this new column in BMM
3) Add an new LTS to the fact and get the SALES_ORDER_NUMBER from Dimension and create metrics. (This is not preferred as DW_SALES_ORDER_D needs to be a confirmed dimension to use this metric in a report created from multiple facts)
Which of the above option is preferred and why?
Thanks in Advance.