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
Hello,
I wanted to know if somebody knows how to deal with this. I am pretty new to PowerBI Dax, which is why this seemingly simple problem is hard to solve..
So I want to calculate the "delay" column. The calculation should only happen when"Hello" is written into the "Project" column.
The calculation should be Todays Date - Milestone Date. So I want to display the amount of days between the milestone and today's date
Thank you for your help!
Solved! Go to Solution.
Create a measure like
Delay =
var currentMilestone = SELECTEDVALUE('Table'[Milestone])
return IF( SELECTEDVALUE('Table'[Project]) = "Hello" && currentMilestone < TODAY(), TODAY() - currentMilestone)and make sure to set the type of the measure to Whole Number
Create a measure like
Delay =
var currentMilestone = SELECTEDVALUE('Table'[Milestone])
return IF( SELECTEDVALUE('Table'[Project]) = "Hello" && currentMilestone < TODAY(), TODAY() - currentMilestone)and make sure to set the type of the measure to Whole Number
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!