How can the error Index out of bound exception be solved for a view in the KPI?

How can the error Index out of bound exception be solved for a view in the KPI?

This problem can occur if level name and attribute name are same. Please check if same column is used across the DB model and provide unique name for level name and attribute in the DB model. This should solve the issue.