Jump to content

Custom expression to find median


Himani Joshi

Recommended Posts

Hi team,

I am trying to write a custom expression in a visualization to find the median.

So far, I have written this, but it shows an error. I was hoping you could help me out. Thanks !

case

WHEN(UniqueCount([Project-]='Even' THEN[Time (Hours)]=(1/2)*(UniqueCount([Project-])/2)+(UniqueCount([Project-])+1)/2))

WHEN(UniqueCount([Project-]='Odd' THEN [Time (Hours)]= (UniqueCount([Project-])/2)

ELSE "NULL"

END

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...