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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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
Solved! Go to Solution.
I think you need the else
if[Actual Hours]*1.5>[Scheduled Hours]then[Actual Hours]=[Scheduled Hours] else [Actual Hours]
HTH
Raven
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.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |