Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Unable to change Rounding

Hello Community,   Can someone please let me know why the 'Rounding' is greyed out. I would like to change the rounding to 0 decimal places but I'm unable to, see image.  
  • v-frfei-msft's avatar
    6 years ago

    Hi Anonymous ,

     

    We should change the data type to Percentage.Type firstly. Then we can decimal places in Modeling.

    let
        Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMtEzVlWK1cFgxAIA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type text) meta [Serialized.Text = true]) in type table [percentage = _t]),
        #"Changed Type" = Table.TransformColumnTypes(Source,{{"percentage", Percentage.Type}})
    in
        #"Changed Type"