The query generated while analyzing the KPI is not proper. Why?
One of the reasons: If two measures are having a same name, then there will be mismatch while constructing the query and the data fetched will be incorrect. Ensure unique names are provided to measures.