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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Solved! Go to Solution.
@Anonymous What's the logic you need?
For example
NewColumn = SWITCH ( TRUE(),
( NOT ( ISBLANK ( 'Tasks'[ACT_START_DATE] ) ) && ISBLANK ( 'Tasks'[ACT_END_DATE] ) ) || 'Tasks'[ACT_START_DATE]<= TODAY () + 3, "3 Forward",
MAX('Tasks'[ACT_START_DATE]) <= TODAY () + 7, "7 Forward"
)@Anonymous
I would use SWITCH to make it readable
NewColumn =
SWITCH (
TRUE (),
(
(
NOT ( ISBLANK ( 'Tasks'[ACT_START_DATE] ) ) && ISBLANK ( 'Tasks'[ACT_END_DATE] )
)
|| (
'Tasks'[ACT_START_DATE]
<= TODAY () + 3
)
), "3 Forward",
'Tasks'[ACT_END_DATE] + 7, "7 Forward"
)
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
For example
NewColumn = SWITCH ( TRUE(),
( NOT ( ISBLANK ( 'Tasks'[ACT_START_DATE] ) ) && ISBLANK ( 'Tasks'[ACT_END_DATE] ) ) || 'Tasks'[ACT_START_DATE]<= TODAY () + 3, "3 Forward",
MAX('Tasks'[ACT_START_DATE]) <= TODAY () + 7, "7 Forward"
)Hi @Anonymous ,
the IF function accept maximum 3 arguments and you have used 4.
Try to use SWITCH instead.
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous What's the logic you need?
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!