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 everyone!
i'm working on my data and i'm trying to add a new column that will tell for each task it's status (Not start yet/WIP/Done). so here's what i have now and what i'm trying to get (marked in yellow)-
Now here's the formula i wrote-
NotStarted/WIP/Done = if([TaskDuration]-[CurrentStatus])=0, "Done", (if([TaskDuration]=[CurrentStatus], "Not started", "WIP"))
Can you please tell me what's wrong with my formula and how can i make it work?
(Edit: the error message says "The syntax ',' is incorrect" but i don't know what should i write instead [i tried to put "then" & "else" instead of the commas , but it atill not working)
Thx!!
Solved! Go to Solution.
Oops! If you copy and pasted I made a slight syntax error. Try this:
=IF(([TaskDuration] - [CurrentStatus]) = 0, "Done", IF([TaskDuration] = [CurrentStatus], "Done", "WIP"))
Hi Rashel,
You're closing the brackets too early, your formula should read:
=IF(([TaskDuration] - [CurrentStatus) = 0, "Done", IF([TaskDuration] = [CurrentStatus], "Done", "WIP"))
Hope that helps!
Hi.
thank you for your time - it's still not working (and have the same error message) \
Oops! If you copy and pasted I made a slight syntax error. Try this:
=IF(([TaskDuration] - [CurrentStatus]) = 0, "Done", IF([TaskDuration] = [CurrentStatus], "Done", "WIP"))
Oops, i didn't add it to the right place and that was the problem!
thank you so much for your help :
haha I know, i changed it already. it's not it 😕
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!