Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Colin
Frequent Visitor

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

 

1 ACCEPTED SOLUTION
kcantor
Community Champion
Community Champion

If you are going column to column I would suggest using the query editor. Here is a link with the expression you  need:

https://msdn.microsoft.com/en-us/library/mt253322.aspx?f=255&MSPPError=-2147217396

 Perhaps the DAX requires it to be in a measure instead of a column. Not sure, haven't used it myself.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

5 REPLIES 5
Colin
Frequent Visitor

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

 

 

Beckham
Advocate II
Advocate II

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

Sean
Community Champion
Community Champion

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

 

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

 

So that link should help!

Colin
Frequent Visitor

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

kcantor
Community Champion
Community Champion

If you are going column to column I would suggest using the query editor. Here is a link with the expression you  need:

https://msdn.microsoft.com/en-us/library/mt253322.aspx?f=255&MSPPError=-2147217396

 Perhaps the DAX requires it to be in a measure instead of a column. Not sure, haven't used it myself.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.