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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
hi ,
i wanted to apply this excel formula to M language.
Iferror (if (Non captive amount.amount <> 0, usd@planrate helpcell2, if( noncaptive amount.amount = 0 , usd@planrate helpcell1. usd@planrate help...
how do i change it correctly?
Thanks
Solved! Go to Solution.
Hey @Jocelyn ,
you didn't close the bracket of the ifs.
Close them and I think it should work.
Hi, @Jocelyn ;
The conditional format formula of M language is written as follows:
if [Non Captive Amount.amount] <>null then [#"USD@planrate helpce112"]
else if [Non Captive Amount.amount] =null then [#"USD@planrate helpce111"]
else null
in addition, here it is recommended that the column name in power Query do not have #"".
Or you could add conditional column in power query .
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Jocelyn ;
The conditional format formula of M language is written as follows:
if [Non Captive Amount.amount] <>null then [#"USD@planrate helpce112"]
else if [Non Captive Amount.amount] =null then [#"USD@planrate helpce111"]
else null
in addition, here it is recommended that the column name in power Query do not have #"".
Or you could add conditional column in power query .
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hey @Jocelyn ,
you didn't close the bracket of the ifs.
Close them and I think it should work.
May i know why it will have this "function" here
Supposely, all should be numbers or null.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.