Forum Discussion
Difference between dates in the same column
- Anonymous2 years ago
Hi jobf
You can add a calculated column with this formula
Duration = var _currentDate = 'Table (2)'[Date] var _previousDate = CALCULATE(MAX('Table (2)'[Date]),ALLEXCEPT('Table (2)','Table (2)'[Field],'Table (2)'[ Input]),'Table (2)'[Date]<_currentDate) return DATEDIFF(_previousDate,_currentDate,DAY)Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!
Hi
The requirement is quite confusing, But try below soltution.
Create a column using below DAX
Then create another column
Let me know if this is what you are expecting or share a little bit more details with sample output.
If this post helps, then please consider Accept it as the solution to help the others find it more quickly. Appreciate you kudos!!
- jobf2 years agoHelper II
It's kind of hard to understand, but I'll try to explain. In a field, several inputs will be applied, and these inputs will be applied more than once. I needed to calculate, somehow, the difference between these applications of this input in this specific field. In this case, the difference between the 2nd and 1st and the difference between the 3rd and 2nd.
- NaveenGandhi2 years agoMemorable Member
It would be great if you can share some pictures and explain it in detail, The details you have provided is definelty for enough to resolve the problem.
Regards,Naveen