Skip to main content

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
Action-Packed Learning Awaits! QlikWorld 2023. April 17 - 20 in Las Vegas: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
ravitpost
Contributor II
Contributor II

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?

ravitpost
Contributor II
Contributor II
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))

ravitpost
Contributor II
Contributor II
Author

Thanks a lot!