Forum Discussion
bhmiller89
9 years agoHelper V
DateDiff by Date and Status
I have some data that includes a table of system notes. I split the notes column using delimiters but now I need a calculated measure/column toshow the following: I need to calculate the DATEDIF...
- 9 years ago
You should be able to do something like:
Measure = VAR maxScopingCallRequested = CALCULATE(MAX([StatusStartDate]),FILTER(Table,[ShortNote.1] = "Scoping Call Requested")) VAR maxScopingCallScheduled = CALCULATE(MAX([StatusStartDate]),FILTER(Table,[ShortNote.1] = "Scoping Call Scheduled")) RETURN DATEDIFF(maxScopingCallRequested,maxScopingCallScheduled,DAY)
Greg_Deckler
9 years agoCommunity Champion
You should be able to do something like:
Measure = VAR maxScopingCallRequested = CALCULATE(MAX([StatusStartDate]),FILTER(Table,[ShortNote.1] = "Scoping Call Requested")) VAR maxScopingCallScheduled = CALCULATE(MAX([StatusStartDate]),FILTER(Table,[ShortNote.1] = "Scoping Call Scheduled")) RETURN DATEDIFF(maxScopingCallRequested,maxScopingCallScheduled,DAY)
- bhmiller899 years agoHelper V
It didn't produce any results.
Each Opportunity ID has multipole Status Changes with StatusStartDates and calculating the Time Delta/ DATEDIFF between certain statuses is a lot more challenging than I thought.