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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
TuesdayApril
Helper I
Helper I

Conditional multiplication based on a value in a separate column

Hi all, I need a Custom Column in Power Query, seems easy, struggling. Below is the data.

 

Basically, I have a 'Cost Rate' that needs to have 1.5 times the current value when Timesheetentrytype = "Overtime", for all other timesheetytpes the value is fine as is for Cost Rate. The keeping the correct values in the new column is the confusing part.

 

Something like If timesheetentrytype ="Overtime" then Cost Rate  x 1.5, else keep current value of Cost Rate

 

TuesdayApril_0-1684961426180.png

 

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @TuesdayApril 

To achieve your goal please add a custom column  with the formula:
if [TimesheetEntryType]="Overtime" then [Cost rate]*1.5
else [Cost rate]

Ritaf1983_0-1684983495375.png

Link to the Sample file 

 

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

2 REPLIES 2
TuesdayApril
Helper I
Helper I

Thank you, I knew it was something stupid with syntax!

Ritaf1983
Super User
Super User

Hi @TuesdayApril 

To achieve your goal please add a custom column  with the formula:
if [TimesheetEntryType]="Overtime" then [Cost rate]*1.5
else [Cost rate]

Ritaf1983_0-1684983495375.png

Link to the Sample file 

 

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

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