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
android1
Post Patron
Post Patron

IF Custom Column Formula > 1.5

Hi,

 

I'm looking to replace all values in Actual Hours with the values in Scheduled Hours only if the value in Actual is > 1.5 times the size of the Scheduled value. Trying this> if[Actual Hours]*1.5>[Scheduled Hours]then[Actual Hours]=[Scheduled Hours] but getting token error at the end.

 

android1

1 ACCEPTED SOLUTION

That's perfect Eric. That is exactly what I needed. Thank you.

 

 

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

I think you need the else 

 

if[Actual Hours]*1.5>[Scheduled Hours]then[Actual Hours]=[Scheduled Hours] else [Actual Hours]

 

HTH

Raven

 

 

Anonymous
Not applicable

Here is a resource that is free with a WEALTH of information - It is an Power Bi class on edx.org

 

https://courses.edx.org/courses/course-v1:Microsoft+DAT207x+1T2016/info

 

It has helped me with Power BI

 

Raven

 

Hi,

 

Thanks for this. I'm getting False as my answers. Could it ba a formatting issue? My columns are in Decimal Number Format.

 

android1


@android1 wrote:

Hi,

 

Thanks for this. I'm getting False as my answers. Could it ba a formatting issue? My columns are in Decimal Number Format.

 

android1


@android1
Are you talking about adding a column in the query editor?  You got a "False" because the expression [Actual Hours]=[Scheduled Hours] returns "False". Can you try below expression?

if[Actual Hours]*1.5>[Scheduled Hours] then [Scheduled Hours] else [Actual Hours]


 

That's perfect Eric. That is exactly what I needed. Thank you.

 

 

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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.