Why are the KPI results not getting sorted by 'Department Code', when I view the KPI under Merchandise View and Department Subview?

Why are the KPI results not getting sorted by 'Department Code', when I view the KPI under Merchandise View and Department Subview?

The KPI may not give the desired results due to any of the following reasons: - If there is 'Department_Code' levels defined under different dimensions with the same parameter name, then while constructing the query only the minimum level dimension details is considered. - The Department dimension has one level but does not have the 'ORDER BY' clause defined in it.