Forum Discussion
Anonymous
4 years agoNot applicable
DATEDIFF Calculation with Condition
Hi guys, I need a bit of help; please see the below example. I need Project Duration (Age) Calculation based on the below condition * If Project status is ''In Progress''' or ''blank'' Calculate t...
- 4 years ago
Hi,
Write this calculated column formula
Duration = 1*(if(Data[Status]="Completed",[Contruction date]-[Start date],today()-[Start date]))
Hope this helps.
mahoneypat
4 years agoMicrosoft Employee
You can try a DAX calculated column with this expression
Duration =
IF(
Table[Status] = "Completed",
INT( Table[Construction Date] - Table[Start Date] ),
INT( TODAY() - Table[Start Date] )
)
Pat