I'm very new to tableau, and working on a dashboard currently. I trying to create the calculated field for YTD severity. When I try this below formula, it gives aggregate error. Any thoughts or workaround will be much helpful.
Thanks in Advance
if year([ClaimOpenDate]) = YEAR(TODAY()) then sum([TotalLossPaid])/COUNTD([ClaimNum]) end