KPI log shows the error 'java.lang.Exception: Query Execution Failed ! :Ambiguous column name'. Why?

KPI log shows the error 'java.lang.Exception: Query Execution Failed ! :Ambiguous column name'. Why?

KPI query returns ambiguos column error, when a particular measure is present in both the Aggregate table (Example, AGG_WLY_STR_DEPT_Details) and DIM table (example, DIM_STORE). You have to change the column name in any one of the table, for the KPI to work properly.