Forum Discussion

vehau1's avatar
vehau1
Icon for Helper I rankHelper I
6 years ago
Solved

M - acos returns NaN

I have a problem, I use acos (Number.Acos([Column1])) in creation of a custom column in Power Query. However, the function only seem to return a number value when the input is between 0 and 1. Otherwise it returns NaN. How can i circumvent this?

  • Anonymous's avatar
    Anonymous
    6 years ago

    HI vehau1 ,

    As the document said, it will return the decimal value. I'd like to suggest you change column type to decimal to display detail values.

    DAX Function ACOS  

    In addition, please double-check the inputted parameter to confirm they are valid for this function.

    Regards,

    Xiaoxin Sheng

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    HI vehau1 ,

    As the document said, it will return the decimal value. I'd like to suggest you change column type to decimal to display detail values.

    DAX Function ACOS  

    In addition, please double-check the inputted parameter to confirm they are valid for this function.

    Regards,

    Xiaoxin Sheng