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

Average of rows with condition

Hi,

I'm hoping this is a simple one as I'm new to Qlik expressions.

I have a table which (in a very simplified form) has the following data:

CategoryMeasure
050
052
054
050
261
263
261
253


I want the calculation to calculate the average of the Measure only for the Max category. So here it would be the average of 61,63,61,53 = 59.5.

Note: This doesn't need to be independent of the selection of the visual or anything, so if the current selection only returns the above rows it shouldn't look at rows outside this selection.

Thanks

10 Replies
sunny_talwar

Would you be able to provide a better sample with expected output