Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Avg sum by quarter with set analysis

I am looking to calculate an expression that takes the average sum of Spend for (fieldname) [Expense Type] = {'Airfare'} by quarter aggregated by Employee Name. Right now I have what is shown below, but I am not sure where to incorporate quarter field.

Avg(aggr(Sum({<[Expense Type] = {'Airfare'}>} AmountSpend),[Employee Name]))

5 Replies
alexandros17
Partner - Champion III
Partner - Champion III

try this

Avg(aggr(Sum({<[Expense Type] = {'Airfare'}>} AmountSpend),[Employee Name], Quarter))

and let me know

sunny_talwar

If you are using Quarter as your dimension, I don't really see why you would quarter in the expression. Have you tried this with Quarter as your dimension? Is it not giving you the expected output?

ogster1974
Partner - Master II
Partner - Master II

This document might help.

QlikView Technical Brief - AGGR

Not applicable
Author

It is within a straight table

Not applicable
Author

Thanks Alessandro, I want to say this worked but I am doing some QC checks first.