Forum Discussion

Colin's avatar
Colin
Frequent Visitor
10 years ago
Solved

Absolute Value Query Editor

Hi everyone,

 

I'm trying to add a custom column in the data view that calculates the absolute value of another column in the data. PowerBi is telling me that it doesn't recognize the expression. 

 

 

My expression is written as follows:

 

=ABS([Balance])

 

I'm not sure what to try next. My internet research told me to write the syntax as I have above. Any guidance would be greatly appreciated. 

 

Best,

 

Colin

 

5 Replies

  • Sean's avatar
    Sean
    Community Champion

    Can you post a picture so we see where this is happening?

     

    EDIT: I should have read the Title :smileylol: in the Query Editor - nevermind :smileylol:

     

    So that link should help!

    • Colin's avatar
      Colin
      Frequent Visitor

      Thanks for the reply Sean. The link kcantor sent did the trick.

  • You could do this equation: if [column] <0 then [column]*-1 else [column]

  • Colin's avatar
    Colin
    Frequent Visitor

    All set. Thank you so much! That link will prove really helpful.