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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.

Top Solution Authors