IBM Support

Sorting value expression context

Troubleshooting


Problem

In crosstab report, when the sorting is based on a data item which does not define a measure, thus is treated as a member, the result may not be sorted by the measure as expected.

Resolving The Problem

To fix the problem, the sorting needs to be defined on a data item that includes the measure. For example, for the following report 
image 10887
The sorting of the column values are based on 'Average', which is defined as 'average ( currentMeasure within set [Month/Year] )' and not including 'Ratio'. So the solution is to introduce another data item with expression 'average ( [Ratio] within set [Month/Year] )' and base the sorting on this data item, which does not needs to be projected.

Document Location

Worldwide

[{"Type":"MASTER","Line of Business":{"code":"LOB10","label":"Data and AI"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEP7J","label":"Cognos Business Intelligence"},"ARM Category":[{"code":"a8m50000000Cl5uAAC","label":"Reporting->Dynamic Query Mode and XQE"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions"}]

Document Information

Modified date:
13 July 2021

UID

ibm16470907