EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB439844: Rank metric doesn't sort items correctly when Total is selected in a Page By attribute in MicroStrategy 10.x


Community Admin

• Strategy


This article provides the instructions of how to fix Rank metric behaviour in MicroStrategy 10.x

SYMPTOM
Rank metric doesn't sort items correctly when Total is selected in a Page By attribute in Strategy 10.x:

ka04W000000ObfKQAS_0EM44000000YVtV.png

CAUSE
Subtotal to Rank is not configured properly for the metric used in the report.
ACTION
1. Create a Subtotal to Rank on the metric:
    - Navigate to Project Objects > Subtotals
    - Create a new Subtotal with the following formula:
   

ka04W000000ObfKQAS_0EM44000000YVtf.png

2. In the Rank metric properties, select Subtotals / Aggregation tab, then select the subtotal created in the previous step from Project subtotals and select Rank(<METRIC NAME>) in Total subtotal function:

ka04W000000ObfKQAS_0EM44000000YVtp.png

3. Edit the report, navigate to Data > Advanced Sorting and add a sort for Rows to sort by the metric:

ka04W000000ObfKQAS_0EM44000000YVtz.png

4. Save changes.
5. Execute the report. Now the Rank metric should work as expected:

ka04W000000ObfKQAS_0EM44000000YVu4.png

WORKAROUND
In Strategy Web, use Break By as @p, this is Dynamic Dimensionality that denotes current Page-By Slice.
Example: Rank<ASC=False, BreakBy={@p}>(Cost)  
NOTE: This workaround won't work in case Report Limit is implemented into the reports. Also, it doesn't work for standard (not derived) metrics.
KB439844


Comment

0 comments

Details

Knowledge Article

Published:

March 6, 2018

Last Updated:

November 12, 2018