Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
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...