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
Hi, How do i write a DAX expression to calculate the elasped days from current date in table below... Thanks in advance for the advise.
Solved! Go to Solution.
Hi @CLANG10 ,
In my tests, everything works fine whether the column is created as a measure or a calculated column, so you can check if there is a problem.
Days =
var cur = 'Table'[Date]
return DATEDIFF(cur,TODAY(),DAY)M_days =
var cur = MAX('Table'[Date])
return DATEDIFF(cur,TODAY(),DAY)
If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @CLANG10 ,
In my tests, everything works fine whether the column is created as a measure or a calculated column, so you can check if there is a problem.
Days =
var cur = 'Table'[Date]
return DATEDIFF(cur,TODAY(),DAY)M_days =
var cur = MAX('Table'[Date])
return DATEDIFF(cur,TODAY(),DAY)
If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Try this in measure
Measure = var A=min(Submission date)
var B=max (Current date)
return
Var B- Var A
Let me known I will Work or not.
Thanks...but still can't work...
Hi Amit, thank you for the response, could u further advise how to auto apply this to all the rows in the table...i got the syntax error below...
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!