Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
iliaisyah
Contributor III
Contributor III

Range appear in grey

Hi all, o, trying to make another range for multibox to select range of the yield

 

but the error occurs as below

567.png4567.png

 

=If((Sum (ActYield)/Sum (Ha))<=5,'Mid',If((Sum (ActYield)/Sum (Ha))>=0,'Low'))

Labels (1)
1 Solution

Accepted Solutions
marcus_sommer

An aggregation like sum() needs always a context respectively any dimension to return a valid value for a calculated dimension - therefore it needs to be wrapped within an aggr() like:

aggr(YourExpression, Dim1, Dim2)

whereby Dim1, Dim2 are placeholder for the dimensions in which context it should be calculated.

- Marcus

View solution in original post

1 Reply
marcus_sommer

An aggregation like sum() needs always a context respectively any dimension to return a valid value for a calculated dimension - therefore it needs to be wrapped within an aggr() like:

aggr(YourExpression, Dim1, Dim2)

whereby Dim1, Dim2 are placeholder for the dimensions in which context it should be calculated.

- Marcus