All,
I have defined Attribute Role through Table Alias option
for all the four claim date fields
(claim_service_start_date
claim_service_end _date
claim received date
claim_paid_date).
On the subject of Hetrogeneous mapping between Non-unique field names on two different tables(a fact table and a dimension table), these are the steps to be done to create an attribute role after defining the table alias. Hope this would be usefull to others who may have doubts on how to make MSTR understand the link between the two different column names and how attribute role works.
1. Create an attribute (eg. claim_service_start_date)
In the Attribute editor, click on New.
2. This opens a Attribute Form window.
3. In the Attribute Form Window, click on New and this
opens another window where one can see the source
table option, including the dimension, lookup and
fact tables and Form Expression window.
4. Select the 1st source table required(dimension or
Lookup table, (eg. DW_Claim_Service_Start_Day). Once
selected it will display all the fields in the
respective table.
5. Select the column form the 1st source table by
double clicking on the fields(eg. Day_id). This moves
into the Form Expression window immediately and then
click OK. In the attribute form window, it will show
all the tables where Day_id is available, select only
the DW_Day and DW_Claim_Service_Start_Day table and
de-select the checkbox on the other tables.
6. Now, onceagain from the Attribute Form Window, Click
on 'New' to create another attribute form. Now ,in
this window select the 2nd source table(eg
Claim_fact) where the second non-unique column(eg.
Claim_Service_Start_day_id) resides.
7. After selecting the 2nd source table and the 2 non-
unique column, click o.k. Note, the mapping will be
turned into manual, allowing you to select the
respective table to be considered while joining for
field. This you can do it by clicking on the box
next to the tables in the Attribute Form window.
8. After these are defined, create another attribute
form that has to be displayed whenever this
attribute is selected in the report and after
defining this 3rd attribute form, enable this
attribute as the display attribute in the Display
tab of the attribute editor window.
9. Define the respective form name, form type, form
description etc and then define the children and
parent for the attributes which creates the
hierarchy. Once this is done then the Attribute role
is defined completely.
You can check whether the attribute role is defined
by selecting the table view. Go to
SCHEMA: -- Graphical View ---> Tables.
The graphical view will now show a physical link
between the two tables where the two non-unique
columns reside.
Hope this helps.
Thanks
Teccum.