Including Custom Attributes in the Model
The procedure of including custom attributes in the model is dependent on the Business Intelligence tool that you are using.
About this task
If you are using Google Looker, complete the following steps to include custom attributes in the model:
Procedure
- Log in to Google Looker.
- Turn the Development mode On.
- Navigate to .
-
Open Campaign_Views and navigate to the corresponsing file view of the
following custom attributes:
- For Campaign attributes: uarc_camp_cust_attrib.view
- For Offer attributes: uarc_offer_cust_attrib.view
- For Cell attributes: uarc_cell_cust_attrib.view
-
Capture the custom attribute information into the model view file. For example,
if theCampaign custom attribute is
Business Unit Name, and if the internal of the custom attribute is
BUNAME
, add following dimension to the uarc_campextattr.view model file:dimension: buname { type: string sql: ${TABLE}.BUNAME ;; }
-
After adding the dimension mentioned in Step 5, the model file code will
be as follows:
view: uarc_campextattr { sql_table_name: UARC_CAMPEXTATTR ;; dimension: campaignid { type: number value_format_name: id sql: ${TABLE}.CAMPAIGNID ;; } dimension: buname { type: string sql: ${TABLE}.BUNAME ;; } measure: count { type: count drill_fields: [] } }
Add all fields into the respective model view file.
Note: The database refresh process considers all fields as business dimension, which is the string format.