Forum Discussion
Guneet_B21
4 years agoHelper II
Datediff
Hi, i need to calculate the difference between est date on the first entry of the project vs est date on the last entry of a particular project and need to show this diff against each project ...
- 4 years ago
Try this,
measure = VAR _min =MINX(FILTER(ALL('Table'),SELECTEDVALUE('Table'[Project]) ='Table'[Project] ),'Table'[Est star])VAR _max =MAXX(FILTER(ALL('Table'),SELECTEDVALUE('Table'[Project]) ='Table'[Project] ),'Table'[Est End])ReturnDATEDIFF(_min,_max,DAY)
amitchandak
4 years agoSuper User
Guneet_B21 , A measure like
Sumx(Values(Table[Project]), calculate(datediff(Min(Table[est date]), Max(Table[EstClose], day)))
- Guneet_B214 years agoHelper II
amitchandak thanks for this formula,
it worked, however when i insert the est dates against this difference it sums up to 0