Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Imagine I have a table that looks like the following:
Col A | Col B | Col C | Col D |
Bonus | Data | 35 | 35 |
Bonus | Data | 45 | 45 |
Salary | Data | 55 | 62.59 |
Salary | Data | 85 | 96.73 |
Holiday | Data | 25 | 25 |
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.
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
Proud to be a Datanaut!
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
Proud to be a Datanaut!