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)
ddpl
4 years agoSolution Sage
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])
Return
DATEDIFF(_min,_max,DAY)
Guneet_B21
4 years agoHelper II
Thanks alot,
this is working