IBM Support

Using configuration setting ExpandAutoForClauseInKeyProjection in Compatible Query Mode

Troubleshooting


Problem

Customers upgrading to Cognos Analytics 11.1.6, or a later release, do not get expected results for their reports (created in Report Studio) that uses Compatible Query Mode (CQM).  This occurs when an auto FOR clause of a summary function does not get expanded properly as Cognos SQL is generated.
A typical problematic report contains one or more data items in the report layout such that the data item Detail aggregation property set to any value other than None.  For example, the value is a summary function such as Total.  In the corresponding XML report specification, the data item has the aggregate attribute set to the same summary function total.
 
Screenshot_RS&XML

The following figure shows the list of support summary functions.
Screenshot_SumFunc

Symptom

An example of outputs of a problematic report, before and after the upgrade.
Screenshot_3

Document Location

Worldwide

[{"Line of Business":{"code":"LOB76","label":"Data Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSTSF6","label":"IBM Cognos Analytics"},"ARM Category":[{"code":"a8m3p000000h9boAAA","label":"Reporting-\u003ECompatible Query Mode (CQM)"}],"ARM Case Number":"","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"11.1.6"},{"Product":{"code":"SS6G84","label":"IBM Cognos Analytics on Cloud"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":" ","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB76","label":"Data Platform"}},{"Product":{"code":"SSLKT6","label":"IBM Maximo Asset Management"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":" ","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB77","label":"Automation Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
14 January 2026

UID

ibm16368717