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
I've searched for an answer to this, but haven't been able to find a solution.
I need a statement that says:
IF [FIELD A] <-15 THEN "EARLY"
IF [FIELD A] >-15<15 THEN "ON-TIME"
ELSE "LATE"
In other words, I am looking at [FIELD A] . I need a new column that will look at the value in [FIELD A] and give 3 results, depending on the value in [FIELD A] - "EARLY", "ON-TIME" OR "LATE".
Solved! Go to Solution.
@Anonymous You can use a switch statement:
SWITCH(TRUE(),
[Field A] < -15,"Early",
[Field A] >= -15 && [Field A] < 15,"On Time",
"Late")
Hi schwinnen,
Yes, switch can do this, you can also create a calculate column using nested if() statement in DAX like pattern below:
Result =
IF (
Table[FIELD] < -15,
"EARLY",
IF ( Table[FIELD] > -15 && Table[FIELD] < 15, "ON-TIME", "LATE" )
)
Regards,
Jimmy Tao
Hi schwinnen,
Yes, switch can do this, you can also create a calculate column using nested if() statement in DAX like pattern below:
Result =
IF (
Table[FIELD] < -15,
"EARLY",
IF ( Table[FIELD] > -15 && Table[FIELD] < 15, "ON-TIME", "LATE" )
)
Regards,
Jimmy Tao
@Anonymous You can use a switch statement:
SWITCH(TRUE(),
[Field A] < -15,"Early",
[Field A] >= -15 && [Field A] < 15,"On Time",
"Late")
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.