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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.