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!View all the Fabric Data Days sessions on demand. View schedule
I am new to DAX.
I would like to create a variable called Completed Past Due.
How would I write this logic as a DAX expression?
if (task_due_date < task_completion_date and
task_completion_date is not missing and
status = "completed")
then "Yes" else "No"
Thank you.
Solved! Go to Solution.
Something along the lines of =SWITCH(TRUE(), Table[task_due_date] < Table[task_completion_date] && NOT(ISBLANK(Table[task_completion_date])) && Table[status]="completed", "Yes", "No")
Something along the lines of =SWITCH(TRUE(), Table[task_due_date] < Table[task_completion_date] && NOT(ISBLANK(Table[task_completion_date])) && Table[status]="completed", "Yes", "No")
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!