Forum Discussion

Irina's avatar
Irina
New Contributor III
10 days ago

Rounding in cube views

Hi there,

We need to see cube view figures which are rounded to an integer. Could you please advise how to round figures in cube view?

 

  • In the formatting of the row/column, you can change the number format to N0, then it will display the data as whole numbers without decimals, and rounded to the nearest number.

    I hope that helps.

    Regards, Joakim

  • Irina's avatar
    Irina
    New Contributor III

    Joakim, 

    Thank you! I see now that visually in cube view figures are rounded to the nearest whole number. However, when I open cube view in Excel, I see in cells that figures contain decimals. Could you please advise is it possible to round these figures to the full numbers in Excel (as if we apply to each figure ROUND(,0) function)?

    • JoakimK's avatar
      JoakimK
      Contributor

      Irina,

      In the same fashion, in the format section of the row/column, change the ExcelNumberFormat to be what you want. In my example it could for example be set to this: "ExcelNumberFormat = [#,##0]"

      Regards, Joakim

    • rhankey's avatar
      rhankey
      Contributor

      Be aware that presentation layer (such as in a Cube View) "rounding" using formatting can result in numbers that do not appear to add up.  For example, consider two children each containing 1.4 resulting in a parent of 2.8.  When rounded at the presentation layer, you will have 1 + 1 = 3.  That seldom makes for a happy accountant.  If they are ok with that, then great, as this is certainly the easiest way to get the job done.

      If you need the rounded numbers to add up and match across different reports regardless of reporting dimensionality, then you need to perform the rounding with stored calculations in the cube and potentially provide the user a facility to enter rounding adjustments - depending on whether they want to see 1 + 1 = 2, 1 + 2 = 3 or 2 + 1 = 3 (using the above example).