Forum Discussion
swebb
3 years agoHelper II
Issue 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
3 years agoCommunity Champion
Hi swebb
please try
Avg Age =
AVERAGEX (
opportunity,
DATEDIFF ( [createdon], COALESCE ( [actualclosedate], TODAY () ), DAY )
)
swebb
3 years agoHelper II
Actually, I think we can mark this resolved. I was looking through the records and have determined the counts are accurate. Thank you!