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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
sea_sriram
New Member

Subtract Two Columns - New BI user

Dear All

 

Good day. Am new to Power BI - just getting used and watching some online training.

 

Here is my question.

 

I have two columns.

 

Each column has 10 data fields

I would like to subtract column A from Column B and have the results in Column C.

 

Can someone help me on how to do it?

 

Thanks

Sriram

 

1 ACCEPTED SOLUTION
CheenuSing
Community Champion
Community Champion

Hi @sea_sriram

 

Create a calculated column 

ColumnC =  ([ColumnA] - [ColumnB] )

 

If this works please accept it as a solution and also give KUDOS.

 

Cheers

 

CheenuSing

Did I answer your question? Mark my post as a solution and also give KUDOS !

Proud to be a Datanaut!

View solution in original post

3 REPLIES 3
Greg_Deckler
Super User
Super User

Are you saying that each column has values in 10 rows? If the columns are numeric then @CheenuSing's formula will work if you create a new column and give it the formula he provided.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
CheenuSing
Community Champion
Community Champion

Hi @sea_sriram

 

Create a calculated column 

ColumnC =  ([ColumnA] - [ColumnB] )

 

If this works please accept it as a solution and also give KUDOS.

 

Cheers

 

CheenuSing

Did I answer your question? Mark my post as a solution and also give KUDOS !

Proud to be a Datanaut!
Anonymous
Not applicable

hi

Encouraged by above - if subtraction is to be done with a column say buy-sell in this example, what wud it be pls?

saurabhsharma19_0-1640254410626.png

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.