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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
jdufey
New Member

Calculation column - Remove character

Dear community,

I am just starting with PowerPI and I encounter some issues for calculation.

 

I have 2 numbers on 2 different columns. When I want to do a simple substract everything is okay except when there is a "-" (minus) character in the number where is doesn't return me the requested results.

 

My table looks like this:

 

january 97 -3 100
february 83 0 83
mars 100 10 90
april 50 50 0
may 122 -83 150
june 125 -81 206


I know that it looks okay regarding calculation but in my case, I talk about licenses and when their is -3 means that 3 licenses are needed so I want that the result to be 94 on the first line and not 103.

 

In order to solve this, I wanted to create a calculation column and remove any "-" character to do proper calculation but I could not have something done easy.

 

Thanks in advance.

4 REPLIES 4
amitchandak
Super User
Super User

@jdufey , Not very clear. Create a new absolute value column

New Column = abs([Column])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi,

 

Thanks for the respond but I am sorry I'm new to PowerBi and don't know much the tool.

This absolute column will call another column and remove the "minus (-)" symbols?

 

I have lots of line where this should be done automatically and that is why I was thinking of a calculation measure column.

Hi @jdufey ,

 

Please try to create the following calculated column:

Column = 'Table'[value1]-ABS('Table'[value2])

test_0512.PNG

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Work like a charm and it was exactly what I need 🙂

 

Thanks

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.