IBM Support

Why does the RoundHalfUp parameter cause certain numbers to round incorrectly?

Question & Answer


Question

In Cognos Analytics, you can set a parameter "RoundHalfUp" to make numbers ending in 5 to round up. Sometimes the numbers will round incorrectly, why is this?

Answer

This is due to the chosen aggregation method for the column. If the column you are trying to round is set to TOTAL then it will round before any calculation occurs. If you set it to automatic, it will round correctly.

[{"Product":{"code":"SSTSF6","label":"IBM Cognos Analytics"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Report Authoring v11x","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"11.0","Edition":"All Editions","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
15 June 2018

UID

swg22016318