The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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...