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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Syndicate_Admin
Administrator
Administrator

Power Query - Add column with multiplcation based on criteria from another column

Imagine I have a table that looks like the following:

Col ACol BCol CCol D
BonusData

35

35
BonusData4545
SalaryData5562.59
SalaryData8596.73
HolidayData2525

I would like to add a column (Col D) which performs a multiplication of Col C (* 1.138), but only if Col A contains a specific word, for example "salary", if it doesn't then the total should remain the same.  Is this possible please?  Thank you in advance.  

3 REPLIES 3
Syndicate_Admin
Administrator
Administrator

Thank you so much Pete.

 

No problem, happy to help.

If this has solved the issue, please mark the correct answer as the solution, and feel free to give a thumbs-up on any posts that help you 👍

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




BA_Pete
Super User
Super User

Hi,

 

You should be able to add a custom column like this:

if [Col A] = "Salary" then [Col C] * 1.138 else [Col C]

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors