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 all,
I need a formula please to create a column from another column,
Here'is my excel formula : =IFS(Q2=0%,"DRAFT",(AND(Q2>0%,Q2<100%)),"IN PROGRESS",Q2=100%,"CLOSED")
I tried this formula on power Bi :
Solved! Go to Solution.
HI @Anonymous
Just adjust the the formula as below:
Status =
IF (
'DATA'[Progress] = 0,
"DRAFT",
IF (
'DATA'[Progress] < 1
&& 'DATA'[Progress] > 0,
"IN PROGRESS",
IF ( 'DATA'[Progress] = 1, "CLOSED" )
)
)
Regards,
Lin
Thank you all
It worked
HI @Anonymous
Just adjust the the formula as below:
Status =
IF (
'DATA'[Progress] = 0,
"DRAFT",
IF (
'DATA'[Progress] < 1
&& 'DATA'[Progress] > 0,
"IN PROGRESS",
IF ( 'DATA'[Progress] = 1, "CLOSED" )
)
)
Regards,
Lin
Hey @Anonymous ,
I use this DAX statement to create a calculated column:
Status =
var __Progress = 'Table'[Progress]
return
SWITCH(
TRUE()
, __Progress = 0 , "Draft"
, __Progress = 1 , "Closed"
, "In Progress"
)
As you can see, it's using a variable to avoid multiple evaluations of the Progress column. The table will look like this:
The DAX is not that different from the code you provided, you might double-check the value of the Progress column, it 75% is expressed as 0.75, this would explain why your statement returns "IN PROGRESS" instead of "CLOSED".
Regards,
Tom
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.