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

KB46276: How to sort by an attribute and have the subtotals associated with attribute display at the bottom of the page in MicroStrategy 9.x


Stefan Zepeda

Salesforce Solutions Architect • Strategy


How to sort by an attribute and have the subtotals associated with attribute display at the bottom of the page in MicroStrategy 9.x

SYMPTOM:
 
It is not possible to sort by an attribute and simultaneously have all subtotals associated with the attribute elements displayed at the bottom of the page with default settings in Strategy 9.x.
 
If the grid sorts by the attribute then the total will display after every element such as in the example below: 

ka02R000000kahVQAQ_0EM440000002CRG.png

 
 
Looking at this example, notice when the sort is by Subcategory the subtotal is displayed after every element of subtotal.
 
However, if the sort is changed to be on a metric and the setting 'sort metrics hierarchically' is not selected then the subtotals can successfully display at the bottom of the grid: 
 
 

ka02R000000kahVQAQ_0EM440000002CRH.jpeg

 
CAUSE:
 
This is caused by the use of attribute relationships which automatically occurs when sorting by an attribute while when sorting by a metric, advanced total position options are available.
 
WORKAROUND:
 
A workaround is to create a derived metric defined as max(attribute@form){attribute}

ka02R000000kahVQAQ_0EM440000002CRI.png

 
Then sort by this new metric.  It will now appear as if the report is sorted by the attribute in question, and the subtotals will be displayed at the bottom of the page as desired.

ka02R000000kahVQAQ_0EM440000002CRF.png

 
This metric can be hidden by setting its column width to 0 to hide it and making the alias a 'space'.
 
 
 


Comment

0 comments

Details

Knowledge Article

Published:

April 6, 2017

Last Updated:

April 6, 2017