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

SetAnalysis with Fields range

Hi

I need to calculate Result field which is AVG of AVG_VAL but its take only range between MinRange and MaxRange.

Capture.PNG

I try to wrote this:

Avg({<Attenuator = {'>=MinRange<=MaxRange' }>}AVG_Val)

But didn't get any result.

Any suggestions?

Thanks

Ravit.

1 Solution

Accepted Solutions
sunny_talwar

Oh okay, I got you... are they going to be used as a dimension in this chart? If they will be, then may be this

Avg(If(Attenuator >= MinRange and Attenuator <= MaxRange, AVG_Val))

View solution in original post

4 Replies
sunny_talwar

Set analysis is evaluated once per chart, you may have to use Aggr() with if or just if statement here? Can you share if MinRange and MaxRange are expression or a hard-coded value?

Anonymous
Not applicable
Author

Hi

MinRange and MaxRange are database fields. that can be dynamic and change each row.

sunny_talwar

Oh okay, I got you... are they going to be used as a dimension in this chart? If they will be, then may be this

Avg(If(Attenuator >= MinRange and Attenuator <= MaxRange, AVG_Val))

Anonymous
Not applicable
Author

Thanks a lot!