Forum Discussion
swebb
Helper II
3 years agoIssue with DATEDIFF
All, PBI newbie here. Maybe I'm missing something, not real sure, but I have a measure that I'm using to calculate the average age of an opportunity from our CRM data. It works when coupled with ...
tamerj1
Community Champion
3 years agoHi swebb
please try
Avg Age =
AVERAGEX (
opportunity,
DATEDIFF ( [createdon], COALESCE ( [actualclosedate], TODAY () ), DAY )
)
swebb
Helper II
3 years agoActually, I think we can mark this resolved. I was looking through the records and have determined the counts are accurate. Thank you!