Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

how to round decimal numbers

Hi In one of my reports I have a column name Accounts whose values  needs to be shown as one point after decimal. Example 222.573 should be shown as 223.6 .                222.432 should be shown a...
  • v-lili6-msft's avatar
    7 years ago

    HI, Anonymous

    When you format the data type of one column, the format of the whole column will be the same. So they will be the same format.

    But you may try these two ways as reference:

    Add a column by this formula:

    Column = IF(Table1[Accounts]-INT(Table1[Accounts])>0.4,FORMAT(Table1[Accounts],"0.0"),FORMAT(Table1[Accounts],"0"))

    But the data type of this column will be Text.

     

    another use the same formula to add a column, now the data type is Text, then change the data type to Decimal Number

    Now it will show the format as what you want in the data view, but in the report visual it will show the same format as others.

     

     

    Best Regards,

    Lin