Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

Announcements
Talk to Experts, a LIVE Q&A Webinar. Bring your Qlik Sense Business questions on Aug. 4th. Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Contributor II
Contributor II

Aggregation Function?

Capture.JPG

 

 

 

I'm trying to create the table above. Group and Item are dimensions. % is a measure calculated as the average value of binary column at the item level. How can I create the Max% column where it shows the maximum % of each Group?

 

I feel like it should be an aggregation function, but i'm really struggling to get anything to work. Any help would be greatly appreciated!

4 Replies
Highlighted
Creator II
Creator II

Re: Aggregation Function?

Hi, there

Check this expression highlighted in yellow

Capture.JPG

Hope this helps

ZZ

 

Highlighted
Contributor II
Contributor II

Re: Aggregation Function?

use this expression in a straight table with your dimensions:

=aggr(NODISTINCT max(%),Group)

 

Final OutputFinal OutputDimensionsDimensionsExpressionExpression

Highlighted
Contributor II
Contributor II

Re: Aggregation Function?

The challenge is that % isn't the lowest level of aggregation. The % is calculated as Avg(% Flag).

% Flag is a column made up of 1 and 0 values.

I'm trying =aggr(NODISTINCT max(Avg([% Flag])),Group) but it's just returning null values.
Highlighted
Contributor II
Contributor II

Re: Aggregation Function?

Then If you are using % as expression before calculating MAX, then you can use the column name instead of formula and check.

Example:
=aggr(NODISTINCT max(column(1)),Group)