Tableau - cannot mix aggregate and non-aggregate arguments with this function

I am creating a calculated field here
IIF(ATTR([Segment])=[Parameters].[Segment], 1+SQRT(2)COS((1-[Result%])180*PI()/180),1)
When i run this i get error like…………….
"cannot mix aggregate and non-aggregate arguments with this function".
I do not know how to resolve this .
Can anyone help me to sort out this issue.

Tagged:
Sign In or Register to comment.