Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Avg of total sales if. chart

Hi

I'm working on an app but have unfortunatly got stuck in one place.

What I'm trying to achive is that Person7 in attached example gets the avarege amout of sales as the other persons.

Íf a person belongs in Department4, he should recieve the avarege amout of sales as the remaining persons. Would this be possible?

best regard.

/Björn

1 Solution

Accepted Solutions
sunny_talwar

May be like this

If(Department = 4, Avg(TOTAL {<Department -= {'4'}>}Sales), Sales)

View solution in original post

3 Replies
sunny_talwar

May be like this

If(Department = 4, Avg(TOTAL {<Department -= {'4'}>}Sales), Sales)

Anonymous
Not applicable
Author

Thanks. That works great if the Sales column is found in the data file.

In my case the Sales collumn is an expression and "Sales" is the Label of the expression. For some reason I can't get it to work when using the Label.

sunny_talwar

What is the expression?