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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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