cancel
Showing results for 
Search instead for 
Did you mean: 
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!!!
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Learn Power BI 2nd Edition
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!

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
May 23 2022 epsiode 5 without aka link.jpg

The Power BI Community Show

Welcome to the Power BI Community Show! Jeroen ter Heerdt talks about the importance of Data Modeling.

charticulator_carousel_with_text (1).png

Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through May 31st!

Power BI Dev Camp Session 22 with aka link 768x460.jpg

Check it Out!

Join us on Thursday, May 26 at 11a PDT for a great session with Ted Pattison!

Power BI Release May 2022 768x460.png

Check it out!

Click here to read more about the May 2022 updates!

Top Kudoed Authors