Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
afternoon, getting an error message here at the green parenthesis and again at the pink "else"
if [#"Recovery Mechanism "] = "MYRP"
(
if [Actual Commit Gate Date] = null
[#"Capex Estimate ($M)"] - [#"Approved Advanced Funding ($M)"]
else [EAC] - [#"Approved Regulatory Estimate ($M)"]
)
else
(
if [Actual Commit Gate Date] = null
[#"Capex Estimate ($M)"] - [#"Full Funding ($M)"]
else [EAC] - [#"Full Funding ($M)"]
)
help please!
Solved! Go to Solution.
In Power Query?
The form should be:
if ... then .. else
https://learn.microsoft.com/en-us/powerquery-m/expressions-values-and-let-expression#if-expression
--
I always recommend starting from the simplest possible thing that works if writing these statements causes problems, for example,
if [#"Recovery Mechanism "] = "MYRP" then 1 else 0
Make that work, then add in a little bit of complexity then repeat.
In Power Query?
The form should be:
if ... then .. else
https://learn.microsoft.com/en-us/powerquery-m/expressions-values-and-let-expression#if-expression
--
I always recommend starting from the simplest possible thing that works if writing these statements causes problems, for example,
if [#"Recovery Mechanism "] = "MYRP" then 1 else 0
Make that work, then add in a little bit of complexity then repeat.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.