Forum Discussion
Guneet_B21
Helper II
4 years agoDatediff
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
Super User
4 years agoGuneet_B21 , A measure like
Sumx(Values(Table[Project]), calculate(datediff(Min(Table[est date]), Max(Table[EstClose], day)))
- Guneet_B214 years ago
Helper II
amitchandak thanks for this formula,
it worked, however when i insert the est dates against this difference it sums up to 0