Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

View all the Fabric Data Days sessions on demand. View schedule

Reply
rashel2002
Helper II
Helper II

Help in writing a custom column (what's wrong with my formula?)

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)-

20.PNG

 

Now here's the formula i wrote-

NotStarted/WIP/Done = if([TaskDuration]-[CurrentStatus])=0, "Done", (if([TaskDuration]=[CurrentStatus], "Not started", "WIP"))

21.PNG

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!!

1 ACCEPTED 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"))

View solution in original post

5 REPLIES 5
JoHo_BI
Responsive Resident
Responsive Resident

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 😕

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors